Skip to content

Commit 5f482f1

Browse files
authored
Latest dependencies + Parallel Build (#30)
1 parent c95a5ac commit 5f482f1

File tree

3 files changed

+29
-4
lines changed

3 files changed

+29
-4
lines changed

build.gradle

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,35 @@ plugins {
1111
id 'jacoco'
1212
id 'maven-publish'
1313
id 'signing'
14-
id "com.github.ben-manes.versions" version "0.38.0"
15-
id "org.springframework.boot" version "2.5.0" apply false
14+
id "com.github.ben-manes.versions" version "0.39.0"
15+
id "org.springframework.boot" version "2.5.1" apply false
1616
id "io.spring.dependency-management" version "1.0.11.RELEASE" apply false
1717
}
1818

19+
def isNonStable = { String version ->
20+
def stableKeyword = ['RELEASE', 'FINAL', 'GA'].any { otherIt -> version.toUpperCase().contains(otherIt) }
21+
def regex = /^[0-9,.v-]+(-r)?$/
22+
return !stableKeyword && !(version ==~ regex)
23+
}
24+
25+
def specificMinimumVersions = { ModuleComponentIdentifier candidate ->
26+
candidate.group == "org.mapstruct" || candidate.group == "org.springframework"
27+
}
28+
29+
dependencyUpdates {
30+
resolutionStrategy {
31+
componentSelection {
32+
all {
33+
if (isNonStable(it.candidate.version) && !isNonStable(it.currentVersion)) {
34+
reject('Release candidate')
35+
} else if (specificMinimumVersions(it.candidate)) {
36+
reject('Minimal compatible version')
37+
}
38+
}
39+
}
40+
}
41+
}
42+
1943
allprojects {
2044
repositories {
2145
mavenCentral()

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
org.gradle.parallel=true

gradle/libs.versions.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[versions]
22
assertj = "3.19.0"
3-
commons-io = "2.8.0"
3+
commons-io = "2.9.0"
44
commons-lang3 = "3.12.0"
55
guava = "30.1.1-jre"
66
javapoet = "1.13.0"
77
jsr250 = "1.0"
88
jupiter = "5.7.2"
99
mapstruct = "1.4.0.Final"
10-
mockito = "3.10.0"
10+
mockito = "3.11.0"
1111
spring = "5.0.0.RELEASE"
1212

1313
[libraries]

0 commit comments

Comments
 (0)