forked from Aizistral-Studios/Grimfixes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathartifacts.gradle
38 lines (31 loc) · 862 Bytes
/
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
jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from project(':Fixworks-Core').sourceSets.main.output
}
task devJar(type: Jar) {
archiveClassifier = 'dev'
from sourceSets.main.output
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from project(':Fixworks-Core').sourceSets.main.output
}
task sourcesJar(type: Jar) {
archiveClassifier = 'dev-sources'
from sourceSets.main.allSource
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from project(':Fixworks-Core').sourceSets.main.allSource
}
tasks.withType(Jar) {
if (name.equals('jar') || name.equals('devJar')) {
manifest {
attributes([
"Implementation-Title": project.name,
"Implementation-Version": "${project.version}",
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
])
}
}
}
artifacts {
archives devJar
archives sourcesJar
}