-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
34 lines (30 loc) · 877 Bytes
/
build.gradle.kts
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
plugins {
idea
base
id("com.moowork.node") version "1.3.1"
id("com.github.ben-manes.versions") version "0.25.0"
}
allprojects {
group = "com.github.daggerok.bmuschko"
version = "0.0.1"
}
node {
download = true
version = "12.10.0"
npmVersion = "6.11.3"
}
tasks {
withType<com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask> {
resolutionStrategy {
componentSelection {
all {
val rejected = listOf("alpha", "beta", "rc", "cr", "m", "preview", "b", "ea", "SNAPSHOT")
.map { qualifier -> Regex("(?i).*[.-]$qualifier[.\\d-+]*") }
.any { it.matches(candidate.version) }
if (rejected) reject("Release candidate")
}
}
}
}
}
defaultTasks("clean", "build")