mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-03-04 06:44:40 +01:00
Slim jars III
This commit is contained in:
parent
bb39ed0fba
commit
c5d9e06779
1 changed files with 7 additions and 2 deletions
|
@ -306,8 +306,8 @@ tasks.named("sourcesJar") {
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
|
||||||
final slimJar = tasks.register('slimJar', Jar) {
|
final slimJar = tasks.register("slimJar", Jar) {
|
||||||
archiveClassifier = 'slim'
|
archiveClassifier = "slim"
|
||||||
from sourceSets.main.output
|
from sourceSets.main.output
|
||||||
manifest.attributes([
|
manifest.attributes([
|
||||||
"Git-Hash": gitHash
|
"Git-Hash": gitHash
|
||||||
|
@ -320,6 +320,10 @@ project.publishing {
|
||||||
mavenJava(MavenPublication) {
|
mavenJava(MavenPublication) {
|
||||||
artifactId base.archivesName.get()
|
artifactId base.archivesName.get()
|
||||||
from components.java
|
from components.java
|
||||||
|
|
||||||
|
artifact(tasks.jar) {
|
||||||
|
classifier = "all"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -339,6 +343,7 @@ project.publishing {
|
||||||
if (project.hasProperty('mavendir')) {
|
if (project.hasProperty('mavendir')) {
|
||||||
maven { url mavendir }
|
maven { url mavendir }
|
||||||
}
|
}
|
||||||
|
mavenLocal()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue