Update 2 files
- /build.gradle - /.gitlab-ci.yml
This commit is contained in:
@@ -31,6 +31,6 @@ build: # This job runs in the build stage, which runs first.
|
|||||||
- java --version
|
- java --version
|
||||||
- chmod +x ./gradlew
|
- chmod +x ./gradlew
|
||||||
- javac --version
|
- javac --version
|
||||||
- ./gradlew build -Pprofile=prod --refresh-dependencies
|
- ./gradlew build --no-daemon -Pprofile=prod --refresh-dependencies
|
||||||
- ls
|
- ls
|
||||||
- echo "Compile complete."
|
- echo "Compile complete."
|
||||||
@@ -15,10 +15,14 @@ java {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
tasks.withType(JavaCompile) {
|
tasks.withType(JavaCompile) {
|
||||||
// options.release.set(21)
|
|
||||||
sourceCompatibility = '21'
|
sourceCompatibility = '21'
|
||||||
targetCompatibility = '21'
|
targetCompatibility = '21'
|
||||||
|
|
||||||
|
// 명시적으로 javac 경로 지정
|
||||||
|
options.fork = true
|
||||||
|
options.forkOptions.executable = System.getenv("JAVA_HOME") + "/bin/javac"
|
||||||
}
|
}
|
||||||
configurations {
|
configurations {
|
||||||
compileOnly {
|
compileOnly {
|
||||||
|
|||||||
Reference in New Issue
Block a user