Skip to content

Commit

Permalink
Update build logic and setup javadoc linking
Browse files Browse the repository at this point in the history
  • Loading branch information
jpenilla committed Jan 29, 2024
1 parent a9cbe71 commit 48c24c8
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 1 deletion.
24 changes: 24 additions & 0 deletions cloud-spring/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import org.incendo.cloudbuildlogic.JavadocLinksExtension
import org.springframework.boot.gradle.tasks.bundling.BootJar

plugins {
Expand All @@ -23,3 +24,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 48c24c8

Please sign in to comment.