summaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
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