-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
63 lines (49 loc) · 1.8 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
plugins {
id "java-library"
id "com.github.ben-manes.versions" version "0.36.0"
}
apply(from: project.file("gradle/dependencies.gradle"))
allprojects {
group = "com.github.tt4g.reactor_lock_guard"
version = "0.1.0"
repositories {
mavenCentral()
}
tasks.withType(JavaCompile) {
options.release = 11
options.encoding = "UTF-8"
options.compilerArgs += "-Xlint:all"
}
}
dependencies {
implementation(platform("io.projectreactor:reactor-bom:${versions.reactorVersion}"))
implementation("io.projectreactor:reactor-core")
testImplementation("io.projectreactor:reactor-test")
testImplementation(platform("org.junit:junit-bom:${versions.junitVersion}"))
testImplementation("org.junit.jupiter:junit-jupiter-api")
testImplementation("org.junit.jupiter:junit-jupiter-params")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
testImplementation("org.mockito:mockito-core:${versions.mockitoVersion}")
testImplementation("org.mockito:mockito-junit-jupiter:${versions.mockitoVersion}")
testImplementation("org.assertj:assertj-core:${versions.assertjVersion}")
}
tasks.named("test") {
useJUnitPlatform()
}
// plugin: com.github.ben-manes.versions
dependencyUpdates {
revision = "release"
checkForGradleUpdate = true
gradleReleaseChannel = "current"
checkConstraints = true
outputFormatter = "plain"
def isNonStable = { String version ->
def stableKeyword = ["RELEASE", "FINAL", "GA"].any { stable -> version.toUpperCase().contains(stable) }
def versionRegex = /^[0-9,.v-]+(-r)?$/
return !stableKeyword && !(version ==~ versionRegex)
}
rejectVersionIf {
isNonStable(it.candidate.version)
}
}