Skip to content

Commit 8a3c6a3

Browse files
feat: change artifactIds for generated code to avoid name conflicts
1 parent 07f2ba8 commit 8a3c6a3

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

api/scripts/gen_spring.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ for path in matching user gateway; do
2222
-g spring \
2323
-i api/openapi.yaml \
2424
-o server/$path/generated \
25-
--additional-properties=useTags=true,interfaceOnly=true
25+
--additional-properties=useTags=true,interfaceOnly=true,artifactId=openapi-spring-$path
2626

2727
# echo generating gradle
2828
echo "Generating gradle project files for $path..."

server/gateway/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ repositories {
2828
// }
2929

3030
dependencies {
31-
implementation 'org.openapitools:openapi-spring'
31+
implementation 'org.openapitools:openapi-spring-gateway'
3232
testImplementation 'org.springframework.boot:spring-boot-starter-test'
3333
testImplementation 'io.projectreactor:reactor-test'
3434
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'

server/matching/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ repositories {
1818
}
1919

2020
dependencies {
21-
implementation 'org.openapitools:openapi-spring'
21+
implementation 'org.openapitools:openapi-spring-matching'
2222
implementation 'org.springframework.boot:spring-boot-starter-web'
2323
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
2424
testImplementation 'org.springframework.boot:spring-boot-starter-test'

server/user/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ repositories {
1818
}
1919

2020
dependencies {
21-
implementation 'org.openapitools:openapi-spring'
21+
implementation 'org.openapitools:openapi-spring-user'
2222
implementation 'org.springframework.boot:spring-boot-starter-web'
2323
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
2424
testImplementation 'org.springframework.boot:spring-boot-starter-test'

0 commit comments

Comments
 (0)