-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathbuild.gradle
36 lines (29 loc) · 1.17 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
plugins {
id 'java'
id "com.github.johnrengelman.shadow" version "8.1.1" apply false
}
subprojects {
apply plugin: 'java'
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.7'
repositories {
maven {
url = 'https://maven.minecraftforge.net'
}
maven {
url = 'https://libraries.minecraft.net'
}
}
}
task bundleJar(type: Jar, dependsOn: subprojects.assemble) {
archivesBaseName = rootProject.name
from zipTree(new File (project(':core').buildDir, "libs/core-${project(':core').version}-all.jar")) // i'm currently unable to correctly get the shadowJar output, so this should work for now
from project(':legacyforge').configurations.archives.allArtifacts.files.collect { zipTree(it) }
from project(':modlauncher').configurations.archives.allArtifacts.files.collect { zipTree(it) }
from project(':agent').configurations.archives.allArtifacts.files.collect { zipTree(it) }
from 'LICENSE.txt'
exclude 'META-INF/versions/**'
manifest {
from subprojects.collect{ it.jar.manifest }
}
}
build.dependsOn bundleJar