Skip to content

Commit

Permalink
Add java-library plugin and update dependencies to API
Browse files Browse the repository at this point in the history
Added the `java-library` plugin to enable API publication features. Updated dependencies from `implementation` to `api` for Guava, Gson, and Velocity API to ensure they are exposed in the generated library. Updated the project version to 1.0.1 for this enhancement.
  • Loading branch information
NonSwag committed Sep 1, 2024
1 parent eb86987 commit cec292a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
plugins {
id("java")
id("java-library")
id("maven-publish")
}

group = "net.thenextlvl.resolver"
version = "1.0.0"
version = "1.0.1"

java {
toolchain.languageVersion = JavaLanguageVersion.of(21)
Expand All @@ -31,10 +32,10 @@ dependencies {
compileOnly("org.projectlombok:lombok:1.18.34")
compileOnly("org.jetbrains:annotations:24.1.0")

implementation("com.google.guava:guava:33.3.0-jre")
implementation("com.google.code.gson:gson:2.11.0")
api("com.google.guava:guava:33.3.0-jre")
api("com.google.code.gson:gson:2.11.0")

implementation("com.velocitypowered:velocity-api:3.3.0-SNAPSHOT") {
api("com.velocitypowered:velocity-api:3.3.0-SNAPSHOT") {
isTransitive = false
}

Expand Down

0 comments on commit cec292a

Please sign in to comment.