diff --git a/build.gradle.kts b/build.gradle.kts index 2c06c2f..36ebb15 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -38,6 +38,7 @@ subprojects { } dependencies { + implementation("org.jetbrains:annotations:24.0.1") testImplementation("org.junit.jupiter:junit-jupiter-engine:5.8.1") } @@ -47,24 +48,20 @@ subprojects { options.compilerArgs.add("-parameters") } shadowJar { - archiveFileName.set(rootProject.name) + archiveBaseName.set(project.name) minimize() // Package expected to use as final directory for dependencies used. val relocationFinalPackage = "io.github.aivruu.repoviewer.libs" relocate("org.jetbrains.annotations", "$relocationFinalPackage.org.jetbrains.annotations") - relocate("com.google.gson", "$relocationFinalPackage.com.google.gson") + relocate("com.google", "$relocationFinalPackage.com.google") } } publishing { publications { create("maven") { - groupId = "io.github.aivruu.repoviewer" - artifactId = project.name - version = project.version.toString() - from(components["java"]) } } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 870831f..b9cdd9b 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -5,12 +5,9 @@ indra = "3.1.3" # Version declaration for GSON library. gson = "2.11.0" -# Version declaration for JetBrains Annotations. -annotations = "24.0.1" [libraries] gson = { group = "com.google.code.gson", name = "gson", version.ref = "gson" } -annotations = { group = "org.jetbrains", name = "annotations", version.ref = "annotations" } [plugins] shadow = { id = "io.github.goooler.shadow", version.ref = "shadow" }