-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathbuild.gradle
55 lines (51 loc) · 1.78 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
plugins {
id 'java-library-distribution'
alias libs.plugins.ben.manes.versions
alias libs.plugins.version.catalog.update
}
apply plugin: 'com.github.jk1.dependency-license-report'
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
}
}
licenseReport {
filters = [
new com.github.jk1.license.filter.LicenseBundleNormalizer(bundlePath: rootProject.file("gradle/license-bundle-normalizer.json"), createDefaultTransformationRules: true)
]
renderers = [
new com.google.edwmigration.dumper.build.licensereport.CsvReportRenderer(),
new com.github.jk1.license.render.JsonReportRenderer('index.json', false),
new com.github.jk1.license.render.InventoryHtmlReportRenderer("index.html", "Licenses of Third Party Dependencies")
]
allowedLicensesFile = rootProject.file("gradle/license-allowed.json")
}