-
-
Save yuanqingfei/e89a90ee163b7d2468cd04eec90b44fb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tasks{ | |
val jsBrowserWebpack by getting(KotlinWebpack::class) | |
val jvmJar by getting(Jar::class){ | |
dependsOn(jsBrowserWebpack) | |
from(File(jsBrowserWebpack.entry.name, jsBrowserWebpack.destinationDirectory?.canonicalPath)) | |
} | |
val jvmRuntimeClasspath by configurations.getting | |
val run by creating(JavaExec::class){ | |
dependsOn(jvmJar) | |
group = "application" | |
main = "sample.MainKt" | |
classpath(jvmRuntimeClasspath, jvmJar) | |
args = List<String?>(0, { _ -> "" }) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment