summaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorjbion <joffrey.bion@amadeus.com>2019-02-18 15:50:24 +0100
committerjbion <joffrey.bion@amadeus.com>2019-02-18 15:50:24 +0100
commit1e47b956aa886e6abed224efa0f35eec6ddcb9ed (patch)
tree615e7b18bc2be8d216af91355d7fe2de6d4a4179 /backend
parentUpgrade Gradle wrapper to 5.2.1 (diff)
downloadseven-wonders-1e47b956aa886e6abed224efa0f35eec6ddcb9ed.tar.gz
seven-wonders-1e47b956aa886e6abed224efa0f35eec6ddcb9ed.tar.bz2
seven-wonders-1e47b956aa886e6abed224efa0f35eec6ddcb9ed.zip
Upgrade Kotlin, Spring, and KtLint versions
Diffstat (limited to 'backend')
-rw-r--r--backend/build.gradle46
1 files changed, 6 insertions, 40 deletions
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'
bgstack15