Skip to content

Commit

Permalink
feature/java-conventions-plugin-3 (#3549)
Browse files Browse the repository at this point in the history
Ny plugin som definerer ofte brukte felles versjoner.
  • Loading branch information
rfc3092 authored Jul 31, 2024
1 parent 93bf346 commit 62e514f
Show file tree
Hide file tree
Showing 70 changed files with 253 additions and 266 deletions.
1 change: 1 addition & 0 deletions .github/workflows/app.skattekort-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: skattekort-service
on:
push:
paths:
- "plugins/**"
- "libs/reactive-core/**"
- "libs/reactive-security/**"
- "libs/security-core/**"
Expand Down
8 changes: 4 additions & 4 deletions apps/adresse-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'

implementation 'ma.glasnost.orika:orika-core:1.5.4'
implementation 'org.aspectj:aspectjweaver:1.9.7'
implementation "ma.glasnost.orika:orika-core:$versions.orika"
implementation "org.aspectj:aspectjweaver:$versions.jweaver"

implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.3.0'
implementation 'io.swagger.core.v3:swagger-annotations-jakarta:2.2.20'
implementation "org.springdoc:springdoc-openapi-starter-webmvc-ui:$versions.springdoc"
implementation "io.swagger.core.v3:swagger-annotations-jakarta:$versions.swagger"
}
4 changes: 2 additions & 2 deletions apps/amelding-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ dependencies {

implementation 'org.springframework.cloud:spring-cloud-starter-bootstrap' // TODO remove legacy bootstrap config

implementation 'org.springdoc:springdoc-openapi-starter-webflux-ui:2.3.0'
implementation 'io.swagger.core.v3:swagger-annotations-jakarta:2.2.20'
implementation "org.springdoc:springdoc-openapi-starter-webflux-ui:$versions.springdoc"
implementation "io.swagger.core.v3:swagger-annotations-jakarta:$versions.swagger"

testImplementation 'org.springframework.cloud:spring-cloud-contract-wiremock'
}
4 changes: 2 additions & 2 deletions apps/app-tilgang-analyse-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ dependencies {
implementation 'org.flywaydb:flyway-core'
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml'

implementation 'org.springdoc:springdoc-openapi-starter-webflux-ui:2.3.0'
implementation 'io.swagger.core.v3:swagger-annotations-jakarta:2.2.20'
implementation "org.springdoc:springdoc-openapi-starter-webflux-ui:$versions.springdoc"
implementation "io.swagger.core.v3:swagger-annotations-jakarta:$versions.swagger"

testImplementation 'org.springframework.cloud:spring-cloud-contract-wiremock'
}
14 changes: 7 additions & 7 deletions apps/arbeidsforhold-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ sonarqube {

dependencies {

implementation 'com.google.guava:guava:33.2.0-jre'
implementation 'jakarta.xml.bind:jakarta.xml.bind-api:4.0.2'
implementation 'javax.activation:activation:1.1.1'
implementation 'org.glassfish.jaxb:jaxb-runtime'
implementation "com.google.guava:guava:$versions.guava"
implementation "jakarta.xml.bind:jakarta.xml.bind-api:$versions.jakartaXmlBindApi"
implementation "javax.activation:activation:$versions.javaxActivation"
implementation "org.glassfish.jaxb:jaxb-runtime:$versions.jaxb"
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml'

implementation 'no.nav.testnav.libs:commands'
Expand All @@ -29,9 +29,9 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.cloud:spring-cloud-starter-bootstrap' // TODO remove legacy bootstrap config

implementation 'javax.annotation:javax.annotation-api:1.3.2'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.3.0'
implementation 'io.swagger.core.v3:swagger-annotations-jakarta:2.2.21'
implementation "javax.annotation:javax.annotation-api:$versions.javaxAnnotation"
implementation "org.springdoc:springdoc-openapi-starter-webmvc-ui:$versions.springdoc"
implementation "io.swagger.core.v3:swagger-annotations-jakarta:$versions.swagger"

testImplementation 'org.springframework.cloud:spring-cloud-contract-wiremock'
}
4 changes: 2 additions & 2 deletions apps/batch-bestilling-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
implementation 'org.springframework.boot:spring-boot-starter-security'

implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.3.0'
implementation 'io.swagger.core.v3:swagger-annotations-jakarta:2.2.21'
implementation "org.springdoc:springdoc-openapi-starter-webmvc-ui:$versions.springdoc"
implementation "io.swagger.core.v3:swagger-annotations-jakarta:$versions.swagger"

testImplementation 'org.springframework.cloud:spring-cloud-contract-wiremock'
}
6 changes: 3 additions & 3 deletions apps/brreg-stub/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ dependencies {
implementation 'com.h2database:h2'

implementation 'wsdl4j:wsdl4j'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.3.0'
implementation 'io.swagger.core.v3:swagger-annotations-jakarta:2.2.21'
implementation "org.springdoc:springdoc-openapi-starter-webmvc-ui:$versions.springdoc"
implementation "io.swagger.core.v3:swagger-annotations-jakarta:$versions.swagger"

implementation 'no.nav.common:auth'
implementation 'no.nav.common:util'
implementation 'no.nav.common:cxf:3.2023.10.17_06.55-4e30d96bba05'

implementation 'com.h2database:h2'
implementation "com.sun.xml.ws:jaxws-rt:4.0.2"
implementation "com.sun.xml.ws:jaxws-rt:$versions.jaxws"
testImplementation 'org.testcontainers:junit-jupiter'
testImplementation 'org.testcontainers:postgresql'
implementation 'jakarta.jws:jakarta.jws-api:3.0.0' //TODO upgrade to JUnit5
Expand Down
14 changes: 7 additions & 7 deletions apps/bruker-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ sonarqube {
}

dependencies {
implementation 'com.auth0:java-jwt:4.4.0'
implementation "com.auth0:java-jwt:$versions.jwt"

implementation 'no.nav.testnav.libs:security-core'
implementation 'no.nav.testnav.libs:reactive-core'
Expand All @@ -35,8 +35,8 @@ dependencies {

implementation 'org.springframework.cloud:spring-cloud-starter-bootstrap' // TODO remove legacy bootstrap config

implementation 'org.springdoc:springdoc-openapi-starter-webflux-ui:2.5.0'
implementation 'io.swagger.core.v3:swagger-annotations-jakarta:2.2.21'
implementation "org.springdoc:springdoc-openapi-starter-webflux-ui:$versions.springdoc"
implementation "io.swagger.core.v3:swagger-annotations-jakarta:$versions.swagger"

implementation 'io.r2dbc:r2dbc-h2'
implementation 'org.postgresql:r2dbc-postgresql'
Expand All @@ -45,10 +45,10 @@ dependencies {
runtimeOnly 'org.postgresql:postgresql'
runtimeOnly 'com.h2database:h2'

testImplementation 'io.projectreactor:reactor-test'
testImplementation "io.projectreactor:reactor-test:$versions.reactorTest"
testImplementation 'org.springframework.cloud:spring-cloud-contract-wiremock'
testImplementation 'org.assertj:assertj-core:3.26.0'
testImplementation "org.assertj:assertj-core:$versions.assertj"
testImplementation 'no.nav.testnav.libs:integration-test'
testImplementation 'com.squareup.okhttp3:okhttp:4.10.0'
testImplementation 'com.squareup.okhttp3:mockwebserver:4.10.0'
testImplementation "com.squareup.okhttp3:okhttp:$versions.okhttp"
testImplementation "com.squareup.okhttp3:mockwebserver:$versions.okhttp"
}
2 changes: 1 addition & 1 deletion apps/budpro-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dependencies {
implementation "no.nav.testnav.libs:servlet-core"
implementation "no.nav.testnav.libs:servlet-insecure-security"
implementation "no.nav.testnav.libs:servlet-security"
implementation "org.springdoc:springdoc-openapi-starter-webmvc-ui:2.5.0"
implementation "org.springdoc:springdoc-openapi-starter-webmvc-ui:$versions.springdoc"
implementation "org.springframework.boot:spring-boot-starter-oauth2-client"
implementation "org.springframework.boot:spring-boot-starter-oauth2-resource-server"
implementation "org.springframework.boot:spring-boot-starter-security"
Expand Down
20 changes: 10 additions & 10 deletions apps/dolly-backend/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,40 +22,40 @@ dependencies {

implementation 'org.springframework.cloud:spring-cloud-vault-config-databases'

implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.3.0'
implementation 'io.swagger.core.v3:swagger-annotations-jakarta:2.2.21'
implementation "org.springdoc:springdoc-openapi-starter-webmvc-ui:$versions.springdoc"
implementation "io.swagger.core.v3:swagger-annotations-jakarta:$versions.swagger"

implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
implementation 'org.springframework.boot:spring-boot-starter-oauth2-resource-server'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.retry:spring-retry:2.0.6'
implementation 'org.springframework.retry:spring-retry'

implementation 'org.springframework.boot:spring-boot-starter-data-elasticsearch'
implementation 'org.opensearch.client:spring-data-opensearch:1.4.0'
implementation "org.opensearch.client:spring-data-opensearch:$versions.opensearch"

implementation 'org.apache.commons:commons-lang3:3.14.0'
implementation 'org.apache.commons:commons-lang3'
implementation 'org.springframework.boot:spring-boot-starter-cache'
implementation 'com.github.ben-manes.caffeine:caffeine'

implementation 'org.ehcache:ehcache:3.10.8'
implementation 'com.fasterxml.jackson.core:jackson-core:2.17.1'
implementation "com.fasterxml.jackson.core:jackson-core:$versions.jackson"

implementation 'org.postgresql:postgresql'
implementation 'org.flywaydb:flyway-core'
implementation 'ma.glasnost.orika:orika-core:1.5.4'
implementation "ma.glasnost.orika:orika-core:$versions.orika"
implementation 'org.codehaus.jettison:jettison:1.5.4'
implementation 'org.apache.poi:poi:5.2.5'
implementation 'org.apache.poi:poi-ooxml:5.2.5'
implementation "org.apache.poi:poi:$versions.apachePoi"
implementation "org.apache.poi:poi-ooxml:$versions.apachePoi"

testImplementation 'org.opensearch:opensearch-testcontainers:2.0.1'

testImplementation 'org.springframework.security:spring-security-test'
testImplementation 'org.springframework.cloud:spring-cloud-contract-wiremock'
testImplementation 'com.h2database:h2'
testImplementation 'io.projectreactor:reactor-test:3.6.5'
testImplementation "io.projectreactor:reactor-test:$versions.reactorTest"
testImplementation 'org.testcontainers:junit-jupiter'
testImplementation 'org.testcontainers:postgresql'
testImplementation 'org.bitbucket.b_c:jose4j:0.9.6'
Expand Down
4 changes: 2 additions & 2 deletions apps/endringsmelding-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ dependencies {

implementation 'org.springframework.cloud:spring-cloud-starter-bootstrap' // TODO remove legacy bootstrap config

implementation 'org.springdoc:springdoc-openapi-starter-webflux-ui:2.5.0'
implementation 'io.swagger.core.v3:swagger-annotations-jakarta:2.2.21'
implementation "org.springdoc:springdoc-openapi-starter-webflux-ui:$versions.springdoc"
implementation "io.swagger.core.v3:swagger-annotations-jakarta:$versions.swagger"

testImplementation 'org.springframework.cloud:spring-cloud-contract-wiremock'
}
4 changes: 2 additions & 2 deletions apps/ereg-batch-status-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ dependencies {

implementation 'org.springframework.cloud:spring-cloud-starter-gateway'

implementation 'org.springdoc:springdoc-openapi-starter-webflux-ui:2.5.0'
implementation 'io.swagger.core.v3:swagger-annotations-jakarta:2.2.21'
implementation "org.springdoc:springdoc-openapi-starter-webflux-ui:$versions.springdoc"
implementation "io.swagger.core.v3:swagger-annotations-jakarta:$versions.swagger"

testImplementation 'org.springframework.cloud:spring-cloud-contract-wiremock'
}
4 changes: 2 additions & 2 deletions apps/generer-arbeidsforhold-populasjon-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-oauth2-resource-server'
implementation 'org.springframework.boot:spring-boot-starter-web'

implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.3.0'
implementation 'io.swagger.core.v3:swagger-annotations-jakarta:2.2.21'
implementation "org.springdoc:springdoc-openapi-starter-webmvc-ui:$versions.springdoc"
implementation "io.swagger.core.v3:swagger-annotations-jakarta:$versions.swagger"

testImplementation 'org.springframework.cloud:spring-cloud-contract-wiremock'
}
4 changes: 2 additions & 2 deletions apps/generer-navn-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
implementation 'org.springframework.boot:spring-boot-starter-security'

implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.3.0'
implementation 'io.swagger.core.v3:swagger-annotations-jakarta:2.2.21'
implementation "org.springdoc:springdoc-openapi-starter-webmvc-ui:$versions.springdoc"
implementation "io.swagger.core.v3:swagger-annotations-jakarta:$versions.swagger"

testImplementation 'org.springframework.cloud:spring-cloud-contract-wiremock'
}
10 changes: 5 additions & 5 deletions apps/generer-organisasjon-populasjon-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ dependencies {

implementation 'org.springframework.kafka:spring-kafka'

implementation 'io.confluent:kafka-avro-serializer:7.6.1'
implementation 'jakarta.validation:jakarta.validation-api:3.1.0'
implementation "io.confluent:kafka-avro-serializer:$versions.avro"
implementation "jakarta.validation:jakarta.validation-api:$versions.jakartaValidation"
implementation 'org.flywaydb:flyway-core'
implementation 'com.h2database:h2'
implementation 'com.zaxxer:HikariCP'

implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.3.0'
implementation 'io.swagger.core.v3:swagger-annotations-jakarta:2.2.21'
implementation 'org.projectreactor:reactor-spring:1.0.1.RELEASE'
implementation "org.springdoc:springdoc-openapi-starter-webmvc-ui:$versions.springdoc"
implementation "io.swagger.core.v3:swagger-annotations-jakarta:$versions.swagger"
implementation "org.projectreactor:reactor-spring:$versions.reactorSpring"
implementation 'org.postgresql:postgresql'

testImplementation 'org.springframework.cloud:spring-cloud-contract-wiremock'
Expand Down
4 changes: 2 additions & 2 deletions apps/generer-synt-amelding-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ dependencies {

implementation 'org.springframework.cloud:spring-cloud-starter-bootstrap' // TODO remove legacy bootstrap config

implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.3.0'
implementation 'io.swagger.core.v3:swagger-annotations-jakarta:2.2.21'
implementation "org.springdoc:springdoc-openapi-starter-webmvc-ui:$versions.springdoc"
implementation "io.swagger.core.v3:swagger-annotations-jakarta:$versions.swagger"

testImplementation 'org.springframework.cloud:spring-cloud-contract-wiremock'
}
4 changes: 2 additions & 2 deletions apps/helsepersonell-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'

implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.3.0'
implementation 'io.swagger.core.v3:swagger-annotations-jakarta:2.2.21'
implementation "org.springdoc:springdoc-openapi-starter-webmvc-ui:$versions.springdoc"
implementation "io.swagger.core.v3:swagger-annotations-jakarta:$versions.swagger"
}
16 changes: 8 additions & 8 deletions apps/inntektsmelding-generator-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
implementation 'org.springframework.boot:spring-boot-starter-security'

implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.3.0'
implementation 'io.swagger.core.v3:swagger-annotations-jakarta:2.2.21'
implementation "org.springdoc:springdoc-openapi-starter-webmvc-ui:$versions.springdoc"
implementation "io.swagger.core.v3:swagger-annotations-jakarta:$versions.swagger"

implementation 'org.aspectj:aspectjweaver:1.9.22'
implementation "org.aspectj:aspectjweaver:$versions.jweaver"

implementation 'jakarta.xml.bind:jakarta.xml.bind-api:4.0.2'
implementation 'org.glassfish.jaxb:jaxb-runtime:4.0.5'
implementation 'com.sun.xml.bind:jaxb-impl:4.0.5'
implementation 'com.sun.xml.bind:jaxb-core:4.0.5'
implementation "jakarta.xml.bind:jakarta.xml.bind-api:$versions.jakartaXmlBindApi"
implementation "org.glassfish.jaxb:jaxb-runtime:$versions.jaxb"
implementation "com.sun.xml.bind:jaxb-impl:$versions.jaxb"
implementation "com.sun.xml.bind:jaxb-core:$versions.jaxb"

implementation 'ma.glasnost.orika:orika-core:1.5.4'
implementation "ma.glasnost.orika:orika-core:$versions.orika"

implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.17.0'
Expand Down
6 changes: 3 additions & 3 deletions apps/inntektsmelding-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-security'

implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.3.0'
implementation 'io.swagger.core.v3:swagger-annotations-jakarta:2.2.21'
implementation "org.springdoc:springdoc-openapi-starter-webmvc-ui:$versions.springdoc"
implementation "io.swagger.core.v3:swagger-annotations-jakarta:$versions.swagger"

implementation 'no.nav.tjenestespesifikasjoner:nav-altinn-inntektsmelding:1.2019.08.16-13.46-35cbdfd492d4'
implementation "no.nav.tjenestespesifikasjoner:nav-altinn-inntektsmelding:$versions.navAltinnInntektsmelding"

implementation 'org.apache.commons:commons-io:1.3.2'

Expand Down
4 changes: 2 additions & 2 deletions apps/jenkins-batch-status-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ dependencies {

implementation 'org.springframework.cloud:spring-cloud-starter-bootstrap' // TODO remove legacy bootstrap config

implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.3.0'
implementation 'io.swagger.core.v3:swagger-annotations-jakarta:2.2.21'
implementation "org.springdoc:springdoc-openapi-starter-webmvc-ui:$versions.springdoc"
implementation "io.swagger.core.v3:swagger-annotations-jakarta:$versions.swagger"

testImplementation 'org.springframework.cloud:spring-cloud-contract-wiremock'
}
4 changes: 2 additions & 2 deletions apps/joark-dokument-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.cloud:spring-cloud-starter-bootstrap' // TODO remove legacy bootstrap config

implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.3.0'
implementation 'io.swagger.core.v3:swagger-annotations-jakarta:2.2.21'
implementation "org.springdoc:springdoc-openapi-starter-webmvc-ui:$versions.springdoc"
implementation "io.swagger.core.v3:swagger-annotations-jakarta:$versions.swagger"

testImplementation 'org.springframework.cloud:spring-cloud-contract-wiremock'
}
4 changes: 2 additions & 2 deletions apps/kodeverk-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ dependencies {

implementation 'org.springframework.boot:spring-boot-starter-cache'

implementation 'org.springdoc:springdoc-openapi-starter-webflux-ui:2.5.0'
implementation 'io.swagger.core.v3:swagger-annotations-jakarta:2.2.21'
implementation "org.springdoc:springdoc-openapi-starter-webflux-ui:$versions.springdoc"
implementation "io.swagger.core.v3:swagger-annotations-jakarta:$versions.swagger"

implementation 'com.github.ben-manes.caffeine:caffeine'
}
Expand Down
4 changes: 2 additions & 2 deletions apps/miljoer-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
implementation 'org.springframework.boot:spring-boot-starter-security'

implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.3.0'
implementation 'io.swagger.core.v3:swagger-annotations-jakarta:2.2.21'
implementation "org.springdoc:springdoc-openapi-starter-webmvc-ui:$versions.springdoc"
implementation "io.swagger.core.v3:swagger-annotations-jakarta:$versions.swagger"

testImplementation 'org.springframework.cloud:spring-cloud-contract-wiremock'
}
Loading

0 comments on commit 62e514f

Please sign in to comment.