diff options
author | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2022-05-28 08:43:33 +0700 |
---|---|---|
committer | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2022-05-28 08:43:33 +0700 |
commit | 2f45fed981d7fcdf6e39791fecfa1dd410614fbf (patch) | |
tree | 360ff86dfbf5d8c3f8986784274abbb698ae0ed3 | |
parent | 71582108cf96f096adfcca17896a22ae1c35865d (diff) | |
download | OneConfig-2f45fed981d7fcdf6e39791fecfa1dd410614fbf.tar.gz OneConfig-2f45fed981d7fcdf6e39791fecfa1dd410614fbf.tar.bz2 OneConfig-2f45fed981d7fcdf6e39791fecfa1dd410614fbf.zip |
package dokka docs in a jar file
-rw-r--r-- | build.gradle.kts | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/build.gradle.kts b/build.gradle.kts index 998dbaa..6718cc1 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -40,7 +40,7 @@ blossom { version = mod_version group = "cc.polyfrost" base { - archivesName.set(mod_name) + archivesName.set("$mod_name-$platform") } loom { noServerRunConfigs() @@ -111,11 +111,11 @@ val lwjglJar by tasks.registering(ShadowJar::class) { } dependencies { - dummyImpl("gg.essential:vigilance-1.8.9-forge:222") { + dummyImpl("gg.essential:vigilance-$platform:222") { isTransitive = false } - shadeRelocated("gg.essential:universalcraft-1.8.9-forge:211") { + shadeRelocated("gg.essential:universalcraft-$platform:211") { isTransitive = false } @@ -250,6 +250,13 @@ tasks { } } } + val dokkaJar = create("dokkaJar", Jar::class.java) { + archiveClassifier.set("dokka") + group = "build" + dependsOn(dokkaHtml) + from(layout.buildDirectory.dir("dokka")) + } + named("javadocJar").get().dependsOn(dokkaJar) } afterEvaluate { @@ -282,12 +289,13 @@ afterEvaluate { publishing { publications { - register<MavenPublication>("oneconfig-1.8.9-forge") { + register<MavenPublication>("oneconfig-$platform") { groupId = "cc.polyfrost" - artifactId = "oneconfig-1.8.9-forge" + artifactId = base.archivesName.get() from(components["java"]) artifact(tasks["remapJar"]) + artifact(tasks["dokkaJar"]) } } |