Allow to use folders for gradle configuration tests
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
import org.gradle.api.JavaVersion.VERSION_1_7
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||
|
||||
val kotlin_version: String by extra
|
||||
buildscript {
|
||||
var kotlin_version: String by extra
|
||||
kotlin_version = "$VERSION$"
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath(kotlinModule("gradle-plugin", kotlin_version))
|
||||
}
|
||||
}
|
||||
|
||||
plugins {
|
||||
application
|
||||
}
|
||||
|
||||
apply {
|
||||
plugin("kotlin")
|
||||
}
|
||||
|
||||
application {
|
||||
mainClassName = "samples.HelloWorld"
|
||||
}
|
||||
|
||||
repositories {
|
||||
jcenter()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
testCompile("junit:junit:4.12")
|
||||
compile(kotlinModule("stdlib-jre8", kotlin_version))
|
||||
}
|
||||
val compileKotlin: KotlinCompile by tasks
|
||||
compileKotlin.kotlinOptions {
|
||||
jvmTarget = "1.8"
|
||||
}
|
||||
val compileTestKotlin: KotlinCompile by tasks
|
||||
compileTestKotlin.kotlinOptions {
|
||||
jvmTarget = "1.8"
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
import org.gradle.api.JavaVersion.VERSION_1_7
|
||||
|
||||
plugins {
|
||||
application
|
||||
}
|
||||
|
||||
apply {
|
||||
plugin("kotlin")
|
||||
}
|
||||
|
||||
application {
|
||||
mainClassName = "samples.HelloWorld"
|
||||
}
|
||||
|
||||
repositories {
|
||||
jcenter()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
testCompile("junit:junit:4.12")
|
||||
}
|
||||
Reference in New Issue
Block a user