registry library vaguely similar to Minecraft
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

docs: setup indra-crossdoc

kokirigla.de cfdef3d2 3d5ead2d

verified
+20
+1
build-logic/build.gradle.kts
··· 10 10 implementation(libs.shadow) 11 11 implementation(libs.indra.common) 12 12 implementation(libs.indra.licenseHeader) 13 + implementation(libs.indra.crossdoc) 13 14 14 15 // https://github.com/gradle/gradle/issues/15383#issuecomment-779893192 15 16 implementation(files(libs.javaClass.superclass.protectionDomain.codeSource.location))
+17
build-logic/src/main/kotlin/publishing-conventions.gradle.kts
··· 1 1 plugins { 2 2 id("base-conventions") 3 + id("net.kyori.indra.crossdoc") 3 4 id("net.kyori.indra.publishing") 4 5 } 5 6 ··· 8 9 publishReleasesTo("nayrid", "https://repo.nayrid.com/releases") 9 10 } 10 11 12 + fun snapshotOrRelease(version: String): String { 13 + return if (version.endsWith("-SNAPSHOT")) { 14 + "snapshots" 15 + } else { 16 + "releases" 17 + } 18 + } 19 + 20 + indraCrossdoc { 21 + baseUrl().set(providers.gradleProperty("javadocPublishRoot").get().replace("%REPO%", snapshotOrRelease(rootProject.version as String))) 22 + nameBasedDocumentationUrlProvider { 23 + version = (project.version as String) + "/raw" 24 + } 25 + } 26 + 11 27 tasks { 12 28 javadoc { 13 29 dependsOn(check) ··· 18 34 "https://docs.oracle.com/en/java/javase/25/docs/api/", 19 35 "https://jspecify.dev/docs/api/", 20 36 "https://kvverti.github.io/Documented-DataFixerUpper/snapshot", 37 + "https://repo.nayrid.com/javadoc/${snapshotOrRelease(libs.versions.describe.get())}/com/nayrid/describe-api/${libs.versions.describe.get()}/raw" 21 38 ) 22 39 } 23 40 }
+1
gradle.properties
··· 1 + javadocPublishRoot=https://repo.nayrid.com/javadoc/%REPO%/com/nayrid/
+1
gradle/libs.versions.toml
··· 15 15 # build logic 16 16 indra-common = { group = "net.kyori", name = "indra-common", version.ref = "indra" } 17 17 indra-licenseHeader = { group = "net.kyori", name = "indra-licenser-spotless", version.ref = "indra" } 18 + indra-crossdoc = { group = "net.kyori", name = "indra-crossdoc", version.ref = "indra" } 18 19 shadow = { group = "com.gradleup.shadow", name = "shadow-gradle-plugin", version.ref = "shadow" } 19 20 20 21 # development tools (code quality, annotations)