Skip to content

Commit

Permalink
Fix the Maven publication for new paperweight version
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobkmar committed Mar 29, 2022
1 parent 8b094e3 commit faaa11d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions build.gradle.kts
Expand Up @@ -33,7 +33,7 @@ dependencies {
}

tasks {
build {
assemble {
dependsOn(reobfJar)
}

Expand Down Expand Up @@ -69,10 +69,9 @@ publishing {
}

publications {
create<MavenPublication>(project.name) {
artifact(tasks.reobfJar)
artifact(tasks.named("javadocJar"))
artifact(tasks.named("sourcesJar"))
register<MavenPublication>(project.name) {
from(components["java"])
artifact(tasks.jar.get().outputs.files.single())

this.groupId = project.group.toString()
this.artifactId = project.name.toLowerCase()
Expand Down

0 comments on commit faaa11d

Please sign in to comment.