mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 06:14:53 +08:00
[libgdx] Add javadoc Jar to publishing artifacts.
This commit is contained in:
parent
e6de4ee99f
commit
7457b1b9ac
@ -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") {
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user