30 lines
632 B
Kotlin
30 lines
632 B
Kotlin
repositories {
|
|
System.getenv("MAVEN_CENTRAL_REPO").let { repo ->
|
|
if (repo.isNullOrBlank())
|
|
mavenCentral()
|
|
else
|
|
maven(url = repo)
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(libs.gson)
|
|
implementation(libs.jna)
|
|
implementation(libs.kala.compress.tar)
|
|
}
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
tasks.withType<JavaCompile> {
|
|
options.encoding = "UTF-8"
|
|
}
|
|
|
|
tasks.processResources {
|
|
into("org/jackhuang/hmcl/gradle/l10n") {
|
|
from(projectDir.resolve("../HMCLCore/src/main/resources/assets/lang/"))
|
|
}
|
|
}
|