Skip to content

Commit

Permalink
Ny plugin med proxy boilerplate.
Browse files Browse the repository at this point in the history
  • Loading branch information
rfc3092 committed Jun 18, 2024
1 parent 1ad13b4 commit 0bf69c9
Show file tree
Hide file tree
Showing 24 changed files with 32 additions and 201 deletions.
9 changes: 9 additions & 0 deletions plugins/java/src/main/groovy/dolly-proxies.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
dependencies {
implementation "no.nav.testnav.libs:reactive-core"
implementation "no.nav.testnav.libs:reactive-proxy"

implementation "org.springframework.boot:spring-boot-starter-oauth2-resource-server"
implementation "org.springframework.cloud:spring-cloud-starter-gateway"

testImplementation "org.springframework.cloud:spring-cloud-contract-wiremock"
}
9 changes: 1 addition & 8 deletions proxies/aareg-proxy/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id "dolly-apps"
id "dolly-proxies"
}

sonarqube {
Expand All @@ -10,14 +11,6 @@ sonarqube {
}

dependencies {
implementation 'org.springframework.boot:spring-boot-starter-oauth2-resource-server'

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

implementation 'no.nav.testnav.libs:reactive-core'
implementation 'no.nav.testnav.libs:reactive-proxy'
implementation 'no.nav.testnav.libs:reactive-security'
implementation 'no.nav.testnav.libs:security-core'

testImplementation 'org.springframework.cloud:spring-cloud-contract-wiremock'
}
12 changes: 1 addition & 11 deletions proxies/aareg-synt-services-proxy/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id "dolly-apps"
id "dolly-proxies"
}

sonarqube {
Expand All @@ -8,14 +9,3 @@ sonarqube {
property "sonar.projectName", "aareg-synt-services-proxy"
}
}

dependencies {

implementation 'no.nav.testnav.libs:reactive-core'
implementation 'no.nav.testnav.libs:reactive-proxy'

implementation 'org.springframework.boot:spring-boot-starter-oauth2-resource-server'
implementation 'org.springframework.cloud:spring-cloud-starter-gateway'

testImplementation 'org.springframework.cloud:spring-cloud-contract-wiremock'
}
10 changes: 1 addition & 9 deletions proxies/arbeidsplassencv-proxy/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id "dolly-apps"
id "dolly-proxies"
}

sonarqube {
Expand All @@ -10,15 +11,6 @@ sonarqube {
}

dependencies {

implementation 'no.nav.testnav.libs:reactive-core'
implementation 'no.nav.testnav.libs:reactive-proxy'
implementation 'no.nav.testnav.libs:reactive-security'
implementation 'no.nav.testnav.libs:security-core'

implementation 'org.springframework.boot:spring-boot-starter-oauth2-resource-server'

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

testImplementation 'org.springframework.cloud:spring-cloud-contract-wiremock'
}
10 changes: 1 addition & 9 deletions proxies/arena-forvalteren-proxy/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id "dolly-apps"
id "dolly-proxies"
}

sonarqube {
Expand All @@ -10,15 +11,6 @@ sonarqube {
}

dependencies {

implementation 'no.nav.testnav.libs:reactive-core'
implementation 'no.nav.testnav.libs:reactive-proxy'
implementation 'no.nav.testnav.libs:security-core'
implementation 'no.nav.testnav.libs:data-transfer-objects'

implementation 'org.springframework.boot:spring-boot-starter-oauth2-resource-server'

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

testImplementation 'org.springframework.cloud:spring-cloud-contract-wiremock'
}
13 changes: 1 addition & 12 deletions proxies/batch-adeo-proxy/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id "dolly-apps"
id "dolly-proxies"
}

sonarqube {
Expand All @@ -8,15 +9,3 @@ sonarqube {
property "sonar.projectName", "testnorge-batch-adeo-proxy"
}
}

dependencies {

implementation 'no.nav.testnav.libs:reactive-core'
implementation 'no.nav.testnav.libs:reactive-proxy'

implementation 'org.springframework.boot:spring-boot-starter-oauth2-resource-server'

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

testImplementation 'org.springframework.cloud:spring-cloud-contract-wiremock'
}
10 changes: 1 addition & 9 deletions proxies/brregstub-proxy/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id "dolly-apps"
id "dolly-proxies"
}

sonarqube {
Expand All @@ -10,14 +11,5 @@ sonarqube {
}

dependencies {

implementation 'no.nav.testnav.libs:reactive-core'
implementation 'no.nav.testnav.libs:reactive-proxy'
implementation 'no.nav.testnav.libs:data-transfer-objects'

implementation 'org.springframework.boot:spring-boot-starter-oauth2-resource-server'

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

testImplementation 'org.springframework.cloud:spring-cloud-contract-wiremock'
}
10 changes: 1 addition & 9 deletions proxies/dokarkiv-proxy/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id "dolly-apps"
id "dolly-proxies"
}

sonarqube {
Expand All @@ -10,16 +11,7 @@ sonarqube {
}

dependencies {

implementation 'no.nav.testnav.libs:security-core'
implementation 'no.nav.testnav.libs:reactive-core'
implementation 'no.nav.testnav.libs:reactive-proxy'
implementation 'no.nav.testnav.libs:reactive-security'
implementation 'no.nav.testnav.libs:data-transfer-objects'

implementation 'org.springframework.boot:spring-boot-starter-oauth2-resource-server'

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

testImplementation 'org.springframework.cloud:spring-cloud-contract-wiremock'
}
9 changes: 1 addition & 8 deletions proxies/ereg-proxy/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id "dolly-apps"
id "dolly-proxies"
}

sonarqube {
Expand All @@ -10,13 +11,5 @@ sonarqube {
}

dependencies {

implementation 'no.nav.testnav.libs:reactive-core'
implementation 'no.nav.testnav.libs:reactive-proxy'

implementation 'org.springframework.boot:spring-boot-starter-oauth2-resource-server'
implementation 'org.springframework.cloud:spring-cloud-starter-bootstrap' // TODO remove legacy bootstrap config
implementation 'org.springframework.cloud:spring-cloud-starter-gateway'

testImplementation 'org.springframework.cloud:spring-cloud-contract-wiremock'
}
10 changes: 1 addition & 9 deletions proxies/histark-proxy/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id "dolly-apps"
id "dolly-proxies"
}

sonarqube {
Expand All @@ -10,14 +11,5 @@ sonarqube {
}

dependencies {

implementation 'no.nav.testnav.libs:reactive-core'
implementation 'no.nav.testnav.libs:reactive-proxy'
implementation 'no.nav.testnav.libs:data-transfer-objects'

implementation 'org.springframework.boot:spring-boot-starter-oauth2-resource-server'

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

testImplementation 'org.springframework.cloud:spring-cloud-contract-wiremock'
}
10 changes: 1 addition & 9 deletions proxies/inntektstub-proxy/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id "dolly-apps"
id "dolly-proxies"
}

sonarqube {
Expand All @@ -10,14 +11,5 @@ sonarqube {
}

dependencies {

implementation 'no.nav.testnav.libs:reactive-core'
implementation 'no.nav.testnav.libs:reactive-proxy'
implementation 'no.nav.testnav.libs:data-transfer-objects'

implementation 'org.springframework.boot:spring-boot-starter-oauth2-resource-server'

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

testImplementation 'org.springframework.cloud:spring-cloud-contract-wiremock'
}
9 changes: 1 addition & 8 deletions proxies/inst-proxy/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id "dolly-apps"
id "dolly-proxies"
}

sonarqube {
Expand All @@ -10,15 +11,7 @@ sonarqube {
}

dependencies {

implementation 'no.nav.testnav.libs:security-core'
implementation 'no.nav.testnav.libs:reactive-core'
implementation 'no.nav.testnav.libs:reactive-proxy'
implementation 'no.nav.testnav.libs:data-transfer-objects'
implementation 'no.nav.testnav.libs:reactive-security'

implementation 'org.springframework.boot:spring-boot-starter-oauth2-resource-server'
implementation 'org.springframework.cloud:spring-cloud-starter-gateway'

testImplementation 'org.springframework.cloud:spring-cloud-contract-wiremock'
}
10 changes: 1 addition & 9 deletions proxies/kontoregister-person-proxy/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id "dolly-apps"
id "dolly-proxies"
}

