We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab598e1 commit 8d914dcCopy full SHA for 8d914dc
build.gradle.kts
@@ -23,6 +23,11 @@ val CI = System.getenv("CI") != null
23
val channel = prop("publishChannel")
24
val platformVersion = prop("platformVersion")
25
26
+val excludedJars = listOf(
27
+ "java-api.jar",
28
+ "java-impl.jar"
29
+)
30
+
31
plugins {
32
idea
33
kotlin("jvm") version "1.3.0"
@@ -94,6 +99,11 @@ allprojects {
94
99
}
95
100
96
101
afterEvaluate {
102
+ val mainSourceSet = sourceSets.getByName("main")
103
+ val mainClassPath = mainSourceSet.compileClasspath
104
+ val exclusion = mainClassPath.filter { it.name in excludedJars }
105
+ mainSourceSet.compileClasspath = mainClassPath - exclusion
106
97
107
tasks.withType<AbstractTestTask> {
98
108
testLogging {
109
if (hasProp("showTestStatus") && prop("showTestStatus").toBoolean()) {
0 commit comments