File tree Expand file tree Collapse file tree 3 files changed +3
-25
lines changed
buildSrc/src/main/java/org/springframework/boot/build
spring-boot-project/spring-boot
spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-webflux-coroutines Expand file tree Collapse file tree 3 files changed +3
-25
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2012-2021 the original author or authors.
2
+ * Copyright 2012-2022 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
31
31
* <li>{@link KotlinCompile} tasks are configured to:
32
32
* <ul>
33
33
* <li>Use {@code apiVersion} and {@code languageVersion} 1.3.
34
+ * <li>Use {@code jvmTarget} 1.8.
34
35
* <li>Treat all warnings as errors
35
36
* <li>Suppress version warnings
36
37
* </ul>
@@ -48,6 +49,7 @@ void apply(Project project) {
48
49
KotlinJvmOptions kotlinOptions = compile .getKotlinOptions ();
49
50
kotlinOptions .setApiVersion ("1.3" );
50
51
kotlinOptions .setLanguageVersion ("1.3" );
52
+ kotlinOptions .setJvmTarget ("1.8" );
51
53
kotlinOptions .setAllWarningsAsErrors (true );
52
54
List <String > freeCompilerArgs = new ArrayList <>(compile .getKotlinOptions ().getFreeCompilerArgs ());
53
55
freeCompilerArgs .add ("-Xsuppress-version-warnings" );
Original file line number Diff line number Diff line change @@ -161,18 +161,6 @@ sourceSets {
161
161
}
162
162
}
163
163
164
- compileKotlin {
165
- kotlinOptions {
166
- jvmTarget = 1.8
167
- }
168
- }
169
-
170
- compileTestKotlin {
171
- kotlinOptions {
172
- jvmTarget = 1.8
173
- }
174
- }
175
-
176
164
toolchain {
177
165
testJvmArgs. add(" --add-opens=java.base/java.net=ALL-UNNAMED" )
178
166
}
Original file line number Diff line number Diff line change @@ -6,18 +6,6 @@ plugins {
6
6
7
7
description = " Spring Boot WebFlux coroutines smoke test"
8
8
9
- compileKotlin {
10
- kotlinOptions {
11
- jvmTarget = " 1.8"
12
- }
13
- }
14
-
15
- compileTestKotlin {
16
- kotlinOptions {
17
- jvmTarget = " 1.8"
18
- }
19
- }
20
-
21
9
dependencies {
22
10
implementation(project(" :spring-boot-project:spring-boot-starters:spring-boot-starter-webflux" ))
23
11
implementation(" com.fasterxml.jackson.module:jackson-module-kotlin" )
You can’t perform that action at this time.
0 commit comments