Skip to content

Commit

Permalink
update bukkit example because paperweight is annoying
Browse files Browse the repository at this point in the history
  • Loading branch information
Revxrsal committed Feb 14, 2025
1 parent 7bb6a70 commit 098901d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions examples/bukkit-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import xyz.jpenilla.resourcefactory.bukkit.BukkitPluginYaml
plugins {
id("java")
kotlin("jvm")
id("io.papermc.paperweight.userdev") version "1.7.2"
// id("io.papermc.paperweight.userdev") version "1.7.2"
id("com.gradleup.shadow") version "8.3.0"

// Adds runServer and runMojangMappedServer tasks for testing
Expand All @@ -16,6 +16,10 @@ plugins {
group = "io.github.revxrsal"

repositories {
maven(url = "https://oss.sonatype.org/content/repositories/snapshots")
maven(url = "https://hub.spigotmc.org/nexus/content/groups/public/")
maven(url = "https://libraries.minecraft.net")
maven(url = "https://repo.papermc.io/repository/maven-public/")
mavenCentral()
}

Expand All @@ -24,10 +28,13 @@ dependencies {
implementation(project(":brigadier"))
implementation(project(":bukkit"))
implementation(kotlin("stdlib-jdk8"))
paperweight.paperDevBundle("1.21.1-R0.1-SNAPSHOT")
compileOnly("net.kyori:adventure-api:4.18.0")
compileOnly("org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT")
// paperweight.paperDevBundle("1.21.1-R0.1-SNAPSHOT")
}

java.toolchain.languageVersion.set(JavaLanguageVersion.of(21))
//java.toolchain.languageVersion.set(JavaLanguageVersion.of(21))
java.toolchain.languageVersion.set(JavaLanguageVersion.of(8))

tasks.withType<JavaCompile> {
// Preserve parameter names in the bytecode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ public final class TestPlugin extends JavaPlugin {
@Override
public void onEnable() {
Lamp<BukkitCommandActor> lamp = BukkitLamp.builder(this).build();
lamp.register(new GreetCommands());
lamp.register(new GreetCommands(), new TeamCommands());
}
}

0 comments on commit 098901d

Please sign in to comment.