Migrate to the Paperweight Userdev Gradle plugin for compiling the plugin. As part of the migration, the Gradle files have been ported from the old Groovy DSL format to the Kotlin DSL format.
This commit is contained in:
parent
83f92e79d1
commit
960928672a
39
build.gradle
39
build.gradle
@ -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")
|
||||
}
|
||||
}
|
38
build.gradle.kts
Normal file
38
build.gradle.kts
Normal file
@ -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))
|
||||
}
|
@ -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'
|
||||
rootProject.name = "Herobrine 2"
|
Loading…
Reference in New Issue
Block a user