sonarqube {
Expand All @@ -10,16 +11,7 @@ sonarqube {
}

dependencies {

implementation 'no.nav.testnav.libs:security-core'
implementation 'no.nav.testnav.libs:reactive-core'
implementation 'no.nav.testnav.libs:reactive-proxy'
implementation 'no.nav.testnav.libs:reactive-security'
implementation 'no.nav.testnav.libs:data-transfer-objects'

implementation 'org.springframework.boot:spring-boot-starter-oauth2-resource-server'

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

testImplementation 'org.springframework.cloud:spring-cloud-contract-wiremock'
}
10 changes: 1 addition & 9 deletions proxies/krrstub-proxy/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id "dolly-apps"
id "dolly-proxies"
}

sonarqube {
Expand All @@ -10,15 +11,6 @@ sonarqube {
}

dependencies {

implementation 'no.nav.testnav.libs:security-core'
implementation 'no.nav.testnav.libs:reactive-core'
implementation 'no.nav.testnav.libs:reactive-proxy'
implementation 'no.nav.testnav.libs:reactive-security'

implementation 'org.springframework.boot:spring-boot-starter-oauth2-resource-server'

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

testImplementation 'org.springframework.cloud:spring-cloud-contract-wiremock'
}
10 changes: 1 addition & 9 deletions proxies/medl-proxy/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id "dolly-apps"
id "dolly-proxies"
}

sonarqube {
Expand All @@ -10,15 +11,6 @@ sonarqube {
}

dependencies {

implementation 'no.nav.testnav.libs:security-core'
implementation 'no.nav.testnav.libs:reactive-core'
implementation 'no.nav.testnav.libs:reactive-proxy'
implementation 'no.nav.testnav.libs:reactive-security'

implementation 'org.springframework.boot:spring-boot-starter-oauth2-resource-server'

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

testImplementation 'org.springframework.cloud:spring-cloud-contract-wiremock'
}
10 changes: 1 addition & 9 deletions proxies/modapp-ereg-proxy/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id "dolly-apps"
id "dolly-proxies"
}

sonarqube {
Expand All @@ -10,15 +11,6 @@ sonarqube {
}

dependencies {

implementation 'no.nav.testnav.libs:security-core'
implementation 'no.nav.testnav.libs:reactive-core'
implementation 'no.nav.testnav.libs:reactive-proxy'
implementation 'no.nav.testnav.libs:reactive-security'

implementation 'org.springframework.boot:spring-boot-starter-oauth2-resource-server'

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

testImplementation 'org.springframework.cloud:spring-cloud-contract-wiremock'
}
8 changes: 1 addition & 7 deletions proxies/norg2-proxy/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id "dolly-apps"
id "dolly-proxies"
}

sonarqube {
Expand All @@ -10,14 +11,7 @@ sonarqube {
}

dependencies {

implementation 'no.nav.testnav.libs:reactive-core'
implementation 'no.nav.testnav.libs:reactive-proxy'
implementation 'no.nav.testnav.libs:data-transfer-objects'

implementation 'org.springframework.boot:spring-boot-starter-oauth2-resource-server'
implementation 'org.springframework.cloud:spring-cloud-starter-bootstrap' // TODO remove legacy bootstrap config
implementation 'org.springframework.cloud:spring-cloud-starter-gateway'

testImplementation 'org.springframework.cloud:spring-cloud-contract-wiremock'
}
8 changes: 1 addition & 7 deletions proxies/pdl-proxy/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id "dolly-apps"
id "dolly-proxies"
}

sonarqube {
Expand All @@ -10,16 +11,9 @@ sonarqube {
}

dependencies {

implementation 'no.nav.testnav.libs:security-core'
implementation 'no.nav.testnav.libs:reactive-core'
implementation 'no.nav.testnav.libs:reactive-proxy'
implementation 'no.nav.testnav.libs:reactive-security'
implementation 'no.nav.testnav.libs:data-transfer-objects'

implementation 'org.springframework.boot:spring-boot-starter-oauth2-resource-server'
implementation 'org.springframework.cloud:spring-cloud-starter-bootstrap' // TODO remove legacy bootstrap config.
implementation 'org.springframework.cloud:spring-cloud-starter-gateway'

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

0 comments on commit 0bf69c9

Please sign in to comment.