diff options
author | Joffrey BION <joffrey.bion@gmail.com> | 2018-08-01 00:09:46 +0200 |
---|---|---|
committer | Joffrey BION <joffrey.bion@gmail.com> | 2018-08-01 01:45:04 +0200 |
commit | 1e98b6bdf6aac5df09545349373a9f9624f38692 (patch) | |
tree | 2c6a9ae994f6c20679c59ac9046a006ce4d0a083 /backend/build.gradle | |
parent | Add history note about Kotlin migration (diff) | |
download | seven-wonders-1e98b6bdf6aac5df09545349373a9f9624f38692.tar.gz seven-wonders-1e98b6bdf6aac5df09545349373a9f9624f38692.tar.bz2 seven-wonders-1e98b6bdf6aac5df09545349373a9f9624f38692.zip |
Remove checkstyle and add ktlint
Diffstat (limited to 'backend/build.gradle')
-rw-r--r-- | backend/build.gradle | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/backend/build.gradle b/backend/build.gradle index af5ed8e2..bc6913c4 100644 --- a/backend/build.gradle +++ b/backend/build.gradle @@ -4,20 +4,24 @@ buildscript { springBootVersion = '2.0.3.RELEASE' } repositories { - mavenCentral() + 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" } } -apply plugin: 'checkstyle' 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' @@ -40,10 +44,7 @@ compileTestKotlin { repositories { mavenCentral() -} - -configurations { - checkstyleConfig + jcenter() } dependencies { @@ -66,14 +67,6 @@ dependencies { testCompile 'org.springframework.boot:spring-boot-starter-test' testCompile 'org.hildan.jackstomp:jackstomp:2.0.0' - - checkstyleConfig 'org.hildan.checkstyle:checkstyle-config:2.1.0' -} - -checkstyle { - maxWarnings = 0 - toolVersion = '8.2' - config = resources.text.fromArchiveEntry(configurations.checkstyleConfig, "checkstyle.xml") } // packages the frontend app within the jar |