PlayerUtils/build.gradle.kts

49 lines
1.0 KiB
Plaintext
Raw Normal View History

2023-07-06 03:24:06 +00:00
plugins {
id("java")
id("maven-publish")
id("com.gorylenko.gradle-git-properties") version "2.3.1"
2023-07-06 03:24:06 +00:00
}
group = "com.alttd"
2024-01-03 14:47:51 +00:00
version = System.getenv("BUILD_NUMBER") ?: "1.0-SNAPSHOT"
2023-07-06 03:24:06 +00:00
description = "Altitude's Transfer Items plugin"
apply<JavaLibraryPlugin>()
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
gitProperties {
keys = listOf("git.commit.id", "git.commit.time")
}
2023-07-06 03:24:06 +00:00
tasks {
withType<JavaCompile> {
options.encoding = Charsets.UTF_8.name()
}
withType<Javadoc> {
options.encoding = Charsets.UTF_8.name()
}
2024-01-03 14:47:51 +00:00
jar {
archiveFileName.set("${rootProject.name}.jar")
2023-07-06 03:24:06 +00:00
}
2024-01-03 14:47:51 +00:00
processResources {
filteringCharset = Charsets.UTF_8.name()
duplicatesStrategy = DuplicatesStrategy.INCLUDE
filesMatching("plugin.yml") {
expand(Pair("version", project.version))
}
2023-07-06 03:24:06 +00:00
}
}
dependencies {
compileOnly("com.alttd:Galaxy-API:1.20.4-R0.1-SNAPSHOT") {
isChanging = true
}
2023-07-06 03:24:06 +00:00
}