mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-03-03 22:34:42 +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) {
|
||||
archiveClassifier = 'slim'
|
||||
final slimJar = tasks.register("slimJar", Jar) {
|
||||
archiveClassifier = "slim"
|
||||
from sourceSets.main.output
|
||||
manifest.attributes([
|
||||
"Git-Hash": gitHash
|
||||
|
@ -320,6 +320,10 @@ project.publishing {
|
|||
mavenJava(MavenPublication) {
|
||||
artifactId base.archivesName.get()
|
||||
from components.java
|
||||
|
||||
artifact(tasks.jar) {
|
||||
classifier = "all"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -339,6 +343,7 @@ project.publishing {
|
|||
if (project.hasProperty('mavendir')) {
|
||||
maven { url mavendir }
|
||||
}
|
||||
mavenLocal()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue