-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathbuild.gradle
52 lines (45 loc) · 1.43 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
import org.terracotta.build.conventions.BaseConvention
plugins {
id 'org.owasp.dependencycheck'
id 'org.terracotta.build.convention.base'
id 'io.github.gradle-nexus.publish-plugin'
}
gradle.includedBuilds.forEach { includedBuild ->
project.tasks.named('check') { parentBuildCheckTask ->
parentBuildCheckTask.dependsOn(includedBuild.task(':check'))
}
}
wrapper {
distributionType = Wrapper.DistributionType.ALL
}
assert JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_1_8) : 'Terracotta Platform requires Java 8 or later to build'
// Attention: these defaults may change in CI, see TcCi plugin
dependencyCheck {
cveValidForHours=24
failBuildOnCVSS = 0 // Fail on all when not in CI (0-10)
suppressionFile = 'config/owasp-suppressions.xml'
skipConfigurations += ['checkstyle', 'spotbugs', 'asciidoctor']
analyzers {
assemblyEnabled = false // no .NET here, prevent warnings
}
}
nexusPublishing {
repositories {
sonatype {
username = sonatypeUser
password = sonatypePwd
}
}
// Sonatype is often very slow in these operations:
transitionCheckOptions {
delayBetween = Duration.ofSeconds((findProperty("delayBetweenRetriesInSeconds") ?: "10") as int)
maxRetries = (findProperty("numberOfRetries") ?: "100") as int
}
}
allprojects {
afterEvaluate { Project p ->
if (p.getPlugins().hasPlugin(BasePlugin)) {
assert p.getPlugins().hasPlugin(BaseConvention)
}
}
}