Skip to content

Commit

Permalink
[libgdx] Add javadoc Jar to publishing artifacts.
Browse files Browse the repository at this point in the history
  • Loading branch information
badlogic committed Jul 25, 2024
1 parent e6de4ee commit 7457b1b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spine-libgdx/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ allprojects {
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
mavenCentral()
}

tasks.withType(JavaCompile) {
sourceCompatibility = javaVersion.toString()
targetCompatibility = javaVersion.toString()
}
}

project("spine-libgdx") {
Expand Down
11 changes: 11 additions & 0 deletions spine-libgdx/publishing.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,23 @@ project("spine-libgdx") {
from(sourceSets.main.allJava)
}

tasks.javadoc {
failOnError = false
}

tasks.register("javadocJar", Jar) {
dependsOn javadoc
archiveClassifier.set("javadoc")
from(javadoc.destinationDir)
}

afterEvaluate {
publishing {
publications {
create("release", MavenPublication) {
from(components.java)
artifact(tasks.getByName("sourceJar"))
artifact(tasks.getByName("javadocJar"))

groupId = "com.esotericsoftware.spine"
artifactId = "spine-libgdx"
Expand Down

0 comments on commit 7457b1b

Please sign in to comment.