Skip to content

Commit

Permalink
Upgrade to Boot 2.0.0.RELEASE and Gradle 4.6
Browse files Browse the repository at this point in the history
  • Loading branch information
sdeleuze committed Mar 1, 2018
1 parent 7d741d9 commit 92bebbf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 21 deletions.
28 changes: 8 additions & 20 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,24 +1,8 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

buildscript {
repositories {
mavenCentral()
maven("https://repo.spring.io/milestone")
}

dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:2.0.0.RC2")
classpath("org.junit.platform:junit-platform-gradle-plugin:1.0.3")
}
}

apply {
plugin("org.springframework.boot")
plugin("org.junit.platform.gradle.plugin")
}

plugins {
val kotlinVersion = "1.2.21"
id("org.springframework.boot") version "2.0.0.RELEASE"
id("org.jetbrains.kotlin.jvm") version kotlinVersion
id("org.jetbrains.kotlin.plugin.spring") version kotlinVersion
id("org.jetbrains.kotlin.plugin.jpa") version kotlinVersion
Expand All @@ -34,11 +18,15 @@ tasks {
freeCompilerArgs = listOf("-Xjsr305=strict")
}
}

// TODO To be replaced by test { } support when available in Gradle Kotlin DSL
withType<Test> {
useJUnitPlatform()
}
}

repositories {
mavenCentral()
maven("http://repo.spring.io/milestone")
}

dependencies {
Expand All @@ -51,7 +39,7 @@ dependencies {
testCompile("org.springframework.boot:spring-boot-starter-test") {
exclude(module = "junit")
}
testCompile("org.junit.jupiter:junit-jupiter-api")
testRuntime("org.junit.jupiter:junit-jupiter-engine")
testImplementation("org.junit.jupiter:junit-jupiter-api")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
}

Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip

0 comments on commit 92bebbf

Please sign in to comment.