-
Notifications
You must be signed in to change notification settings - Fork 211
/
Copy pathbuild.gradle
94 lines (75 loc) · 2.27 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
plugins {
id 'base'
alias(deps.plugins.dependencychecks)
alias(deps.plugins.benmanes.versions)
alias(deps.plugins.forbiddenapis) apply false
alias(deps.plugins.randomizedtesting.plugin) apply false
alias(deps.plugins.spotless) apply false
alias(deps.plugins.node.gradle) apply false
alias(deps.plugins.versionCatalogUpdate) apply false
}
repositories {
mavenLocal()
mavenCentral()
}
rootProject.version = deps.versions.carrot2.get()
ext {
fullName = "Carrot2"
licenseHeader = file("etc/spotless/license-header.txt")
legal = files('carrot2.LICENSE')
forbiddenApiRulesDir = file("etc/forbidden-apis")
langResourcePatterns = [
'**/*.label-filters.json',
'**/*.word-filters.json',
]
devMode = { ->
if (rootProject.hasProperty('dev')) {
return (rootProject.dev == '' || Boolean.parseBoolean(rootProject.dev))
} else {
return false
}
}.call()
}
apply from: file('gradle/validation/check-environment.gradle')
apply from: file('gradle/dependencies.gradle')
apply from: file('gradle/defaults.gradle')
apply from: file('gradle/cleanall.gradle')
apply from: file('gradle/gitinfo.gradle')
apply from: file('gradle/buildinfo.gradle')
apply from: file('gradle/defaults-java.gradle')
apply from: file('gradle/node/yarn-projects.gradle')
apply from: file('gradle/ide/idea.gradle')
apply from: file("gradle/testing/defaults-tests.gradle")
apply from: file("gradle/testing/per-project-summary.gradle")
apply from: file("gradle/testing/slowest-tests-at-end.gradle")
apply from: file("gradle/validation/forbidden-apis.gradle")
apply from: file("gradle/validation/spotless.gradle")
apply from: file('gradle/maven/defaults-maven.gradle')
subprojects {
if (project.file("src/main/java").exists() ||
project.file("src/test/java").exists() ||
project.file("src/main/webapp").exists()) {
apply plugin: 'java-library'
apply plugin: 'com.carrotsearch.gradle.randomizedtesting'
if (![
":core-examples"
].contains(project.path)) {
dependencies {
testImplementation project(':infra:tests')
}
}
}
}
allprojects { prj ->
plugins.withType(WarPlugin) {
configurations {
war {}
}
artifacts {
war tasks.war
}
dependencies {
providedCompile deps.jetty.toolchain.servlet.api
}
}
}