Update to JDK 17

Issue gh-46
This commit is contained in:
Marcus Da Coregio 2021-10-08 15:38:13 -03:00
parent ca32d8e45d
commit 6a60e655e3
4 changed files with 17 additions and 7 deletions

View File

@ -1,5 +1,5 @@
version=5.6.0-SNAPSHOT version=5.6.0-SNAPSHOT
spring-security.version=5.6.0-SNAPSHOT spring-security.version=5.6.0-SNAPSHOT
org.gradle.jvmargs=-Xmx3g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError org.gradle.jvmargs=-Xmx3g -XX:+HeapDumpOnOutOfMemoryError
org.gradle.parallel=true org.gradle.parallel=true
org.gradle.caching=true org.gradle.caching=true

View File

@ -3,8 +3,8 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins { plugins {
id("org.springframework.boot") version "2.5.0" id("org.springframework.boot") version "2.5.0"
id("io.spring.dependency-management") version "1.0.9.RELEASE" id("io.spring.dependency-management") version "1.0.9.RELEASE"
kotlin("jvm") version "1.5.0" kotlin("jvm") version "1.5.31"
kotlin("plugin.spring") version "1.5.0" kotlin("plugin.spring") version "1.5.31"
} }
repositories { repositories {
@ -34,7 +34,7 @@ dependencies {
tasks.withType<KotlinCompile> { tasks.withType<KotlinCompile> {
kotlinOptions { kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict") freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "1.8" jvmTarget = "11"
} }
} }

View File

@ -8,6 +8,16 @@ repositories {
maven { url "https://repo.spring.io/snapshot" } maven { url "https://repo.spring.io/snapshot" }
} }
compileJava {
sourceCompatibility "1.8"
targetCompatibility "1.8"
}
compileTestJava {
sourceCompatibility "1.8"
targetCompatibility "1.8"
}
dependencies { dependencies {
aspect platform("org.springframework:spring-framework-bom:5.3.0") aspect platform("org.springframework:spring-framework-bom:5.3.0")
aspect platform("org.springframework.security:spring-security-bom:5.4.0-SNAPSHOT") aspect platform("org.springframework.security:spring-security-bom:5.4.0-SNAPSHOT")

View File

@ -3,8 +3,8 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins { plugins {
id("org.springframework.boot") version "2.5.0" id("org.springframework.boot") version "2.5.0"
id("io.spring.dependency-management") version "1.0.9.RELEASE" id("io.spring.dependency-management") version "1.0.9.RELEASE"
kotlin("jvm") version "1.5.0" kotlin("jvm") version "1.5.31"
kotlin("plugin.spring") version "1.5.0" kotlin("plugin.spring") version "1.5.31"
} }
repositories { repositories {
@ -28,7 +28,7 @@ dependencies {
tasks.withType<KotlinCompile> { tasks.withType<KotlinCompile> {
kotlinOptions { kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict") freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "1.8" jvmTarget = "11"
} }
} }