-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
124 lines (106 loc) · 3.18 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
118
119
120
121
122
123
124
buildscript {
repositories {
mavenCentral()
maven { url = 'https://jitpack.io' }
maven { url = 'https://maven.minecraftforge.net' }
}
dependencies {
classpath 'com.anatawa12.forge:ForgeGradle:2.3-1.0.8'
}
}
apply plugin: "maven"
apply plugin: 'net.minecraftforge.gradle.forge'
version = "1.12-2.4.1"
group = "betterwithmods"
archivesBaseName = "BetterWithEverything"
sourceCompatibility = targetCompatibility = "1.8"
compileJava {
sourceCompatibility = targetCompatibility = "1.8"
}
if (System.getenv().BUILD_NUMBER != null) {//adds the build number to the end of the version string if on a build server
version += "-${System.getenv().BUILD_NUMBER}"
}
minecraft {
version = "${minecraft_version}-${forge_version}"
runDir = "run"
mappings = mcp_mappings
useDepAts = true
}
repositories {
maven { url "https://modmaven.dev" }
maven { url "https://maven.blamejared.com" }
maven { url "https://dvs1.progwml6.com/files/maven" }
maven { url "https://maven.amadornes.com" }
maven { url "https://www.ryanliptak.com/maven" }
maven { url "https://maven.tterrag.com" }
maven { url "https://maven.thiakil.com" }
maven { url "https://cursemaven.com" }
mavenCentral()
}
dependencies {
deobfProvided "mezz.jei:jei_1.12.2:4.16.1.302"
deobfCompile "applecore:AppleCore:1.12.2-3.4.0"
deobfCompile "team.chisel.ctm:CTM:MC1.12+"
deobfCompile "com.azanor.baubles:Baubles:1.12-1.5.2"
deobfCompile "CraftTweaker2:CraftTweaker2-MC1120-Main:1.12-4.1.20.690"
deobfCompile ("CraftTweaker2:CraftTweaker2-MC1120-Mod-JEI:1.12-4.1.20.690") {
transitive = false
}
if (!project.hasProperty("singleproject")) {
deobfCompile "betterwithmods.core:BetterWithLib:1.12-1.5"
} else {
compile project(':BetterWithLib')
}
compile "MCMultiPart2:MCMultiPart:2.5.3"
runtime "MCMultiPart2:MCMultiPart:2.5.3"
compile 'org.easytesting:fest-assert:1.4'
compile 'org.easytesting:fest-util:1.1.6'
compileOnly 'curse.maven:thaumcraft-223628:2629023'
}
sourceSets {
main {
java {
// exclude '**/Thaumcraft.java'
}
resources {
exclude 'assets/betterwithmods/docs/en_us/assets/**'
}
}
}
jar {
manifest {
attributes 'FMLAT': 'bwm_at.cfg'
}
exclude 'assets/betterwithmods/docs/en_us/assets/**'
}
task deobfJar(type: Jar) {
from sourceSets.main.output
classifier "dev"
}
artifacts {
archives deobfJar
}
configurations {
deployerJars
}
dependencies {
deployerJars 'org.apache.maven.wagon:wagon-ftp:2.2'
}
uploadArchives {
repositories {
mavenDeployer {
repository(url: "file://" + (System.getenv("local_maven") != null ? System.getenv("local_maven") : System.getenv("bamboo_local_maven")))
}
}
}
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'
}
}