diff options
author | Marcin Aman <marcin.aman@gmail.com> | 2021-06-21 11:44:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-21 11:44:55 +0200 |
commit | 2832b9a111ba3af0212cbc180e8b1535b8359a15 (patch) | |
tree | f463b0e12e520659691d782697d3ba13b8c0bf45 /integration-tests/gradle/projects/it-multimodule-versioning-0/build.gradle | |
parent | a0b77276242ec227f98bf69ed878b9d71c1c5888 (diff) | |
download | dokka-2832b9a111ba3af0212cbc180e8b1535b8359a15.tar.gz dokka-2832b9a111ba3af0212cbc180e8b1535b8359a15.tar.bz2 dokka-2832b9a111ba3af0212cbc180e8b1535b8359a15.zip |
Don't use older dir from previous runs in versioning (#1963)
Diffstat (limited to 'integration-tests/gradle/projects/it-multimodule-versioning-0/build.gradle')
-rw-r--r-- | integration-tests/gradle/projects/it-multimodule-versioning-0/build.gradle | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/integration-tests/gradle/projects/it-multimodule-versioning-0/build.gradle b/integration-tests/gradle/projects/it-multimodule-versioning-0/build.gradle new file mode 100644 index 00000000..bceacbca --- /dev/null +++ b/integration-tests/gradle/projects/it-multimodule-versioning-0/build.gradle @@ -0,0 +1,40 @@ +import org.jetbrains.dokka.gradle.DokkaMultiModuleTask + +plugins { + id 'org.jetbrains.kotlin.jvm' + id("org.jetbrains.dokka") +} + +apply from: '../template.root.gradle.kts' + +dependencies { + implementation "org.jetbrains.kotlin:kotlin-stdlib" +} + + +subprojects { + apply plugin: 'org.jetbrains.kotlin.jvm' + apply plugin: 'org.jetbrains.dokka' +} + +dokkaHtmlMultiModule { + pluginsMapConfiguration.set(["org.jetbrains.dokka.versioning.VersioningPlugin": """{ "version": "1.2", "olderVersionsDir": "$projectDir/dokkas" }"""]) +} + +tasks.register('dokkaHtmlMultiModuleBaseVersion', DokkaMultiModuleTask){ + dependencies { + dokkaPlugin("org.jetbrains.dokka:all-modules-page-plugin:${System.getenv("DOKKA_VERSION")}") + } + outputDirectory.set(file(projectDir.toPath().resolve("dokkas").resolve("1.0"))) + pluginsMapConfiguration.set(["org.jetbrains.dokka.versioning.VersioningPlugin": """{ "version": "1.0" }"""]) + addChildTasks([project(":first"), project(":second")], "dokkaHtmlPartial") +} + +tasks.register('dokkaHtmlMultiModuleNextVersion', DokkaMultiModuleTask){ + dependencies { + dokkaPlugin("org.jetbrains.dokka:all-modules-page-plugin:${System.getenv("DOKKA_VERSION")}") + } + outputDirectory.set(file(projectDir.toPath().resolve("dokkas").resolve("1.1"))) + pluginsMapConfiguration.set(["org.jetbrains.dokka.versioning.VersioningPlugin": """{ "version": "1.1", "olderVersionsDir": "$projectDir/dokkas" }"""]) + addChildTasks([project(":first"), project(":second")], "dokkaHtmlPartial") +}
\ No newline at end of file |