Skip to content

Commit

Permalink
include paper as runtimeOnly
Browse files Browse the repository at this point in the history
  • Loading branch information
Revxrsal committed Sep 10, 2024
1 parent 0d69d8c commit d69200b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 7 additions & 1 deletion bukkit/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,16 @@ repositories {
dependencies {
implementation(project(":common"))
implementation(project(":brigadier"))
runtimeOnly(project(":paper"))
compileOnly("org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT")
compileOnly("com.mojang:brigadier:1.0.18")
compileOnly("io.papermc.paper:paper-mojangapi:1.19.1-R0.1-SNAPSHOT")
compileOnly("io.papermc.paper:paper-api:1.19.1-R0.1-SNAPSHOT")
}

java.toolchain.languageVersion.set(JavaLanguageVersion.of(17))
java {
disableAutoTargetJvm()
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
2 changes: 0 additions & 2 deletions examples/bukkit-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ dependencies {
implementation(project(":common"))
implementation(project(":brigadier"))
implementation(project(":bukkit"))
implementation(project(":paper"))
implementation(kotlin("stdlib-jdk8"))
paperweight.paperDevBundle("1.21.1-R0.1-SNAPSHOT")
}
Expand All @@ -43,7 +42,6 @@ bukkitPluginYaml {
main = "com.example.plugin.TestPlugin"
load = BukkitPluginYaml.PluginLoadOrder.STARTUP
authors.add("Revxrsal")
apiVersion = "1.20.5"
}

tasks["build"].dependsOn(tasks.shadowJar)

0 comments on commit d69200b

Please sign in to comment.