diff options
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/build.gradle b/build.gradle index 3734ed9e..4e9d3249 100644 --- a/build.gradle +++ b/build.gradle @@ -1,19 +1,33 @@ allprojects { repositories { mavenCentral() + jcenter() maven { url "https://jitpack.io" } } + apply plugin: 'com.github.ben-manes.versions' + dependencyUpdates.resolutionStrategy = { + componentSelection { rules -> + rules.all { ComponentSelection selection -> + boolean rejected = ['alpha', 'beta', 'rc', 'cr', 'm', 'pr', 'b'].any { qualifier -> + selection.candidate.version ==~ /(?i).*[.-]${qualifier}[.\d-]*/ + } + if (rejected) { + selection.reject('Release candidate') + } + } + } + } } project.ext { - springFrameworkVersion = '4.3.7.RELEASE' + springFrameworkVersion = '4.3.8.RELEASE' springSecurityVersion = '4.2.2.RELEASE' - jacksonVersion = '2.8.7' - slf4jVersion = '1.7.24' + jacksonVersion = '2.8.8' + slf4jVersion = '1.7.25' logbackVersion = '1.2.3' junitVersion = "4.12" hamcrestVersion= "1.3" - mockitoVersion = "2.7.22" + mockitoVersion = "2.+" } buildscript { @@ -23,7 +37,7 @@ buildscript { } dependencies { classpath 'org.akhikhl.gretty:gretty:+' - classpath 'com.github.ben-manes:gradle-versions-plugin:0.13.0' + classpath 'com.github.ben-manes:gradle-versions-plugin:0.14.0' } } apply plugin: 'java' @@ -38,10 +52,10 @@ dependencies { testCompile "org.json:json:20160810" testCompile "com.fasterxml.jackson.core:jackson-core:${jacksonVersion}" - testCompile "com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}" + testCompile "com.fasterxml.jackson.core:jackson-databind:2.8.8.1" testCompile "org.springframework:spring-jdbc:${springFrameworkVersion}" testCompile "org.springframework:spring-test:${springFrameworkVersion}" - testCompile "ch.vorburger.mariaDB4j:mariaDB4j:2.2.2" + testCompile "ch.vorburger.mariaDB4j:mariaDB4j:2.2.3" testCompile "org.slf4j:slf4j-api:${slf4jVersion}" testCompile "junit:junit:${junitVersion}" testCompile "org.hamcrest:hamcrest-all:${hamcrestVersion}" |