aboutsummaryrefslogtreecommitdiff
path: root/runners/gradle-integration-tests/build.gradle
blob: 1bfdbd5bb13cc2d9e2fc7882d30b92233319c84b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
apply plugin: 'kotlin'

sourceCompatibility = 1.8

tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
    kotlinOptions {
        freeCompilerArgs += "-Xjsr305=strict"
        languageVersion = language_version
        apiVersion = language_version
        jvmTarget = "1.8"
    }
}

configurations {
    dokkaPlugin
    dokkaFatJar
}

dependencies {

    testCompileOnly group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib', version: kotlin_for_gradle_runtime_version
    testCompile group: 'org.jetbrains.kotlin', name: 'kotlin-test-junit', version: kotlin_for_gradle_runtime_version
    testCompile ideaRT()

    dokkaPlugin project(path: ':runners:gradle-plugin', configuration: 'shadow')
    dokkaFatJar project(path: ":runners:fatjar", configuration: 'shadow')

    testCompile group: 'junit', name: 'junit', version: '4.12'
    testCompile gradleTestKit()
}



task createClasspathManifest {
    def outputDir = file("$buildDir/$name")

    inputs.files(configurations.dokkaPlugin + configurations.dokkaFatJar)
    outputs.dir outputDir

    doLast {
        outputDir.mkdirs()
        file("$outputDir/dokka-plugin-classpath.txt").text = configurations.dokkaPlugin.join("\n")
        file("$outputDir/fatjar.txt").text = configurations.dokkaFatJar.join("\n")
    }
}


createClasspathManifest.mustRunAfter project(":runners:fatjar").shadowJar
testClasses.dependsOn project(":runners:fatjar").shadowJar
testClasses.dependsOn createClasspathManifest

test {
    systemProperty "android.licenses.overwrite", project.findProperty("android.licenses.overwrite") ?: ""
    inputs.dir(file('testData'))
}