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
|
||||
- chmod +x ./gradlew
|
||||
- javac --version
|
||||
- ./gradlew build -Pprofile=prod --refresh-dependencies
|
||||
- ./gradlew build --no-daemon -Pprofile=prod --refresh-dependencies
|
||||
- ls
|
||||
- echo "Compile complete."
|
||||
10
build.gradle
10
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 {
|
||||
|
||||
Reference in New Issue
Block a user