From 1e47b956aa886e6abed224efa0f35eec6ddcb9ed Mon Sep 17 00:00:00 2001 From: jbion Date: Mon, 18 Feb 2019 15:50:24 +0100 Subject: Upgrade Kotlin, Spring, and KtLint versions --- backend/build.gradle | 46 ++++++---------------------------------------- 1 file changed, 6 insertions(+), 40 deletions(-) (limited to 'backend/build.gradle') diff --git a/backend/build.gradle b/backend/build.gradle index bc6913c4..a4f0dab5 100644 --- a/backend/build.gradle +++ b/backend/build.gradle @@ -1,52 +1,18 @@ -buildscript { - ext { - kotlinVersion = '1.2.51' - springBootVersion = '2.0.3.RELEASE' - } - repositories { - mavenCentral() // for kotlin and spring boot - maven { - url "https://plugins.gradle.org/m2/" // for ktlint - } - } - dependencies { - classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") - classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}") - classpath("org.jetbrains.kotlin:kotlin-allopen:${kotlinVersion}") - classpath "gradle.plugin.org.jlleitschuh.gradle:ktlint-gradle:4.1.0" - } +plugins { + id 'org.jetbrains.kotlin.jvm' version '1.3.21' + id 'org.jetbrains.kotlin.plugin.spring' version '1.3.21' + id 'org.springframework.boot' version '2.1.3.RELEASE' + id "org.jlleitschuh.gradle.ktlint" version "7.1.0" } -apply plugin: 'kotlin' -apply plugin: 'kotlin-spring' -apply plugin: 'org.springframework.boot' apply plugin: 'io.spring.dependency-management' -apply plugin: "org.jlleitschuh.gradle.ktlint" - -group 'org.luxons' -version '1.0-SNAPSHOT' - -sourceCompatibility = 1.8 - -compileKotlin { - kotlinOptions { - freeCompilerArgs = ["-Xjsr305=strict"] - jvmTarget = "1.8" - } -} -compileTestKotlin { +tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all { kotlinOptions { - freeCompilerArgs = ["-Xjsr305=strict"] jvmTarget = "1.8" } } -repositories { - mavenCentral() - jcenter() -} - dependencies { compile project(':game-engine') compile 'org.jetbrains.kotlin:kotlin-stdlib-jdk8' -- cgit