mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24: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" }
|
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.withType(JavaCompile) {
|
||||||
|
sourceCompatibility = javaVersion.toString()
|
||||||
|
targetCompatibility = javaVersion.toString()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
project("spine-libgdx") {
|
project("spine-libgdx") {
|
||||||
|
|||||||
@ -14,12 +14,23 @@ project("spine-libgdx") {
|
|||||||
from(sourceSets.main.allJava)
|
from(sourceSets.main.allJava)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.javadoc {
|
||||||
|
failOnError = false
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.register("javadocJar", Jar) {
|
||||||
|
dependsOn javadoc
|
||||||
|
archiveClassifier.set("javadoc")
|
||||||
|
from(javadoc.destinationDir)
|
||||||
|
}
|
||||||
|
|
||||||
afterEvaluate {
|
afterEvaluate {
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
create("release", MavenPublication) {
|
create("release", MavenPublication) {
|
||||||
from(components.java)
|
from(components.java)
|
||||||
artifact(tasks.getByName("sourceJar"))
|
artifact(tasks.getByName("sourceJar"))
|
||||||
|
artifact(tasks.getByName("javadocJar"))
|
||||||
|
|
||||||
groupId = "com.esotericsoftware.spine"
|
groupId = "com.esotericsoftware.spine"
|
||||||
artifactId = "spine-libgdx"
|
artifactId = "spine-libgdx"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user