Skip to content

Commit

Permalink
chore(build): Set up crossdoc and reorg
Browse files Browse the repository at this point in the history
  • Loading branch information
zml2008 committed Apr 24, 2023
1 parent 43f53db commit db86d25
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 9 deletions.
15 changes: 6 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -101,4 +94,8 @@ indra {
}
}
}
}
}

indraCrossdoc {
baseUrl().set(providers.gradleProperty("javadocPublishRoot"))
}
7 changes: 7 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
7 changes: 7 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit db86d25

Please sign in to comment.