Fix the Maven publication for new paperweight version
This commit is contained in:
@@ -33,7 +33,7 @@ dependencies {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
build {
|
assemble {
|
||||||
dependsOn(reobfJar)
|
dependsOn(reobfJar)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -69,10 +69,9 @@ publishing {
|
|||||||
}
|
}
|
||||||
|
|
||||||
publications {
|
publications {
|
||||||
create<MavenPublication>(project.name) {
|
register<MavenPublication>(project.name) {
|
||||||
artifact(tasks.reobfJar)
|
from(components["java"])
|
||||||
artifact(tasks.named("javadocJar"))
|
artifact(tasks.jar.get().outputs.files.single())
|
||||||
artifact(tasks.named("sourcesJar"))
|
|
||||||
|
|
||||||
this.groupId = project.group.toString()
|
this.groupId = project.group.toString()
|
||||||
this.artifactId = project.name.toLowerCase()
|
this.artifactId = project.name.toLowerCase()
|
||||||
|
Reference in New Issue
Block a user