From d07a8ec65eda2a17b6773552baa1942459aec449 Mon Sep 17 00:00:00 2001 From: Geonhee Min Date: Thu, 13 Nov 2025 01:21:34 +0000 Subject: [PATCH] Update 2 files - /build.gradle - /.gitlab-ci.yml --- .gitlab-ci.yml | 2 +- build.gradle | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index aa057df..4055fb4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -31,6 +31,6 @@ build: # This job runs in the build stage, which runs first. - java --version - chmod +x ./gradlew - javac --version - - ./gradlew build -Pprofile=prod --refresh-dependencies + - ./gradlew build --no-daemon -Pprofile=prod --refresh-dependencies - ls - echo "Compile complete." \ No newline at end of file diff --git a/build.gradle b/build.gradle index c885a34..0ae034d 100644 --- a/build.gradle +++ b/build.gradle @@ -15,10 +15,14 @@ java { } } + tasks.withType(JavaCompile) { - // options.release.set(21) - sourceCompatibility = '21' - targetCompatibility = '21' + sourceCompatibility = '21' + targetCompatibility = '21' + + // 명시적으로 javac 경로 지정 + options.fork = true + options.forkOptions.executable = System.getenv("JAVA_HOME") + "/bin/javac" } configurations { compileOnly {