diff --git a/build.gradle.kts b/build.gradle.kts index a919b0cea5..dcc499983c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -19,6 +19,7 @@ plugins { alias(libs.plugins.eventImplGen) alias(libs.plugins.ideaExt) alias(libs.plugins.errorprone) + alias(libs.plugins.nexusPublish) } val ap by sourceSets.registering { @@ -127,7 +128,7 @@ dependencies { tasks { genEventImpl { sourceCompatibility = "17" - destinationDir = project.layout.buildDirectory.dir("generated/event-factory").get().asFile + destinationDirectory = project.layout.buildDirectory.dir("generated/event-factory") outputFactory = "org.spongepowered.api.event.SpongeEventFactory" include("org/spongepowered/api/event/*/**/*") diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 784206fb77..707ee08772 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -56,10 +56,11 @@ mockito = { module = "org.mockito:mockito-core", version.ref = "mockito" } [plugins] errorprone = { id = "net.ltgt.errorprone", version = "3.1.0" } -eventImplGen = { id = "org.spongepowered.gradle.event-impl-gen", version = "7.0.0" } +eventImplGen = { id = "org.spongepowered.gradle.event-impl-gen", version = "7.1.0" } ideaExt = { id = "org.jetbrains.gradle.plugin.idea-ext", version = "1.1.7" } indra-checkstyle = { id = "net.kyori.indra.checkstyle", version.ref = "indra" } indra-crossdoc = { id = "net.kyori.indra.crossdoc", version.ref = "indra" } indra-publishing = { id = "net.kyori.indra.publishing", version.ref = "indra" } indra-publishing-sonatype = { id = "net.kyori.indra.publishing.sonatype", version.ref = "indra" } +nexusPublish = { id = "io.github.gradle-nexus.publish-plugin", version = "2.0.0-rc-1"} spongeGradle-convention = { id = "org.spongepowered.gradle.sponge.dev", version = "2.2.0" }