diff options
author | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2022-06-19 19:41:06 +0700 |
---|---|---|
committer | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2022-06-19 19:41:06 +0700 |
commit | bb6f1318a8d8f4b11c0648304317f4bf02c0f85c (patch) | |
tree | 1022a32ae0f212e013507343b087af0241bfb6d6 /build.gradle.kts | |
parent | a929901f2dfb135cbb72036b5e49b4fdb38fe24a (diff) | |
download | OneConfig-bb6f1318a8d8f4b11c0648304317f4bf02c0f85c.tar.gz OneConfig-bb6f1318a8d8f4b11c0648304317f4bf02c0f85c.tar.bz2 OneConfig-bb6f1318a8d8f4b11c0648304317f4bf02c0f85c.zip |
exclude internal package from sources jar as well
remove debug stuff from mixin plugin
use try with resources for mixin things
Diffstat (limited to 'build.gradle.kts')
-rw-r--r-- | build.gradle.kts | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/build.gradle.kts b/build.gradle.kts index 154d4a3..691e9b3 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -3,6 +3,7 @@ import gg.essential.gradle.util.RelocationTransform.Companion.registerRelocation import gg.essential.gradle.util.noServerRunConfigs import gg.essential.gradle.util.prebundle + plugins { kotlin("jvm") id("gg.essential.multi-version") @@ -231,6 +232,9 @@ tasks { input.set(shadowJar.get().archiveFile) archiveClassifier.set("full") } + fun Jar.excludeInternal() { + exclude("**/internal/**") + } jar { manifest { attributes( @@ -243,8 +247,7 @@ tasks { ) ) } - exclude("**/internal") - exclude("**/internal/**") + excludeInternal() archiveClassifier.set("") } dokkaHtml.configure { @@ -272,7 +275,10 @@ tasks { dependsOn(dokkaHtml) from(layout.buildDirectory.dir("dokka")) } - named("sourcesJar").get().dependsOn(dokkaJar) + named<Jar>("sourcesJar") { + dependsOn(dokkaJar) + excludeInternal() + } } afterEvaluate { |