Skip to content

Commit

Permalink
build: update build logic and setup javadoc linking (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpenilla authored Jun 8, 2024
1 parent 2a9583a commit 7995784
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 1 deletion.
23 changes: 23 additions & 0 deletions cloud-spring/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,26 @@ dependencies {
testImplementation(libs.spring.shell.test)
testImplementation(libs.spring.shell.test.autoconfiguration)
}

configurations.javadocLinksJavadoc {
// Messed up metadata(?), Gradle won't resolve the Javadocs
exclude("io.projectreactor")
exclude("org.springframework")
exclude("org.springframework.boot")
exclude("org.springframework.shell")
}

javadocLinks {
// No Javadocs on central
excludes.addAll(
"org.hibernate.validator",
"org.springframework.boot:spring-boot-starter",
"org.springframework.boot:spring-boot-starter-logging",
"org.springframework.shell:spring-shell-table",
"org.springframework.shell:spring-shell-starter",
"org.springframework.shell:spring-shell-standard-commands",
"org.apache.tomcat.embed",
"org.jline:jline-native",
"org.apache.logging.log4j:log4j-to-slf4j",
)
}
6 changes: 6 additions & 0 deletions gradle/build-logic/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ plugins {

repositories {
gradlePluginPortal()
maven("https://oss.sonatype.org/content/repositories/snapshots/") {
name = "sonatypeOssSnapshots"
mavenContent {
snapshotsOnly()
}
}
}

dependencies {
Expand Down
6 changes: 6 additions & 0 deletions gradle/build-logic/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ rootProject.name = "build-logic"
pluginManagement {
repositories {
gradlePluginPortal()
maven("https://oss.sonatype.org/content/repositories/snapshots/") {
name = "sonatypeOssSnapshots"
mavenContent {
snapshotsOnly()
}
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ cloud-buildLogic-rootProject-publishing = { id = "org.incendo.cloud-build-logic.
cloud-buildLogic-rootProject-spotless = { id = "org.incendo.cloud-build-logic.spotless.root-project", version.ref = "cloud-build-logic" }

[versions]
cloud-build-logic = "0.0.3"
cloud-build-logic = "0.0.8-SNAPSHOT"
springBoot = "3.2.2"
ktlint = "1.0.1"
checkstyle = "10.12.5"
Expand Down
6 changes: 6 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
pluginManagement {
repositories {
gradlePluginPortal()
maven("https://oss.sonatype.org/content/repositories/snapshots/") {
name = "sonatypeOssSnapshots"
mavenContent {
snapshotsOnly()
}
}
}
includeBuild("gradle/build-logic")
}
Expand Down

0 comments on commit 7995784

Please sign in to comment.