diff --git a/build.gradle b/build.gradle index ef6e36c..b1191af 100644 --- a/build.gradle +++ b/build.gradle @@ -4,17 +4,10 @@ plugins { alias libs.plugins.indra.publishing.sonatype alias libs.plugins.spotless alias libs.plugins.indra.licenser.spotless + alias libs.plugins.indra.crossdoc id 'eclipse' } -group = "net.kyori" -version = "1.0.0-SNAPSHOT" -description = "A library to render Minecraft chat component styles to ANSI control codes" - -repositories { - mavenCentral() -} - dependencies { compileOnlyApi libs.jetbrainsAnnotations testImplementation platform(libs.junit.bom) @@ -101,4 +94,8 @@ indra { } } } -} \ No newline at end of file +} + +indraCrossdoc { + baseUrl().set(providers.gradleProperty("javadocPublishRoot")) +} diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 0000000..8230e1f --- /dev/null +++ b/gradle.properties @@ -0,0 +1,7 @@ +group=net.kyori +version=1.0.0-SNAPSHOT +description=A library to render Minecraft chat component styles to ANSI control codes + +javadocPublishRoot=https://jd.advntr.dev/ + +org.gradle.parallel=true \ No newline at end of file diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 2b4547b..c09fe1e 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -19,6 +19,7 @@ zCheckstyle = { module = "com.puppycrawl.tools:checkstyle", version.ref = "check [plugins] indra = { id = "net.kyori.indra", version.ref = "indra" } indra-checkstyle = { id = "net.kyori.indra.checkstyle", version.ref = "indra" } +indra-crossdoc = { id = "net.kyori.indra.crossdoc", version.ref = "indra" } indra-licenser-spotless = { id = "net.kyori.indra.licenser.spotless", version.ref = "indra" } indra-publishing-sonatype = { id = "net.kyori.indra.publishing.sonatype", version.ref = "indra" } spotless = "com.diffplug.spotless:6.17.0" \ No newline at end of file diff --git a/settings.gradle b/settings.gradle index b82769c..95c1dca 100644 --- a/settings.gradle +++ b/settings.gradle @@ -2,4 +2,11 @@ plugins { id "org.gradle.toolchains.foojay-resolver-convention" version "0.4.0" } +dependencyResolutionManagement { + repositoriesMode = RepositoriesMode.FAIL_ON_PROJECT_REPOS + repositories { + mavenCentral() + } +} + rootProject.name = "ansi" \ No newline at end of file