-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathbuild.gradle
113 lines (92 loc) · 3 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
plugins {
id "io.codearte.nexus-staging" version "0.30.0"
id 'com.github.jk1.dependency-license-report' version '1.16'
id 'org.cyclonedx.bom' version '1.8.2' apply false
}
// Plugin dependency-license-report
import com.github.jk1.license.filter.*
import com.github.jk1.license.render.*
apply plugin: 'io.codearte.nexus-staging'
ext {
/*
module stuff
*/
driver_ui = project(':driver-ui')
driver_ui_desktop = project(':driver-ui-desktop')
core = project(':core')
report = project(':report-ng')
seleniumVersion = '4.26.0'
// Must be the same like in Selenium 4
guavaVersion = "33.3.1-jre"
moduleVersion = '2-SNAPSHOT'
if (System.properties.containsKey('ttVersion')) {
moduleVersion = System.getProperty('ttVersion')
}
}
allprojects {
apply plugin: 'java-library'
apply plugin: 'project-report'
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = "UTF-8"
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
}
subprojects {
group 'io.testerra'
version moduleVersion
base.archivesName = "testerra"
apply plugin: 'maven-publish' // tasks publish and publishToMavenLocal
apply plugin: 'jacoco-report-aggregation'
apply plugin: 'signing'
apply plugin: 'com.github.jk1.dependency-license-report'
apply plugin: 'org.cyclonedx.bom'
// important!
repositories {
// mavenLocal()
mavenCentral()
}
test {
ignoreFailures = true
useTestNG()
testLogging {
outputs.upToDateWhen { false }
showStandardStreams = true
}
options {
systemProperties(System.getProperties())
}
}
task cleanDist {
doLast {
delete "out"
}
}
tasks.whenTaskAdded { t ->
if (t.name.startsWith("publish")) {
boolean e = t.project.publish.enabled
if (!e) {
println "Not running publish for " + t.project.name
t.enabled = false
}
}
}
clean.dependsOn(cleanDist)
// Plugin dependency-license-report
licenseReport {
filters = [new ExcludeTransitiveDependenciesFilter()]
configurations = ['runtimeClasspath', 'testRuntimeClasspath']
// renderers = [new CsvReportRenderer("${project.name}.csv"), new InventoryMarkdownReportRenderer("${project.name}.md"), new TextReportRenderer("${project.name.toUpperCase()}.txt") ]
renderers = [new InventoryMarkdownReportRenderer("${project.name}.md")]
outputDir = "$rootDir/license3rdparty"
}
cyclonedxBom {
skipProjects = ["docs", "integration-tests", "report-ng", "app", "report-ng-tests"]
outputFormat = "json"
outputName = project.name
destination = file("../build/sbom")
}
}
// Do not move this integration because `group` and `version` is needed for publishing
apply from: rootProject.file('publish.gradle')