Skip to content

Commit

Permalink
build: set ver 0.1.7; attempt fix publishing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lokka30 committed Jan 25, 2025
1 parent f1795e2 commit ee36116
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#

# Main
version=0.1.6
version=0.1.7
description=User playtime monitoring for MC

# Misc
Expand Down
25 changes: 20 additions & 5 deletions playtimestats-plugin-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,19 @@ dependencies {
testImplementation(kotlin("test"))
}

publishing {
publications {
withType<MavenPublication>().configureEach {
if (name == "gpr") {
artifacts.clear()
artifact(tasks.named("shadowJar").get()) {
classifier = "all"
}
}
}
}
}

tasks {
jar {
enabled = true
Expand All @@ -48,6 +61,13 @@ tasks {
}
}

compileTestKotlin {
compilerOptions {
jvmTarget = JvmTarget.JVM_21
apiVersion = KotlinVersion.KOTLIN_2_1
}
}

compileJava {
options.isDeprecation = true
options.encoding = "UTF-8"
Expand All @@ -61,9 +81,4 @@ tasks {
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}

kotlin {
jvmToolchain(21)
}

0 comments on commit ee36116

Please sign in to comment.