Only add the kotlin package as library jar for the proguard gradle task
This commit is contained in:
parent
548bf472ba
commit
f72acaaf9a
|
@ -58,7 +58,7 @@ subprojects {
|
|||
// The following lines are needed at least for the current version of proguard
|
||||
dontwarn("java.**")
|
||||
val homeDir = System.getProperty("java.home") as String
|
||||
libraryjars(configurations.compileClasspath)
|
||||
libraryjars(configurations.compileClasspath.get().filter { it.name.startsWith("kotlin") })
|
||||
if (JavaVersion.current().isJava9Compatible) {
|
||||
libraryjars("$homeDir/jmods/java.base.jmod")
|
||||
} else libraryjars("$homeDir/lib/rt.jar")
|
||||
|
@ -76,6 +76,7 @@ subprojects {
|
|||
mixinConfig("snowygui-mixins.json")
|
||||
refmapName = "snowygui-common-refmap.json"
|
||||
}
|
||||
repositories { maven(url = "https://jitpack.io") }
|
||||
dependencies {
|
||||
implementation("$kotlinX:kotlinx-coroutines-core:1.4.0")
|
||||
listOf(
|
||||
|
@ -116,6 +117,7 @@ allprojects {
|
|||
relocate("org.jetbrains", "${rootProject.group}.jetbrainslibs")
|
||||
relocate("com.typesafe.config", "${rootProject.group}.typesafe.config")
|
||||
relocate("io.github.config4k", "${rootProject.group}.config4k")
|
||||
relocate("net.arikia.dev.drpc", "${rootProject.group}.drpc")
|
||||
exclude("**/*.kotlin_metadata")
|
||||
exclude("**/*.kotlin_builtins")
|
||||
exclude("META-INF/maven/**/*")
|
||||
|
|
Loading…
Reference in New Issue