Skip to content

Commit

Permalink
Merge branch '2.5.x' into 2.6.x
Browse files Browse the repository at this point in the history
Closes gh-29954
  • Loading branch information
wilkinsona committed Feb 22, 2022
2 parents 47d1f08 + 1e8d29f commit 3614c8d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 25 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -31,6 +31,7 @@
* <li>{@link KotlinCompile} tasks are configured to:
* <ul>
* <li>Use {@code apiVersion} and {@code languageVersion} 1.3.
* <li>Use {@code jvmTarget} 1.8.
* <li>Treat all warnings as errors
* <li>Suppress version warnings
* </ul>
Expand All @@ -48,6 +49,7 @@ void apply(Project project) {
KotlinJvmOptions kotlinOptions = compile.getKotlinOptions();
kotlinOptions.setApiVersion("1.3");
kotlinOptions.setLanguageVersion("1.3");
kotlinOptions.setJvmTarget("1.8");
kotlinOptions.setAllWarningsAsErrors(true);
List<String> freeCompilerArgs = new ArrayList<>(compile.getKotlinOptions().getFreeCompilerArgs());
freeCompilerArgs.add("-Xsuppress-version-warnings");
Expand Down
12 changes: 0 additions & 12 deletions spring-boot-project/spring-boot/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -161,18 +161,6 @@ sourceSets {
}
}

compileKotlin {
kotlinOptions {
jvmTarget = 1.8
}
}

compileTestKotlin {
kotlinOptions {
jvmTarget = 1.8
}
}

toolchain {
testJvmArgs.add("--add-opens=java.base/java.net=ALL-UNNAMED")
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,6 @@ plugins {

description = "Spring Boot WebFlux coroutines smoke test"

compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}

compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}

dependencies {
implementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-webflux"))
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
Expand Down

0 comments on commit 3614c8d

Please sign in to comment.