Skip to content
Permalink
Browse files

Proper (?) usage of dependency management Gradle plugin.

  • Loading branch information...
jacekbilski committed Dec 10, 2018
1 parent 14c17dc commit 2de6a84c8a0ca48364e39e73b9da990ab093c576
Showing with 15 additions and 11 deletions.
  1. +3 −2 app/build.gradle
  2. +2 −5 build.gradle
  3. +10 −4 calculator/build.gradle
@@ -1,5 +1,6 @@
apply plugin: "org.springframework.boot"
apply plugin: "io.spring.dependency-management"
plugins {
id "org.springframework.boot"
}

group = "com.webcalc"
version = "0.0.1-SNAPSHOT"
@@ -1,12 +1,9 @@
buildscript {
ext {
springBootVersion = "2.1.0.RELEASE"
junitVersion = "5.3.1"
assertjVersion = "3.11.1"
springBootVersion = "2.1.1.RELEASE"
}
repositories {
mavenCentral()
maven { url "https://repo.spring.io/milestone" }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
@@ -15,9 +12,9 @@ buildscript {

allprojects {
apply plugin: "java"
apply plugin: "io.spring.dependency-management"

repositories {
mavenCentral()
maven { url "https://repo.spring.io/milestone" }
}
}
@@ -1,11 +1,17 @@
version = "0.0.1-SNAPSHOT"
sourceCompatibility = 11

dependencyManagement {
imports {
mavenBom "org.springframework.boot:spring-boot-dependencies:${springBootVersion}"
}
}

dependencies {
testImplementation("org.junit.jupiter:junit-jupiter-api:${junitVersion}")
testImplementation("org.junit.jupiter:junit-jupiter-params:${junitVersion}")
testRuntime("org.junit.jupiter:junit-jupiter-engine:${junitVersion}")
testImplementation("org.assertj:assertj-core:${assertjVersion}")
testImplementation("org.junit.jupiter:junit-jupiter-api")
testImplementation("org.junit.jupiter:junit-jupiter-params")
testRuntime("org.junit.jupiter:junit-jupiter-engine")
testImplementation("org.assertj:assertj-core")
}

test {

0 comments on commit 2de6a84

Please sign in to comment.
You can’t perform that action at this time.