@@ -100,6 +100,14 @@ fun KotlinMultiplatformExtension.jvmTarget(project: Project) =
100100 // val test by testRuns.existing
101101 testRuns.configureEach { executionTask.configure { configureJavaTest() } }
102102
103+ // binaries {
104+ // executable {
105+ // mainClass = libs.versions.app.mainclass
106+ // applicationDefaultJvmArgs = jvmRunArgs
107+ // applicationDistribution.duplicatesStrategy = DuplicatesStrategy.WARN
108+ // }
109+ // }
110+
103111 // Register a task to execute a class using jvm runtime dependencies.
104112 // compilations.getByName("test") {
105113 // tasks.register<JavaExec>("ktExec") {
@@ -108,35 +116,7 @@ fun KotlinMultiplatformExtension.jvmTarget(project: Project) =
108116 // }
109117 // }
110118
111- // attributes.attribute(mppTargetAttr, platformType.name)
112119 // attributes.attribute(KotlinPlatformType.attribute, KotlinPlatformType.jvm)
113-
114- // https://youtrack.jetbrains.com/issue/KT-41409
115- // binaries {
116- // // Configures JavaExec task with name "runJvm" and Gradle distrbition for the
117- // "main" compilation in this target
118- // executable {
119- // mainClass = "foo.MainKt"
120- // }
121- //
122- // // Configures JavaExec task with name "runJvmAnother" and Gradle distribution
123- // for the "main" compilation
124- // executable(KotlinCompilation.MAIN_COMPILATION_NAME, "another") {
125- // mainClass = "foo.MainAnotherKt" // Class to run is different from above
126- // }
127- //
128- // // Configures JavaExec task with name "runJvmTest" and Gradle distribution for
129- // the "test" compilation
130- // executable(KotlinCompilation.TEST_COMPILATION_NAME) {
131- // mainClass = "foo.MainTestKt"
132- // }
133- //
134- // // Configures JavaExec task with name "runJvmTestAnother" and Gradle
135- // distribution for the "test" compilation
136- // executable(KotlinCompilation.TEST_COMPILATION_NAME, "another") {
137- // mainClass = "foo.MainAnotherTestKt"
138- // }
139- // }
140120 }
141121
142122 sourceSets {
0 commit comments