ttnhabbridge/build.gradle

47 wiersze
1.2 KiB
Groovy
Czysty Zwykły widok Historia

2019-05-30 08:02:24 +00:00
plugins {
2022-04-09 22:05:47 +00:00
id 'com.github.spotbugs' version '5.0.6'
id 'com.github.ben-manes.versions' version '0.42.0'
2019-05-30 08:02:24 +00:00
}
def isNonStable = { String version ->
def stableKeyword = ['RELEASE', 'FINAL', 'GA'].any { it -> version.toUpperCase().contains(it) }
def regex = /^[0-9,.v-]+(-r)?$/
return !stableKeyword && !(version ==~ regex)
}
2017-08-13 13:38:01 +00:00
// Define all library dependencies in one file for clarity
apply from:'dependencies.gradle'
subprojects {
apply plugin: "java"
apply plugin: "eclipse"
2019-05-30 08:02:24 +00:00
apply plugin: "com.github.spotbugs"
apply plugin: 'com.github.ben-manes.versions'
2017-08-13 13:38:01 +00:00
2019-05-03 12:16:42 +00:00
sourceCompatibility = 1.8
2017-08-15 06:14:20 +00:00
targetCompatibility = 1.8
2017-08-13 13:38:01 +00:00
repositories {
mavenCentral()
}
spotbugsMain { reports {html { enabled = true } } }
// Reject all non stable versions
tasks.named("dependencyUpdates").configure {
rejectVersionIf {
isNonStable(it.candidate.version)
}
2019-05-30 08:02:24 +00:00
}
2017-08-13 13:38:01 +00:00
// Standard libraries added to all projects
dependencies {
2019-12-08 15:52:29 +00:00
testImplementation libraries.junit
2022-01-29 21:20:34 +00:00
testImplementation libraries.mockito
2017-08-13 13:38:01 +00:00
2022-01-29 21:20:34 +00:00
implementation libraries.slf4jlog4j
2019-12-08 15:52:29 +00:00
implementation libraries.slf4j
2017-08-13 13:38:01 +00:00
}
}