38 lines
830 B
Kotlin
38 lines
830 B
Kotlin
group = "rip.iwakura"
|
|
version = "0.1.0"
|
|
|
|
plugins {
|
|
java
|
|
id("com.github.johnrengelman.shadow") version "7.1.2"
|
|
id("de.eldoria.plugin-yml.paper") version "0.7.1"
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven {
|
|
name = "papermc"
|
|
url = uri("https://repo.papermc.io/repository/maven-public/")
|
|
}
|
|
}
|
|
|
|
paper {
|
|
main = "rip.iwakura.civil.Core"
|
|
authors = listOf("hex", "grng")
|
|
apiVersion = "1.21"
|
|
}
|
|
|
|
tasks.withType<Jar> {
|
|
val isDebug = providers.gradleProperty("isDebug")
|
|
if (isDebug.isPresent()) {
|
|
destinationDirectory.set(file(isDebug))
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly("io.papermc.paper:paper-api:1.21.4-R0.1-SNAPSHOT")
|
|
library("com.google.code.gson", "gson", "2.10.1") // All platform plugins
|
|
}
|
|
|
|
java {
|
|
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
|
|
}
|