11plugins {
22 id ' rpki-ripe-ncc.build-conventions'
3- id ' org.springframework.boot' version " 3.2.12 "
3+ id ' org.springframework.boot' version " 3.5.9 "
44 id ' distribution'
55 id ' jacoco'
6- id " com.google.cloud.tools.jib" version " 3.4.5 "
6+ id " com.google.cloud.tools.jib" version " 3.5.2 "
77 id " com.google.osdetector" version " 1.7.3"
88}
99
@@ -12,19 +12,17 @@ apply plugin: 'io.spring.dependency-management'
1212
1313apply from : " dependencies.gradle"
1414
15- // Use this style to override dependencies when needed:
16- // ext['log4j2.version'] = '2.17.1'
17-
1815def ENV = System . getenv()
19- def hsmImpl = ENV [' HSM_IMPL' ] ?: ' api-only '
16+ def useThalesHsm = ENV [' HSM_IMPL' ] == " thales "
2017
2118description = ' RPKI RIPE NCC'
2219version = ENV [' BUILD_NUMBER' ] ?: ' DEV'
2320
21+ ext[' hibernate.version' ] = ' 6.2.49.Final'
22+
2423def managedVersions = dependencyManagement. managedVersions
2524
2625dependencies {
27- // developmentOnly 'org.springframework.boot:spring-boot-devtools'
2826 implementation ' org.springframework.boot:spring-boot-starter'
2927 implementation ' org.springframework.boot:spring-boot-starter-actuator'
3028 implementation ' org.springframework.boot:spring-boot-starter-data-jpa'
@@ -34,17 +32,16 @@ dependencies {
3432 implementation ' org.springframework.boot:spring-boot-starter-oauth2-client'
3533 implementation ' org.springframework.boot:spring-boot-starter-quartz'
3634 implementation ' org.springframework.boot:spring-boot-starter-security'
37- // for http client - we do not use reactive patterns in general
3835 implementation ' org.springframework.boot:spring-boot-starter-webflux'
3936 if (osdetector. os == " osx" ) {
4037 runtimeOnly " io.netty:netty-resolver-dns-native-macos:${ managedVersions['io.netty:netty-resolver-dns-native-macos']} :osx-${ osdetector.arch} "
4138 }
42- implementation ' org.flywaydb:flyway-core '
39+ implementation ' org.flywaydb:flyway-database-postgresql '
4340
4441 implementation " org.thymeleaf:thymeleaf:3.1.2.RELEASE"
4542 implementation " org.thymeleaf:thymeleaf-spring6:3.1.3.RELEASE"
4643
47- implementation platform(' io.sentry:sentry-bom:8.26 .0' )
44+ implementation platform(' io.sentry:sentry-bom:8.29 .0' )
4845 implementation ' io.sentry:sentry-spring-boot-starter'
4946 implementation ' io.sentry:sentry-logback'
5047
@@ -58,8 +55,8 @@ dependencies {
5855
5956 implementation ' com.google.code.gson:gson:2.13.2'
6057 implementation ' com.jamesmurty.utils:java-xmlbuilder:1.3'
61- implementation ' commons-codec:commons-codec:1.19 .0'
62- implementation ' commons-io:commons-io:2.20 .0'
58+ implementation ' commons-codec:commons-codec:1.20 .0'
59+ implementation ' commons-io:commons-io:2.21 .0'
6360 implementation ' ch.qos.logback.contrib:logback-json-classic:0.1.5'
6461 implementation ' ch.qos.logback.contrib:logback-jackson:0.1.5'
6562 implementation ' net.logstash.logback:logstash-logback-encoder:8.1'
@@ -72,20 +69,20 @@ dependencies {
7269 exclude group : ' org.hamcrest' , module : ' hamcrest-core'
7370 }
7471
75- testImplementation " org.wiremock:wiremock-jetty12:3.9 .2"
72+ testImplementation " org.wiremock:wiremock-jetty12:3.13 .2"
7673 testImplementation ' net.jqwik:jqwik:1.9.3'
7774 testImplementation(" net.ripe.rpki:rpki-commons:$rpki_commons_version :tests" ) {
7875 exclude group : " net.sf.saxon" , module : " Saxon-HE"
7976 }
8077 testImplementation ' org.assertj:assertj-core'
8178
82-
8379 implementation (project(' :hsm' )) {
84- capabilities {
85- requireCapability(' net.ripe.rpki.hsm:' + hsmImpl)
80+ if (useThalesHsm) {
81+ capabilities {
82+ requireCapability(' net.ripe.rpki.hsm:thales' )
83+ }
8684 }
8785 }
88-
8986}
9087
9188sourceSets {
@@ -103,6 +100,10 @@ configurations {
103100 integrationRuntimeOnly. extendsFrom testRuntimeOnly
104101}
105102
103+ dependencyLocking {
104+ lockAllConfigurations()
105+ }
106+
106107tasks. withType(Tar ) {
107108 compression = Compression . GZIP
108109}
@@ -121,7 +122,6 @@ task integrationTest(type: Test) {
121122 mustRunAfter test
122123}
123124
124- // run integration tests as part of `check`
125125tasks. named(' check' ) {
126126 dependsOn tasks. named(' integrationTest' )
127127}
0 commit comments