Skip to content

Commit

Permalink
chore(build): Silence some warnings from Adventure references
Browse files Browse the repository at this point in the history
  • Loading branch information
zml2008 committed Jan 23, 2024
1 parent fa78292 commit 08930b9
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ val ap by sourceSets.registering {
compileClasspath += sourceSets.main.get().compileClasspath + sourceSets.main.get().output
}

configurations {
sequenceOf(apiElements, runtimeElements).forEach {
it.configure {
exclude(group = "org.jetbrains", module = "annotations")
}
}
}

// Project dependencies
dependencies {
// Directly tied to what's available from Minecraft
Expand All @@ -33,9 +41,7 @@ dependencies {

// Adventure
api(platform(libs.adventure.bom))
api(libs.adventure.api) {
exclude(group = "org.jetbrains", module = "annotations")
}
api(libs.adventure.api)
api(libs.adventure.textSerializer.gson) {
exclude(group = "com.google.code.gson", module = "gson")
exclude(group = "net.kyori", module = "adventure-api")
Expand Down Expand Up @@ -120,7 +126,7 @@ dependencies {

tasks {
genEventImpl {
sourceCompatibility = "16"
sourceCompatibility = "17"
destinationDir = project.layout.buildDirectory.dir("generated/event-factory").get().asFile

outputFactory = "org.spongepowered.api.event.SpongeEventFactory"
Expand Down

0 comments on commit 08930b9

Please sign in to comment.