Skip to content

Commit

Permalink
chore: fix dependenciesBuild handling
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioT90 committed Jan 13, 2025
1 parent 7e6fca3 commit 62bac3a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ RUN mkdir -p src/main/java && \

USER ${APP_USER}

RUN gradle openApiGenerate dependencies --no-daemon
RUN gradle dependenciesBuild dependencies --no-daemon

#
# 🏗️ Build Stage
Expand Down
16 changes: 13 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,16 @@ configurations {
}

tasks.compileJava {
dependsOn("openApiGenerate")
dependsOn("dependenciesBuild")
}

tasks.register("dependenciesBuild") {
group = "AutomaticallyGeneratedCode"
description = "grouping all together automatically generate code tasks"

dependsOn(
"openApiGenerate"
)
}

configure<SourceSetContainer> {
Expand All @@ -108,8 +117,9 @@ openApiGenerate {
"useSpringBoot3" to "true",
"interfaceOnly" to "true",
"useTags" to "true",
"generateConstructorWithAllArgs" to "false",
"useBeanValidation" to "true",
"generateConstructorWithAllArgs" to "true",
"generatedConstructorWithRequiredArgs" to "true",
"additionalModelTypeAnnotations" to "@lombok.Data @lombok.Builder @lombok.AllArgsConstructor"
"additionalModelTypeAnnotations" to "@lombok.Builder"
))
}
3 changes: 3 additions & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
server:
http: "\${SERVER_PORT:8080}"

spring:
application:
name: ${artifactId}
Expand Down

0 comments on commit 62bac3a

Please sign in to comment.