Rewrite GradleConfiguratorTest to use testData directory

This commit is contained in:
Natalia Selezneva
2018-08-10 15:09:30 +03:00
parent f395f163f8
commit d20b58ce61
56 changed files with 631 additions and 1289 deletions
@@ -0,0 +1,15 @@
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.1.0"
}
}
apply plugin: 'kotlin'
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-1.1.0"
}
@@ -0,0 +1,20 @@
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.1.0"
}
}
apply plugin: 'kotlin'
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-1.1.0"
}
kotlin {
experimental {
coroutines "enable"
}
}
@@ -0,0 +1,5 @@
import org.jetbrains.kotlin.gradle.dsl.Coroutines
kotlin {
experimental.coroutines = Coroutines.ENABLE
}
@@ -0,0 +1,15 @@
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.1.0"
}
}
apply plugin: 'kotlin'
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-1.1.0"
}
@@ -0,0 +1,20 @@
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.1.0"
}
}
apply plugin: 'kotlin'
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-1.1.0"
}
compileKotlin {
kotlinOptions {
languageVersion = "1.1"
}
}
@@ -0,0 +1,6 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions {
languageVersion = "1.1"
}
@@ -0,0 +1,15 @@
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.1.0"
}
}
apply plugin: 'kotlin'
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-1.1.0"
}
@@ -0,0 +1,16 @@
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.1.0"
}
}
apply plugin: 'kotlin'
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-1.1.0"
compile "org.jetbrains.kotlin:kotlin-reflect:1.0.0"
}
@@ -0,0 +1,4 @@
dependencies {
testCompile("junit:junit:4.12")
compile(kotlinModule("stdlib-jre8"))
}
@@ -0,0 +1,5 @@
dependencies {
testCompile("junit:junit:4.12")
compile(kotlinModule("stdlib-jre8"))
compile(kotlinModule("reflect", "1.0.0"))
}
@@ -0,0 +1,5 @@
val kotlin_version: String by extra
dependencies {
testCompile("junit:junit:4.12")
compile(kotlinModule("stdlib-jre8", kotlin_version))
}
@@ -0,0 +1,6 @@
val kotlin_version: String by extra
dependencies {
testCompile("junit:junit:4.12")
compile(kotlinModule("stdlib-jre8", kotlin_version))
compile(kotlinModule("reflect", kotlin_version))
}
@@ -0,0 +1,4 @@
dependencies {
testCompile("junit:junit:4.12")
compile(kotlinModule("stdlib-jre8"))
}
@@ -0,0 +1,5 @@
dependencies {
testCompile("junit:junit:4.12")
compile(kotlinModule("stdlib-jre8"))
compile("org.a.b:lib:1.0.0")
}
@@ -0,0 +1,3 @@
dependencies {
compile(kotlinModule("stdlib-jre8"))
}
@@ -0,0 +1,5 @@
dependencies {
compile(kotlinModule("stdlib-jre8"))
testCompile("junit:junit:4.12")
testCompile(kotlinModule("test", "1.1.2"))
}
@@ -0,0 +1,20 @@
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.1.0"
}
}
apply plugin: 'kotlin'
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-1.1.0"
}
kotlin {
experimental {
coroutines "error"
}
}
@@ -0,0 +1,20 @@
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.1.0"
}
}
apply plugin: 'kotlin'
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-1.1.0"
}
kotlin {
experimental {
coroutines "enable"
}
}
@@ -0,0 +1,5 @@
import org.jetbrains.kotlin.gradle.dsl.Coroutines
kotlin {
experimental.coroutines = Coroutines.DISABLE
}
@@ -0,0 +1,5 @@
import org.jetbrains.kotlin.gradle.dsl.Coroutines
kotlin {
experimental.coroutines = Coroutines.ENABLE
}
@@ -0,0 +1,20 @@
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.1.0"
}
}
apply plugin: 'kotlin'
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-1.1.0"
}
compileKotlin {
kotlinOptions {
languageVersion = "1.0"
}
}
@@ -0,0 +1,20 @@
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.1.0"
}
}
apply plugin: 'kotlin'
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-1.1.0"
}
compileKotlin {
kotlinOptions {
languageVersion = "1.1"
}
}
@@ -0,0 +1,4 @@
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions {
languageVersion = "1.0"
}
@@ -0,0 +1,4 @@
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions {
languageVersion = "1.1"
}
@@ -0,0 +1,6 @@
buildscript {
repositories {
jcenter()
mavenCentral()
}
}
@@ -0,0 +1,17 @@
buildscript {
ext.kotlin_version = '1.0.6'
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'kotlin'
repositories {
mavenCentral()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
}
@@ -0,0 +1 @@
include ':app'
@@ -0,0 +1,6 @@
buildscript {
repositories {
jcenter()
mavenCentral()
}
}
@@ -0,0 +1,31 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
val kotlin_version: String by extra
buildscript {
var kotlin_version: String by extra
kotlin_version = "1.1.2"
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath(kotlinModule("gradle-plugin", kotlin_version))
}
}
apply {
plugin("kotlin")
}
dependencies {
compile(kotlinModule("stdlib-jre8", kotlin_version))
}
repositories {
mavenCentral()
}
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions {
jvmTarget = "1.8"
}
val compileTestKotlin: KotlinCompile by tasks
compileTestKotlin.kotlinOptions {
jvmTarget = "1.8"
}
@@ -0,0 +1 @@
include ':app'
@@ -0,0 +1,2 @@
group = "testgroup"
version = "1.0-SNAPSHOT"
@@ -0,0 +1,38 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
val kotlin_version: String by extra
buildscript {
var kotlin_version: String by extra
kotlin_version = "1.2.60-dev-286"
repositories {
maven {
setUrl("https://teamcity.jetbrains.com/guestAuth/app/rest/builds/buildType:(id:Kotlin_dev_Compiler),number:1.2.60-dev-286,branch:default:any/artifacts/content/maven/")
}
mavenCentral()
}
dependencies {
classpath(kotlinModule("gradle-plugin", kotlin_version))
}
}
group = "testgroup"
version = "1.0-SNAPSHOT"
apply {
plugin("kotlin")
}
dependencies {
compile(kotlinModule("stdlib-jdk8", kotlin_version))
}
repositories {
maven {
setUrl("https://teamcity.jetbrains.com/guestAuth/app/rest/builds/buildType:(id:Kotlin_dev_Compiler),number:1.2.60-dev-286,branch:default:any/artifacts/content/maven/")
}
mavenCentral()
}
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions {
jvmTarget = "1.8"
}
val compileTestKotlin: KotlinCompile by tasks
compileTestKotlin.kotlinOptions {
jvmTarget = "1.8"
}
@@ -0,0 +1 @@
include ':app'
@@ -0,0 +1,2 @@
group 'testgroup'
version '1.0-SNAPSHOT'
@@ -0,0 +1,34 @@
group 'testgroup'
version '1.0-SNAPSHOT'
buildscript {
ext.kotlin_version = '1.2.60-dev-286'
repositories {
maven {
url 'https://teamcity.jetbrains.com/guestAuth/app/rest/builds/buildType:(id:Kotlin_dev_Compiler),number:1.2.60-dev-286,branch:default:any/artifacts/content/maven/'
}
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'kotlin'
repositories {
maven {
url 'https://teamcity.jetbrains.com/guestAuth/app/rest/builds/buildType:(id:Kotlin_dev_Compiler),number:1.2.60-dev-286,branch:default:any/artifacts/content/maven/'
}
mavenCentral()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
@@ -0,0 +1 @@
include ':app'
@@ -0,0 +1,16 @@
plugins {
id 'java'
}
group 'testgroup'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
}
@@ -0,0 +1,27 @@
buildscript {
ext.kotlin_version = '1.0.6'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
plugins {
id 'java'
}
apply plugin: 'kotlin'
group 'testgroup'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
}
@@ -0,0 +1 @@
include ':app'
@@ -0,0 +1,8 @@
buildscript {
repositories {
jcenter()
mavenCentral()
}
}
apply plugin: 'java'
@@ -0,0 +1 @@
include ':app'
@@ -0,0 +1,17 @@
buildscript {
repositories {
jcenter()
mavenCentral()
}
}
apply plugin: 'java'
repositories {
jcenter()
mavenCentral()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:1.1.3"
}
@@ -0,0 +1 @@
include ':app'
@@ -0,0 +1,17 @@
buildscript {
repositories {
jcenter()
mavenCentral()
}
}
apply plugin: 'java'
repositories {
jcenter()
mavenCentral()
}
dependencies {
testCompile "org.jetbrains.kotlin:kotlin-stdlib:1.1.3"
}
@@ -0,0 +1 @@
include ':app'
@@ -0,0 +1,17 @@
buildscript {
repositories {
jcenter()
mavenCentral()
}
}
apply plugin: 'java'
repositories {
jcenter()
mavenCentral()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:1.1.3"
}
@@ -0,0 +1,15 @@
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.1.0"
}
}
apply plugin: 'kotlin'
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-0.0" // intentionally invalid version
}
@@ -0,0 +1 @@
include ':app'