aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/build.gradle.kts
diff options
context:
space:
mode:
authorIgnat Beresnev <ignat.beresnev@jetbrains.com>2023-11-10 11:46:54 +0100
committerGitHub <noreply@github.com>2023-11-10 11:46:54 +0100
commit8e5c63d035ef44a269b8c43430f43f5c8eebfb63 (patch)
tree1b915207b2b9f61951ddbf0ff2e687efd053d555 /plugins/base/build.gradle.kts
parenta44efd4ba0c2e4ab921ff75e0f53fc9335aa79db (diff)
downloaddokka-8e5c63d035ef44a269b8c43430f43f5c8eebfb63.tar.gz
dokka-8e5c63d035ef44a269b8c43430f43f5c8eebfb63.tar.bz2
dokka-8e5c63d035ef44a269b8c43430f43f5c8eebfb63.zip
Restructure the project to utilize included builds (#3174)
* Refactor and simplify artifact publishing * Update Gradle to 8.4 * Refactor and simplify convention plugins and build scripts Fixes #3132 --------- Co-authored-by: Adam <897017+aSemy@users.noreply.github.com> Co-authored-by: Oleg Yukhnevich <whyoleg@gmail.com>
Diffstat (limited to 'plugins/base/build.gradle.kts')
-rw-r--r--plugins/base/build.gradle.kts82
1 files changed, 0 insertions, 82 deletions
diff --git a/plugins/base/build.gradle.kts b/plugins/base/build.gradle.kts
deleted file mode 100644
index cc89832e..00000000
--- a/plugins/base/build.gradle.kts
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
- * Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
- */
-
-import org.jetbrains.registerDokkaArtifactPublication
-
-plugins {
- id("org.jetbrains.conventions.kotlin-jvm")
- id("org.jetbrains.conventions.maven-publish")
- id("org.jetbrains.conventions.dokka-html-frontend-files")
- id("org.jetbrains.conventions.base-unit-test")
-}
-
-dependencies {
- compileOnly(projects.core)
- compileOnly(projects.subprojects.analysisKotlinApi)
-
- implementation(projects.subprojects.analysisMarkdownJb)
-
- // Other
- implementation(kotlin("reflect"))
- implementation(libs.kotlinx.coroutines.core)
- implementation(libs.jsoup)
- implementation(libs.freemarker)
- implementation(libs.kotlinx.html)
- implementation(libs.jackson.kotlin)
- constraints {
- implementation(libs.jackson.databind) {
- because("CVE-2022-42003")
- }
- }
-
- // Test only
- testImplementation(kotlin("test"))
- testImplementation(libs.junit.jupiterParams)
-
- symbolsTestConfiguration(project(path = ":subprojects:analysis-kotlin-symbols", configuration = "shadow"))
- descriptorsTestConfiguration(project(path = ":subprojects:analysis-kotlin-descriptors", configuration = "shadow"))
- testImplementation(projects.plugins.base.baseTestUtils) {
- exclude(module = "analysis-kotlin-descriptors")
- }
- testImplementation(projects.core.contentMatcherTestUtils)
- testImplementation(projects.core.testApi)
-
- dokkaHtmlFrontendFiles(projects.plugins.base.frontend) {
- because("fetch frontend files from subproject :plugins:base:frontend")
- }
-}
-
-// access the frontend files via the dependency on :plugins:base:frontend
-val dokkaHtmlFrontendFiles: Provider<FileCollection> =
- configurations.dokkaHtmlFrontendFiles.map { frontendFiles ->
- frontendFiles.incoming.artifacts.artifactFiles
- }
-
-val preparedokkaHtmlFrontendFiles by tasks.registering(Sync::class) {
- description = "copy Dokka Base frontend files into the resources directory"
-
- from(dokkaHtmlFrontendFiles) {
- include("*.js")
- into("dokka/scripts")
- }
-
- from(dokkaHtmlFrontendFiles) {
- include("*.css")
- into("dokka/styles")
- }
-
- into(layout.buildDirectory.dir("generated/src/main/resources"))
-}
-
-sourceSets.main {
- resources.srcDir(preparedokkaHtmlFrontendFiles.map { it.destinationDir })
-}
-
-tasks.test {
- maxHeapSize = "4G"
-}
-
-registerDokkaArtifactPublication("dokkaBase") {
- artifactId = "dokka-base"
-}