-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
75 lines (59 loc) · 1.86 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
evaluationDependsOnChildren() // gotta make sure the children happen first
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
version = "1.2.0"
allprojects {
group= "uk.co.cloudhunter.letsencryptcraft"
archivesBaseName = "letsencryptcraft"
sourceCompatibility = targetCompatibility = "1.7"
compileJava {
sourceCompatibility = targetCompatibility = "1.7"
}
}
repositories {
jcenter()
maven { url = "http://files.minecraftforge.net/maven" }
mavenCentral()
}
task setupDecompWorkspace
task setupDevWorkspace
task setupCiWorkspace
dependencies {
compileOnly group: 'commons-io', name: 'commons-io', version: '2.4'
}
subprojects {
version = minecraft.version + "-" + rootProject.version
dependencies {
compile rootProject
}
sourceSets.main.resources.srcDirs += rootProject.sourceSets.main.resources.srcDirs
jar {
duplicatesStrategy = 'exclude'
from rootProject.sourceSets.main.output
}
sourceJar {
duplicatesStrategy = 'exclude'
from rootProject.sourceSets.main.allSource
}
artifacts {
archives sourceJar
}
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'
}
}
// task deps
rootProject.setupDecompWorkspace.dependsOn setupDecompWorkspace
rootProject.setupDevWorkspace.dependsOn setupDevWorkspace
rootProject.setupCiWorkspace.dependsOn setupCiWorkspace
rootProject.build.dependsOn build
rootProject.uploadArchives.dependsOn uploadArchives
}