Allow to use folders for gradle configuration tests

This commit is contained in:
Nikolay Krasko
2017-10-06 17:55:58 +03:00
parent cc0a9070b9
commit 023067aaf2
27 changed files with 46 additions and 30 deletions
@@ -0,0 +1,36 @@
apply plugin: "java"
apply plugin: "kotlin"
sourceCompatibility = 1.5
version = '1.0'
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.11'
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
}
buildscript {
ext.kotlin_version = '$VERSION$'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
repositories {
mavenCentral()
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
@@ -0,0 +1,21 @@
apply plugin: "java"
apply plugin: "kotlin"
sourceCompatibility = 1.5
version = '1.0'
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.11'
}
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}