diff --git a/build.gradle.kts b/build.gradle.kts index 7a40372..4f9ba63 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,5 +1,3 @@ -import org.gradle.kotlin.dsl.test - plugins { kotlin("jvm") version "2.0.21" id("com.gradleup.shadow") version "8.3.3" @@ -15,7 +13,7 @@ subprojects { apply(plugin = "maven-publish") group = "com.filkond" - version = "1.0.6" + version = "1.0.7" repositories { mavenCentral() @@ -72,32 +70,30 @@ subprojects { useJUnitPlatform() } - if (!project.name.contains("plugin")) { - configure { - repositories { - maven { - name = "GitHubPackages" - url = uri("https://maven.pkg.github.com/FiLKoNd/paperKtLib") - credentials { - username = project.findProperty("gpr.user") as String? ?: System.getenv("GITHUB_USERNAME") - password = project.findProperty("gpr.key") as String? ?: System.getenv("GITHUB_TOKEN") - } + configure { + repositories { + maven { + name = "GitHubPackages" + url = uri("https://maven.pkg.github.com/FiLKoNd/paperKtLib") + credentials { + username = project.findProperty("gpr.user") as String? ?: System.getenv("GITHUB_USERNAME") + password = project.findProperty("gpr.key") as String? ?: System.getenv("GITHUB_TOKEN") } } - publications { - create(project.name) { - artifact(tasks["sourcesJar"]) - artifact(tasks["javadocJar"]) - artifact(tasks.shadowJar) - artifactId = project.name - groupId = project.group.toString() - version = project.version.toString() - pom { - developers { - developer { - id = "FiLKoNd" - email = "fil.yt.pass@gmail.com" - } + } + publications { + create(project.name) { + artifact(tasks["sourcesJar"]) + artifact(tasks["javadocJar"]) + artifact(tasks.shadowJar) + artifactId = project.name + groupId = project.group.toString() + version = project.version.toString() + pom { + developers { + developer { + id = "FiLKoNd" + email = "fil.yt.pass@gmail.com" } } } diff --git a/paperktlib-config/build.gradle.kts b/paperktlib-config/build.gradle.kts index 8139ba0..9e039f0 100644 --- a/paperktlib-config/build.gradle.kts +++ b/paperktlib-config/build.gradle.kts @@ -3,6 +3,6 @@ plugins { } dependencies { - implementation(project(":paperktlib-adventure")) - implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.3") + compileOnly(project(":paperktlib-adventure")) + compileOnly("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.3") } \ No newline at end of file diff --git a/paperktlib-plugin/build.gradle.kts b/paperktlib-plugin/build.gradle.kts index 5da8b91..f68c492 100644 --- a/paperktlib-plugin/build.gradle.kts +++ b/paperktlib-plugin/build.gradle.kts @@ -1,5 +1,10 @@ +plugins { + kotlin("plugin.serialization") version "2.0.21" +} + dependencies { implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8") + implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.3") implementation(kotlin("reflect")) implementation(project(":paperktlib-towny"))