We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca58f2e commit 33e0e16Copy full SHA for 33e0e16
gradle-conventions/src/main/kotlin/util/targets/jvm.kt
@@ -10,8 +10,15 @@ import org.gradle.kotlin.dsl.attributes
10
import org.gradle.kotlin.dsl.getByName
11
import util.other.files
12
import util.other.libs
13
+import util.other.optionalProperty
14
15
fun Project.configureJvm(isKmp: Boolean) {
16
+ val excludeJvm by optionalProperty("exclude")
17
+
18
+ if (isKmp && excludeJvm) {
19
+ return
20
+ }
21
22
tasks.getByName<Jar>(if (isKmp) "jvmJar" else "jar").apply {
23
manifest {
24
attributes(
0 commit comments