-
Notifications
You must be signed in to change notification settings - Fork 0
/
artifacts.gradle
43 lines (39 loc) · 1.24 KB
/
artifacts.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
def jarManifest = [
"Specification-Title": 'arnicalib',
"Specification-Vendor": 'AUIOC',
"Specification-Version": '1',
"Implementation-Title": project.name,
"Implementation-Version": "${arnicalib_version}",
"Implementation-Vendor" :'AUIOC',
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ"),
"TweakClass": 'org.spongepowered.asm.launch.MixinTweaker',
"TweakOrder": 0,
"MixinConfigs": 'arnicalib.mixin.json',
"ArnicaLib-Version": "${project.archivesBaseName}-${project.fullVersion}"
]
jar {
manifest {attributes(jarManifest)}
}
jar.finalizedBy('reobfJar')
task deobfJar(type: Jar) {
from sourceSets.main.output
classifier = 'deobf'
manifest {attributes(jarManifest)}
}
task sourcesJar(type: Jar, dependsOn: classes) {
from sourceSets.main.allSource
classifier = 'sources'
manifest {attributes(jarManifest)}
}
task forgelibJar(type: Jar) {
from sourceSets.main.output
from sourceSets.main.allJava
classifier = 'forgelib'
manifest {attributes(jarManifest)}
}
artifacts {
archives sourcesJar
archives deobfJar
archives forgelibJar
}
tasks.build.dependsOn('sourcesJar', 'deobfJar', 'forgelibJar')