From 62c980707d23d2d451c75330f7ed1ba613777cf3 Mon Sep 17 00:00:00 2001 From: aSemy <897017+aSemy@users.noreply.github.com> Date: Tue, 7 Mar 2023 23:26:06 +0100 Subject: Use buildSrc convention plugins to configure the Dokka subprojects (#2704) --- plugins/gfm/build.gradle.kts | 13 +++++++++++++ plugins/gfm/gfm-template-processing/build.gradle.kts | 15 ++++++++++++++- 2 files changed, 27 insertions(+), 1 deletion(-) (limited to 'plugins/gfm') diff --git a/plugins/gfm/build.gradle.kts b/plugins/gfm/build.gradle.kts index ee486dfd..bb97cdd3 100644 --- a/plugins/gfm/build.gradle.kts +++ b/plugins/gfm/build.gradle.kts @@ -1,11 +1,24 @@ import org.jetbrains.registerDokkaArtifactPublication +plugins { + org.jetbrains.conventions.`kotlin-jvm` + org.jetbrains.conventions.`maven-publish` +} + dependencies { + compileOnly(project(":core")) + implementation(kotlin("stdlib-jdk8")) + implementation(kotlin("stdlib")) + implementation(kotlin("reflect")) implementation(project(":plugins:base")) testImplementation(project(":plugins:base")) testImplementation(project(":plugins:base:base-test-utils")) val jackson_version: String by project implementation("com.fasterxml.jackson.module:jackson-module-kotlin:$jackson_version") + testImplementation(project(":test-utils")) + testImplementation(project(":core:test-api")) + testImplementation("org.junit.jupiter:junit-jupiter:5.6.0") + val jackson_databind_version: String by project constraints { implementation("com.fasterxml.jackson.core:jackson-databind:$jackson_databind_version") { diff --git a/plugins/gfm/gfm-template-processing/build.gradle.kts b/plugins/gfm/gfm-template-processing/build.gradle.kts index b401c0c7..450b33a2 100644 --- a/plugins/gfm/gfm-template-processing/build.gradle.kts +++ b/plugins/gfm/gfm-template-processing/build.gradle.kts @@ -1,6 +1,15 @@ import org.jetbrains.registerDokkaArtifactPublication +plugins { + org.jetbrains.conventions.`kotlin-jvm` + org.jetbrains.conventions.`maven-publish` +} + dependencies { + compileOnly(project(":core")) + implementation(kotlin("stdlib-jdk8")) + implementation(kotlin("stdlib")) + implementation(kotlin("reflect")) implementation(project(":plugins:base")) implementation(project(":plugins:gfm")) implementation(project(":plugins:all-modules-page")) @@ -8,8 +17,12 @@ dependencies { val coroutines_version: String by project implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version") + + testImplementation(project(":test-utils")) + testImplementation(project(":core:test-api")) + testImplementation("org.junit.jupiter:junit-jupiter:5.6.0") } registerDokkaArtifactPublication("dokkaGfmTemplateProcessing") { artifactId = "gfm-template-processing-plugin" -} \ No newline at end of file +} -- cgit