-
Notifications
You must be signed in to change notification settings - Fork 19
/
build.gradle
41 lines (32 loc) · 1.05 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
import com.github.jk1.license.filter.LicenseBundleNormalizer
buildscript {
ext {
besuIdentifier = "linea-besu-${besuVersion}"
besuFilename = "${besuIdentifier}.tar.gz"
besuUrl = "${distributionBaseUrl}${besuVersion}/${besuFilename}"
besuPluginsIdentifier = "${distributionIdentifier}-${version}"
besuPluginDir = File.createTempDir("plugins")
}
}
plugins {
id 'java-library'
id 'com.github.jk1.dependency-license-report' version '2.8'
}
version = project.hasProperty('releaseVersion') ? project.getProperty('releaseVersion') : 'snapshot'
licenseReport {
// This is for the allowed-licenses-file in checkLicense Task
// Accepts File, URL or String path to local or remote file
allowedLicensesFile = rootProject.file("gradle/allowed-licenses.json")
excludes = []
// If set to true, then all boms will be excluded from the report
excludeBoms = true
filters = [
new LicenseBundleNormalizer(bundlePath: rootProject.file("gradle/license-normalizer-bundle.json"))
]
}
build {
dependsOn checkLicense
}
jar {
enabled = false
}