diff options
author | Kamil Doległo <kamilok1965@interia.pl> | 2020-01-31 14:04:42 +0100 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-01-31 15:27:26 +0100 |
commit | 79ec42607f3bc090ef40547a01aabcd1cd55886e (patch) | |
tree | 63f01b2ed1d92e3a3040bd95c27a10d3b53a5f06 /integration-tests/gradle-integration-tests/build.gradle.kts | |
parent | d6fab477e89b781c85cf123fa58078deaa15d480 (diff) | |
download | dokka-79ec42607f3bc090ef40547a01aabcd1cd55886e.tar.gz dokka-79ec42607f3bc090ef40547a01aabcd1cd55886e.tar.bz2 dokka-79ec42607f3bc090ef40547a01aabcd1cd55886e.zip |
Minor fixes, rewritten CrossPlatformExec.kt
Diffstat (limited to 'integration-tests/gradle-integration-tests/build.gradle.kts')
-rw-r--r-- | integration-tests/gradle-integration-tests/build.gradle.kts | 36 |
1 files changed, 13 insertions, 23 deletions
diff --git a/integration-tests/gradle-integration-tests/build.gradle.kts b/integration-tests/gradle-integration-tests/build.gradle.kts index d8b3cdc4..03dc2641 100644 --- a/integration-tests/gradle-integration-tests/build.gradle.kts +++ b/integration-tests/gradle-integration-tests/build.gradle.kts @@ -1,6 +1,6 @@ -val dokkaPlugin by configurations.creating -val dokkaCore by configurations.creating -val kotlinGradle by configurations.creating +val dokkaPlugin: Configuration by configurations.creating +val dokkaCore: Configuration by configurations.creating +val kotlinGradle: Configuration by configurations.creating repositories { maven(url = "https://kotlin.bintray.com/kotlin-plugin") @@ -8,26 +8,17 @@ repositories { dependencies { val kotlin_version: String by project - testCompileOnly(group = "org.jetbrains.kotlin", name = "kotlin-stdlib", version = kotlin_version) - testImplementation( - group = "org.jetbrains.kotlin", - name = "kotlin-test-junit", - version = kotlin_version - ) - testImplementation(project(":coreDependencies")) + testCompileOnly("org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version") + testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version") + testImplementation("junit:junit:4.13") + testImplementation(gradleTestKit()) + dokkaPlugin(project(path = ":runners:gradle-plugin")) dokkaCore(project(path = ":core", configuration = "shadow")) - kotlinGradle("org.jetbrains.kotlin:kotlin-gradle-plugin") - - testImplementation(group = "junit", name = "junit", version = "4.13") - testImplementation(gradleTestKit()) } - val createClasspathManifest by tasks.registering { - dependsOn(project(":core").getTasksByName("shadowJar", true)) - val outputDir = file("$buildDir/$name") inputs.files(dokkaPlugin + dokkaCore) outputs.dir(outputDir) @@ -40,15 +31,14 @@ val createClasspathManifest by tasks.registering { } } -val testClasses by tasks.getting - -testClasses.dependsOn(project(":core").getTasksByName("shadowJar", true)) -testClasses.dependsOn(createClasspathManifest) - tasks { + testClasses { + dependsOn(createClasspathManifest) + } + test { systemProperty("android.licenses.overwrite", project.findProperty("android.licenses.overwrite") ?: "") inputs.dir(file("testData")) - exclude("*") // TODO: Remove this exclude when tests are migrated +// exclude("*") // TODO: Remove this exclude when tests are migrated } } |