ArcanumOcculta/build.gradle

50 lines
1.1 KiB
Groovy
Raw Normal View History

2023-06-29 06:51:07 +00:00
plugins {
id 'java'
}
group = 'app.simplexdev'
version = '1.0'
repositories {
mavenCentral()
maven {
2023-07-20 21:22:04 +00:00
name "papermc-repo"
url "https://repo.papermc.io/repository/maven-public/"
2023-06-29 06:51:07 +00:00
}
maven {
name = "sonatype"
url = "https://oss.sonatype.org/content/groups/public/"
}
}
dependencies {
2023-07-20 21:22:04 +00:00
compileOnly "io.papermc.paper:paper-api:1.20.1-R0.1-SNAPSHOT"
2023-07-18 05:22:26 +00:00
compileOnly "org.reflections:reflections:0.10.2"
2023-07-20 03:49:17 +00:00
implementation "org.jetbrains:annotations:23.0.0"
2023-06-29 06:51:07 +00:00
}
def targetJavaVersion = 17
java {
def javaVersion = JavaVersion.toVersion(targetJavaVersion)
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
if (JavaVersion.current() < javaVersion) {
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
}
}
tasks.withType(JavaCompile).configureEach {
if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) {
options.release = targetJavaVersion
}
}
processResources {
def props = [version: version]
inputs.properties props
filteringCharset 'UTF-8'
filesMatching('plugin.yml') {
expand props
}
}