Refactoring - renaming projects, applying sourceSets DSL

This commit is contained in:
Ilya Chernikov
2017-09-11 14:21:44 +02:00
parent a6aaee3fe0
commit 96d5e0bb21
23 changed files with 84 additions and 93 deletions
+7 -10
View File
@@ -1,5 +1,5 @@
import org.gradle.jvm.tasks.Jar
description = "Kotlin Runner"
apply { plugin("kotlin") }
@@ -9,18 +9,15 @@ dependencies {
buildVersion()
}
configureKotlinProjectSourcesDefault()
configureKotlinProjectNoTests()
sourceSets {
"main" { default() }
"test" { none() }
}
val jar: Jar by tasks
jar.apply {
setupRuntimeJar("Kotlin Runner")
runtimeJar {
manifest.attributes.put("Main-Class", "org.jetbrains.kotlin.runner.Main")
manifest.attributes.put("Class-Path", "kotlin-runtime.jar")
archiveName = "kotlin-runner.jar"
}
dist {
from(jar)
}
dist()