-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
117 lines (88 loc) · 2.13 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
buildscript
{
repositories
{
jcenter()
maven
{
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
maven
{
url = "https://plugins.gradle.org/m2"
}
}
dependencies
{
classpath "net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT"
classpath "gradle.plugin.com.matthewprenger:CurseGradle:1.0.8"
}
}
apply plugin: "net.minecraftforge.gradle.forge"
apply plugin: "com.matthewprenger.cursegradle"
version = modversion
group = "teammion." + modid
archivesBaseName = modid
sourceCompatibility = targetCompatibility = "1.8"
compileJava
{
sourceCompatibility = targetCompatibility = "1.8"
}
minecraft
{
version = mcversion + "-" + forgeversion
runDir = "run"
mappings = mcpmappings
makeObfSourceJar = false
}
dependencies
{
compile files("libs/mioncore_" + mcversion + "-" + mioncore + "-deobf.jar")
}
task deobfJar(type : Jar) {
from sourceSets.main.output
classifier = "deobf"
}
task deobfSourceJar(type : Jar) {
from sourceSets.main.java
from sourceSets.main.resources
classifier = "sources"
}
artifacts
{
archives deobfJar
archives deobfSourceJar
}
curseforge
{
apiKey = System.getenv().CURSE_API_KEY ? System.getenv().CURSE_API_KEY : "devBuild"
project
{
id = curse_id
changelog = ""
releaseType = type == "rc" ? "release" : type
addGameVersion mcversion
mainArtifact jar
addArtifact deobfSourceJar
addArtifact deobfJar
relations
{
requiredLibrary "mioncore"
}
}
}
processResources
{
inputs.property "version", project.version
inputs.property "mcversion", project.minecraft.version
from(sourceSets.main.resources.srcDirs)
{
include "mcmod.info"
expand "version" : project.version, "mcversion" : project.minecraft.version
}
from(sourceSets.main.resources.srcDirs)
{
exclude "mcmod.info"
}
}