1
0
mirror of https://github.com/Eyre-S/sekai-scores.git synced 2024-11-23 03:27:41 +08:00
sekai-scores/sekai-meta/build.gradle

50 lines
886 B
Groovy
Raw Normal View History

import java.nio.charset.Charset
import java.nio.charset.StandardCharsets
plugins {
id 'java'
2022-11-21 15:06:08 +08:00
id 'java-library'
}
repositories {
mavenCentral()
}
dependencies {
implementation rootProject
testImplementation "org.junit.jupiter:junit-jupiter-api:${lib_junit_v}"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${lib_junit_v}"
}
final JavaVersion proj_java = JavaVersion.VERSION_17
final Charset proj_source_encoding = StandardCharsets.UTF_8
group 'cc.sukazyo'
version moduleVersion
test {
useJUnitPlatform()
}
java {
sourceCompatibility proj_java
targetCompatibility proj_java
withSourcesJar()
}
tasks.withType(JavaCompile) {
options.encoding = proj_source_encoding.name()
}
tasks.withType(Javadoc) {
options.encoding = proj_source_encoding.name()
options.docEncoding = proj_source_encoding.name()
options.charSet = proj_source_encoding.name()
}