-
Notifications
You must be signed in to change notification settings - Fork 75
/
build.gradle
60 lines (53 loc) · 1.44 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
plugins {
id 'io.spring.nohttp'
id 'org.springframework.pulsar.root-project'
id 'org.springframework.pulsar.update-version'
alias(libs.plugins.grgit) apply false
alias(libs.plugins.versions)
alias(libs.plugins.version.catalog.update)
}
description = 'Spring for Apache Pulsar'
apply from: 'gradle/jacoco-conventions.gradle'
apply from: 'gradle/aggregate-jacoco-report.gradle'
apply from: 'gradle/update-copyrights.gradle'
apply from: 'gradle/version-catalog-update.gradle'
apply from: 'gradle/java-conventions.gradle'
allprojects {
group = 'org.springframework.pulsar'
configurations.all {
resolutionStrategy {
cacheChangingModulesFor 0, "seconds"
cacheDynamicVersionsFor 0, "seconds"
}
}
}
nohttp {
allowlistFile = project.file('src/nohttp/allowlist.lines')
source.exclude "**/bin/**"
source.exclude "**/build/**"
source.exclude "**/out/**"
source.exclude "**/target/**"
source.exclude "**/*.dylib"
source.exclude "**/*.gif"
source.exclude "**/.gradle/**"
}
check {
dependsOn checkstyleNohttp
}
tasks.register('runAllSampleTests') {
var allTasks = rootProject.getAllTasks(true)
.findAll {it.key.project.name.startsWith("sample-") }
var allTestsTasks = allTasks.values().collect { t ->
t.findAll { it.name == 'test' || it.name == 'integrationTest' }
}.flatten()
it.dependsOn {
allTestsTasks
}
}
versionCatalogUpdate {
versionCatalogs {
buildLibsCatalog {
catalogFile = file("gradle/build-libs.versions.toml")
}
}
}