Implement Gradle Kotlin DSL build
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
|
||||
import org.gradle.jvm.tasks.Jar
|
||||
|
||||
apply { plugin("kotlin") }
|
||||
|
||||
dependencies {
|
||||
val compile by configurations
|
||||
compile(ideaSdkDeps("asm-all"))
|
||||
buildVersion()
|
||||
}
|
||||
|
||||
configureKotlinProjectSources("src", "instrumentation/src")
|
||||
configureKotlinProjectNoTests()
|
||||
|
||||
val jar: Jar by tasks
|
||||
jar.apply {
|
||||
setupRuntimeJar("Kotlin Preloader")
|
||||
manifest.attributes.put("Main-Class", "org.jetbrains.kotlin.preloading.Preloader")
|
||||
archiveName = "kotlin-preloader.jar"
|
||||
}
|
||||
|
||||
dist {
|
||||
from(jar)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user