diff --git a/build.gradle b/build.gradle index e2f7d7e..33b5376 100644 --- a/build.gradle +++ b/build.gradle @@ -1,42 +1,42 @@ -plugins { - alias libs.plugins.versions - alias libs.plugins.dependencycheck -} - -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) -} - -dependencyCheck { - scanConfigurations = ['runtimeClasspath'] -} - -subprojects { - apply plugin: "java" - apply plugin: "eclipse" - apply plugin: 'com.github.ben-manes.versions' - - java { - targetCompatibility = JavaVersion.VERSION_17 - sourceCompatibility = JavaVersion.VERSION_17 - } - - repositories { - mavenCentral() - } - - // Reject all non stable versions in dependency check - tasks.named("dependencyUpdates").configure { - rejectVersionIf { - isNonStable(it.candidate.version) - } - } - - // Standard libraries added to all projects - dependencies { - testImplementation libs.junit - } -} - +plugins { + alias libs.plugins.versions + alias libs.plugins.dependencycheck +} + +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) +} + +dependencyCheck { + scanConfigurations = ['runtimeClasspath'] +} + +subprojects { + apply plugin: "java" + apply plugin: "eclipse" + apply plugin: 'com.github.ben-manes.versions' + + java { + targetCompatibility = JavaVersion.VERSION_17 + sourceCompatibility = JavaVersion.VERSION_17 + } + + repositories { + mavenCentral() + } + + // Reject all non stable versions in dependency check + tasks.named("dependencyUpdates").configure { + rejectVersionIf { + isNonStable(it.candidate.version) + } + } + + // Standard libraries added to all projects + dependencies { + testImplementation libs.junit + } +} + diff --git a/settings.gradle b/settings.gradle index b508418..391a231 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,4 +1,4 @@ -include 'verkeersdrukte' - -rootProject.name = 'verkeersdrukte' - +include 'verkeersdrukte' + +rootProject.name = 'verkeersdrukte' + diff --git a/verkeersdrukte/build.gradle b/verkeersdrukte/build.gradle index 5a63447..212697c 100644 --- a/verkeersdrukte/build.gradle +++ b/verkeersdrukte/build.gradle @@ -1,16 +1,16 @@ -apply plugin: "application" - -application { - mainClass = 'nl.bertriksikken.verkeersdrukte.app.VerkeersDrukteApp' -} - -dependencies { - implementation libs.bundles.retrofit - implementation libs.bundles.jackson - implementation libs.bundles.dropwizard - implementation libs.jdbf - - // https://mvnrepository.com/artifact/org.glassfish.jersey.media/jersey-media-sse - implementation libs.jersey.media.sse -} - +apply plugin: "application" + +application { + mainClass = 'nl.bertriksikken.verkeersdrukte.app.VerkeersDrukteApp' +} + +dependencies { + implementation libs.bundles.retrofit + implementation libs.bundles.jackson + implementation libs.bundles.dropwizard + implementation libs.jdbf + + // https://mvnrepository.com/artifact/org.glassfish.jersey.media/jersey-media-sse + implementation libs.jersey.media.sse +} +