aboutsummaryrefslogtreecommitdiff
path: root/runners/gradle-integration-tests
diff options
context:
space:
mode:
Diffstat (limited to 'runners/gradle-integration-tests')
-rw-r--r--runners/gradle-integration-tests/build.gradle2
-rw-r--r--runners/gradle-integration-tests/testData/typeSafeConfiguration/build.gradle32
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()
}
})
+
}
}