Skip to content

Commit

Permalink
don’t define spring-boot version
Browse files Browse the repository at this point in the history
  • Loading branch information
sdelamo authored and altro3 committed Oct 1, 2024
1 parent 438b377 commit 553aa2a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
7 changes: 4 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ commons-text = "1.12.0"
guava = "33.3.1-jre"
jmustache = "1.16"
commonmark = "0.23.0"
spring-boot = "3.3.3"

micronaut = "4.6.5"
micronaut-platform = "4.6.2"
Expand Down Expand Up @@ -91,8 +90,10 @@ commons-lang3 = { module = "org.apache.commons:commons-lang3", version.ref = "co
commons-text = { module = "org.apache.commons:commons-text", version.ref = "commons-text" }
guava = { module = "com.google.guava:guava", version.ref = "guava" }
commonmark = { module = "org.commonmark:commonmark", version.ref = "commonmark" }
spring-boot-dependencies = { module = "org.springframework.boot:spring-boot-dependencies", version.ref = "spring-boot" }

spring-boot-starter-web = { module = "org.springframework.boot:spring-boot-starter-web" }
spring-boot-starter-validation = { module = "org.springframework.boot:spring-boot-starter-validation" }
spring-boot-starter-data-rest = { module = "org.springframework.boot:spring-boot-starter-data-rest" }
spring-boot-starter-test = { module = "org.springframework.boot:spring-boot-starter-test" }
openapi-generator = { module = "org.openapitools:openapi-generator", version.ref = "openapi-generator" }
swagger-parser = { module = "io.swagger:swagger-parser", version.ref = "swagger-parser" }
swagger-parser-v3 = { module = "io.swagger.parser.v3:swagger-parser-v3", version.ref = "swagger-parser-v3" }
Expand Down
4 changes: 0 additions & 4 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ pluginManagement {

plugins {
id 'io.micronaut.build.shared.settings' version '7.2.1'
id "dev.aga.gradle.version-catalog-generator" version "1.5.0"
}
enableFeaturePreview 'TYPESAFE_PROJECT_ACCESSORS'

Expand Down Expand Up @@ -37,9 +36,6 @@ dependencyResolutionManagement {
repositories {
mavenCentral()
}
versionCatalogs {
generator.generate("spring") { from(toml("spring-boot-dependencies")) }
}
}

micronautBuild {
Expand Down
7 changes: 4 additions & 3 deletions src/main/docs/guide/spring/springWithGradle.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ dependencies {
// add to annotationProcessor and compileOnly blocks next libraries:
annotationProcessor("io.micronaut:micronaut-inject-java:$micronautCoreVersion")
annotationProcessor("io.micronaut.spring:micronaut-spring-annotation:$micronautSpringVersion")
annotationProcessor("io.micronaut.spring:micronaut-spring-web-annotation:$micronautSpringVersion")
annotationProcessor("io.micronaut.spring:micronaut-spring-boot-annotation:$micronautSpringVersion")
annotationProcessor(platfom("io.micronaut.spring:micronaut-spring-bom:$micronautSpringVersion"))
annotationProcessor("io.micronaut.spring:micronaut-spring-annotation")
annotationProcessor("io.micronaut.spring:micronaut-spring-web-annotation")
annotationProcessor("io.micronaut.spring:micronaut-spring-boot-annotation")
annotationProcessor("io.micronaut.openapi:micronaut-openapi:$micronautOpenapiVersion")
compileOnly("io.micronaut:micronaut-inject-java:$micronautCoreVersion")
Expand Down
10 changes: 6 additions & 4 deletions test-suite-java-spring/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,18 @@ dependencies {
compileOnly(mn.micronaut.inject.java)
compileOnly(mnSerde.micronaut.serde.api)

implementation(spring.spring.springBootStarterWeb)
implementation(spring.spring.springBootStarterValidation)
implementation(spring.spring.springBootStarterDataRest)
implementation(platform("org.springframework.boot:spring-boot-dependencies:${mnSpring.versions.spring.boot.get()}"))
implementation(libs.spring.boot.starter.web)
implementation(libs.spring.boot.starter.validation)
implementation(libs.spring.boot.starter.data.rest)

testCompileOnly(projects.micronautOpenapiAnnotations)
testCompileOnly(mn.jackson.annotations)
testCompileOnly(mn.micronaut.inject.java)
testCompileOnly(mnSerde.micronaut.serde.api)

testImplementation(spring.spring.springBootStarterTest)
testImplementation("org.springframework.boot:spring-boot-dependencies:${mnSpring.versions.spring.boot.get()}" )
testImplementation(libs.spring.boot.starter.test)
testImplementation(mnTest.junit.jupiter.api)
testImplementation(projects.micronautOpenapiCommon)

Expand Down

0 comments on commit 553aa2a

Please sign in to comment.