Skip to content

Commit

Permalink
build : exclude generated code in spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
JiwonKKang committed Oct 28, 2024
1 parent 5d92e8b commit 93f4731
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ subprojects {

spotless {
java {
targetExclude 'build/generated/**/*.java'
googleJavaFormat().aosp()
importOrder('java', 'javax', 'jakarta', 'org', 'lombok', 'com')
removeUnusedImports()
Expand Down
8 changes: 4 additions & 4 deletions tracedin-application/app-api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM eclipse-temurin:17-jdk-alpine as build
FROM eclipse-temurin:17-jdk as build
WORKDIR /workspace/app

# 환경변수 추가
Expand All @@ -8,14 +8,14 @@ ARG VERSION=0.0.1

COPY ../.. .

RUN ./gradlew :tracedin-application:${MODULE_NAME}:clean
RUN ./gradlew :tracedin-application:${MODULE_NAME}:build --parallel -x test
RUN mkdir -p ${MODULE_PATH}/build/extracted && (java -Djarmode=layertools -jar ${MODULE_PATH}/build/libs/${MODULE_NAME}-${VERSION}.jar extract --destination ${MODULE_PATH}/build/extracted)

FROM eclipse-temurin:17-jdk-alpine
FROM eclipse-temurin:17-jdk
VOLUME /tmp

RUN apk update
RUN apk --no-cache add curl # for health check
RUN apt-get update && apt-get install -y curl

ARG MODULE_PATH=tracedin-application/app-api
ARG EXTRACTED=/workspace/app/${MODULE_PATH}/build/extracted
Expand Down

0 comments on commit 93f4731

Please sign in to comment.