diff --git a/build.gradle b/build.gradle deleted file mode 100644 index 7966a3b..0000000 --- a/build.gradle +++ /dev/null @@ -1,39 +0,0 @@ -plugins { - id 'java-library' - id 'xyz.jpenilla.special-gradle' version '1.0.0-SNAPSHOT' -} - -java { - sourceCompatibility = JavaVersion.VERSION_16 - targetCompatibility = JavaVersion.VERSION_16 -} - -repositories { - mavenCentral() - maven { url = 'https://oss.sonatype.org/content/repositories/snapshots' } - maven { url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' } - - // libs folder (TODO: transfer away from this!) - flatDir { - dirs 'libs' - } -} - -dependencies { - implementation name: 'Factions' - implementation name: 'GriefPrevention' - implementation name: 'MassiveCore' - implementation name: 'PreciousStones' - implementation name: 'RedProtect' - implementation name: 'Residence' - implementation name: 'Towny' - implementation name: 'WorldEdit' - implementation name: 'WorldGuard' -} - -tasks { - specialGradle { - minecraftVersion.set("1.18") - specialSourceVersion.set("1.10.0") - } -} \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts new file mode 100644 index 0000000..7956cae --- /dev/null +++ b/build.gradle.kts @@ -0,0 +1,38 @@ +plugins { + `java-library` + id("io.papermc.paperweight.userdev") version "1.3.3" +} + +repositories { + mavenCentral() + maven("https://oss.sonatype.org/content/repositories/snapshots") + maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") + + // libs folder (TODO: transfer away from this!) + flatDir { + dirs = setOf(file("libs")) + } +} + +dependencies { + implementation(":Factions") + implementation(":GriefPrevention") + implementation(":MassiveCore") + implementation(":PreciousStones") + implementation(":RedProtect") + implementation(":Residence") + implementation(":Towny") + implementation(":WorldEdit") + implementation(":WorldGuard") + paperDevBundle("1.18.1-R0.1-SNAPSHOT") +} + +tasks { + assemble { + dependsOn(reobfJar) + } +} + +java { + toolchain.languageVersion.set(JavaLanguageVersion.of(17)) +} \ No newline at end of file diff --git a/settings.gradle b/settings.gradle.kts similarity index 80% rename from settings.gradle rename to settings.gradle.kts index a68ceac..746404d 100644 --- a/settings.gradle +++ b/settings.gradle.kts @@ -9,9 +9,9 @@ pluginManagement { repositories { - maven { url = "https://repo.jpenilla.xyz/snapshots/" } gradlePluginPortal() + maven("https://papermc.io/repo/repository/maven-public/") } } -rootProject.name = 'Herobrine 2' \ No newline at end of file +rootProject.name = "Herobrine 2" \ No newline at end of file