File tree Expand file tree Collapse file tree 4 files changed +25
-0
lines changed
src/main/kotlin/org/incendo/cloudbuildlogic Expand file tree Collapse file tree 4 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ plugins {
10
10
dependencies {
11
11
api(libs.indra.common)
12
12
api(libs.indra.publishing.sonatype)
13
+ api(libs.indra.crossdoc)
13
14
api(libs.errorprone.gradle)
14
15
api(libs.spotless)
15
16
implementation(libs.palantir.baseline)
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ spotless = "6.25.0"
8
8
9
9
[libraries ]
10
10
indra-common = { module = " net.kyori:indra-common" , version.ref = " indra" }
11
+ indra-crossdoc = { module = " net.kyori:indra-crossdoc" , version.ref = " indra" }
11
12
indra-publishing-sonatype = { module = " net.kyori:indra-publishing-sonatype" , version.ref = " indra" }
12
13
errorprone-gradle = { module = " net.ltgt.gradle:gradle-errorprone-plugin" , version.ref = " gradleErrorprone" }
13
14
spotless = { module = " com.diffplug.spotless:spotless-plugin-gradle" , version.ref = " spotless" }
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ class BasePlugin : Plugin<Project> {
15
15
target.plugins.apply (" net.kyori.indra.checkstyle" )
16
16
target.plugins.apply (BaselineImmutables ::class )
17
17
target.plugins.apply (IncludeImmutablesSources ::class )
18
+ target.plugins.apply (CrossdocConventions ::class )
18
19
19
20
target.extensions.configure(IndraExtension ::class ) {
20
21
javaVersions {
Original file line number Diff line number Diff line change
1
+ package org.incendo.cloudbuildlogic
2
+
3
+ import net.kyori.indra.crossdoc.CrossdocExtension
4
+ import net.kyori.indra.crossdoc.CrossdocPlugin
5
+ import org.gradle.api.Plugin
6
+ import org.gradle.api.Project
7
+ import org.gradle.kotlin.dsl.apply
8
+ import org.gradle.kotlin.dsl.getByType
9
+
10
+ class CrossdocConventions : Plugin <Project > {
11
+ override fun apply (target : Project ) {
12
+ target.plugins.withId(" java-library" ) {
13
+ target.plugins.apply (CrossdocPlugin ::class )
14
+
15
+ target.afterEvaluate {
16
+ target.extensions.getByType(CrossdocExtension ::class ).apply {
17
+ baseUrl(" https://javadoc.io/${target.group} /" )
18
+ }
19
+ }
20
+ }
21
+ }
22
+ }
You can’t perform that action at this time.
0 commit comments