-
Notifications
You must be signed in to change notification settings - Fork 46
/
build.gradle
41 lines (39 loc) · 1.13 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
plugins {
id 'java-library-distribution'
alias libs.plugins.ben.manes.versions
alias libs.plugins.version.catalog.update
}
distributions {
published {
distributionBaseName = "dwh-migration-tools"
contents {
from("client") {
exclude "**/__pycache__"
into "client"
}
project(":dumper:app").afterEvaluate {
from it.tasks.installPublishedDist
}
}
}
}
versionCatalogUpdate {
sortByKey = true
def isNonStable = { String version -> // from the examples in ben-manes plugin; may need adjustment for the particular dependencies of this repo
def stableKeyword = ['RELEASE', 'FINAL', 'GA'].any { k -> version.toUpperCase().contains(k) }
def regex = /^[0-9,.v-]+(-r)?$/
return !stableKeyword && !(version ==~ regex)
}
tasks.named("dependencyUpdates").configure {
rejectVersionIf {
isNonStable(it.candidate.version)
}
}
pin {
}
keep {
keepUnusedVersions = true
keepUnusedLibraries = true
keepUnusedPlugins = true
}
}