From f40da61c875e3d01edb13103bef16dfd51bcde51 Mon Sep 17 00:00:00 2001 From: Kamil Doległo Date: Tue, 11 Jun 2019 16:46:24 +0200 Subject: Fix Gradle typeSafeConfiguration test --- runners/gradle-integration-tests/build.gradle | 2 -- .../testData/typeSafeConfiguration/build.gradle | 32 +++++++++------------- 2 files changed, 13 insertions(+), 21 deletions(-) (limited to 'runners/gradle-integration-tests') diff --git a/runners/gradle-integration-tests/build.gradle b/runners/gradle-integration-tests/build.gradle index 2f08bdb8..9d0a20d7 100644 --- a/runners/gradle-integration-tests/build.gradle +++ b/runners/gradle-integration-tests/build.gradle @@ -1,5 +1,3 @@ - - apply plugin: 'kotlin' sourceCompatibility = 1.8 diff --git a/runners/gradle-integration-tests/testData/typeSafeConfiguration/build.gradle b/runners/gradle-integration-tests/testData/typeSafeConfiguration/build.gradle index 33e8c9c4..5ce7c3fd 100644 --- a/runners/gradle-integration-tests/testData/typeSafeConfiguration/build.gradle +++ b/runners/gradle-integration-tests/testData/typeSafeConfiguration/build.gradle @@ -8,6 +8,7 @@ import java.util.concurrent.Callable buildscript { repositories { jcenter() + mavenLocal() } dependencies { classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$test_kotlin_version" @@ -26,7 +27,7 @@ def configureDokkaTypeSafely(DokkaTask dokka) { moduleName = "some String" outputFormat = "some String" outputDirectory = "some String" - dokkaFatJar = file("some File") + dokkaFatJar = "some String" cacheRoot = null as String impliedPlatforms = new ArrayList() @@ -37,21 +38,18 @@ def configureDokkaTypeSafely(DokkaTask dokka) { } }) } - dokka.extensions.findByName("configuration").with { - - classpath = Collections.singleton(file("someClassDir")) - includes = Collections.emptyList() - samples = Collections.emptyList() + dokka.configuration.with { + classpath = Arrays.asList("someClassDir") + includes = Collections. emptyList() + samples = Collections. emptyList() jdkVersion = 6 - sourceDirs = Collections. emptyList() - sourceRoots = new ArrayList() + sourceRoots = new ArrayList() as List includeNonPublic = false skipDeprecated = false skipEmptyPackages = true reportUndocumented = true - perPackageOptions = new ArrayList() - impliedPlatforms = Collections. emptyList() + perPackageOptions = new ArrayList() as List externalDocumentationLinks = new ArrayList() noStdlibLink = false languageVersion = null as String @@ -62,18 +60,14 @@ def configureDokkaTypeSafely(DokkaTask dokka) { sourceRoot.path = "some String" } }) - packageOptions(new Action() { + externalDocumentationLink(new Action() { @Override - void execute(GradlePackageOptionsImpl packageOptions) { - packageOptions.prefix = "some String" - } - }) - externalDocumentationLink(new Action() { - @Override - void execute(DokkaConfiguration.ExternalDocumentationLink.Builder builder) { - builder.url = uri("some URI").toURL() + void execute(GradleExternalDocumentationLinkImpl link) { + link.url = uri("some URI").toURL() + link.packageListUrl = uri("some URI").toURL() } }) + } } -- cgit