diff options
author | Kamil Doległo <kamilok1965@interia.pl> | 2019-06-11 16:46:24 +0200 |
---|---|---|
committer | Kamil Doległo <kamilok1965@interia.pl> | 2019-06-11 16:46:24 +0200 |
commit | f40da61c875e3d01edb13103bef16dfd51bcde51 (patch) | |
tree | 59f166338e6cdcddebc3b04b99617c2bff76853b | |
parent | c27d5369b3732aaa158e5e19a2efd4895bd1b650 (diff) | |
download | dokka-f40da61c875e3d01edb13103bef16dfd51bcde51.tar.gz dokka-f40da61c875e3d01edb13103bef16dfd51bcde51.tar.bz2 dokka-f40da61c875e3d01edb13103bef16dfd51bcde51.zip |
Fix Gradle typeSafeConfiguration test
-rw-r--r-- | runners/gradle-integration-tests/build.gradle | 2 | ||||
-rw-r--r-- | runners/gradle-integration-tests/testData/typeSafeConfiguration/build.gradle | 32 |
2 files changed, 13 insertions, 21 deletions
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<String>() @@ -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.<String> emptyList() + samples = Collections.<String> emptyList() jdkVersion = 6 - sourceDirs = Collections.<File> emptyList() - sourceRoots = new ArrayList<GradleSourceRootImpl>() + sourceRoots = new ArrayList<GradleSourceRootImpl>() as List<DokkaConfiguration.SourceRoot> includeNonPublic = false skipDeprecated = false skipEmptyPackages = true reportUndocumented = true - perPackageOptions = new ArrayList<GradlePackageOptionsImpl>() - impliedPlatforms = Collections.<String> emptyList() + perPackageOptions = new ArrayList<GradlePackageOptionsImpl>() as List<DokkaConfiguration.PackageOptions> externalDocumentationLinks = new ArrayList<DokkaConfiguration.ExternalDocumentationLink>() noStdlibLink = false languageVersion = null as String @@ -62,18 +60,14 @@ def configureDokkaTypeSafely(DokkaTask dokka) { sourceRoot.path = "some String" } }) - packageOptions(new Action<GradlePackageOptionsImpl>() { + externalDocumentationLink(new Action<GradleExternalDocumentationLinkImpl>() { @Override - void execute(GradlePackageOptionsImpl packageOptions) { - packageOptions.prefix = "some String" - } - }) - externalDocumentationLink(new Action<DokkaConfiguration.ExternalDocumentationLink.Builder>() { - @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() } }) + } } |