File tree Expand file tree Collapse file tree 4 files changed +8
-0
lines changed Expand file tree Collapse file tree 4 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,8 @@ if (JavaVersion.current() >= JavaVersion.VERSION_17) {
154
154
155
155
// Set minimum compatibility and java home for compiler task
156
156
tasks. withType(ScalaCompile ) { ScalaCompile task ->
157
+ task. scalaCompileOptions. additionalParameters = [" -javabootclasspath" , new File (project. ext. runtimeJavaHome, ' jre/lib/rt.jar' ). absolutePath]
158
+ task. options. bootstrapClasspath = layout. files(new File (project. ext. runtimeJavaHome, ' jre/lib/rt.jar' ))
157
159
task. sourceCompatibility = project. ext. minimumRuntimeVersion
158
160
task. targetCompatibility = project. ext. minimumRuntimeVersion
159
161
task. options. forkOptions. executable = new File (project. ext. runtimeJavaHome, ' bin/java' ). absolutePath
Original file line number Diff line number Diff line change @@ -168,6 +168,8 @@ configurations.matching { it.name.contains('CompilerPlugin') == false }.all { Co
168
168
}
169
169
170
170
tasks. withType(ScalaCompile ) { ScalaCompile task ->
171
+ task. scalaCompileOptions. additionalParameters = [" -javabootclasspath" , new File (project. ext. runtimeJavaHome, ' jre/lib/rt.jar' ). absolutePath]
172
+ task. options. bootstrapClasspath = layout. files(new File (project. ext. runtimeJavaHome, ' jre/lib/rt.jar' ))
171
173
task. sourceCompatibility = project. ext. minimumRuntimeVersion
172
174
task. targetCompatibility = project. ext. minimumRuntimeVersion
173
175
task. options. forkOptions. executable = new File (project. ext. runtimeJavaHome, ' bin/java' ). absolutePath
Original file line number Diff line number Diff line change @@ -188,6 +188,8 @@ configurations.matching{ it.name.contains('CompilerPlugin') == false }.all { Con
188
188
}
189
189
190
190
tasks. withType(ScalaCompile ) { ScalaCompile task ->
191
+ task. scalaCompileOptions. additionalParameters = [" -javabootclasspath" , new File (project. ext. runtimeJavaHome, ' jre/lib/rt.jar' ). absolutePath]
192
+ task. options. bootstrapClasspath = layout. files(new File (project. ext. runtimeJavaHome, ' jre/lib/rt.jar' ))
191
193
task. sourceCompatibility = project. ext. minimumRuntimeVersion
192
194
task. targetCompatibility = project. ext. minimumRuntimeVersion
193
195
task. options. forkOptions. executable = new File (project. ext. runtimeJavaHome, ' bin/java' ). absolutePath
Original file line number Diff line number Diff line change @@ -171,6 +171,8 @@ configurations.matching{ it.name.contains('CompilerPlugin') == false }.all { Con
171
171
}
172
172
173
173
tasks. withType(ScalaCompile ) { ScalaCompile task ->
174
+ task. scalaCompileOptions. additionalParameters = [" -javabootclasspath" , new File (project. ext. runtimeJavaHome, ' jre/lib/rt.jar' ). absolutePath]
175
+ task. options. bootstrapClasspath = layout. files(new File (project. ext. runtimeJavaHome, ' jre/lib/rt.jar' ))
174
176
task. sourceCompatibility = project. ext. minimumRuntimeVersion
175
177
task. targetCompatibility = project. ext. minimumRuntimeVersion
176
178
task. options. forkOptions. executable = new File (project. ext. runtimeJavaHome, ' bin/java' ). absolutePath
You can’t perform that action at this time.
0 commit comments