diff options
author | Robert Newson <rnewson@apache.org> | 2023-05-11 07:11:13 +0100 |
---|---|---|
committer | Robert Newson <rnewson@apache.org> | 2023-05-11 09:58:10 +0100 |
commit | 75316aedb075778e1138591e4a26132aa470b509 (patch) | |
tree | df68d369099f04af5c88b9f97c00f21a13bd2a37 | |
parent | abd129fac5bbc040265cf822ad215aae1da50257 (diff) | |
download | couchdb-75316aedb075778e1138591e4a26132aa470b509.tar.gz |
add test and code quality plugins
-rw-r--r-- | nouveau/build.gradle | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/nouveau/build.gradle b/nouveau/build.gradle index 8f07e9a04..0b4957689 100644 --- a/nouveau/build.gradle +++ b/nouveau/build.gradle @@ -1,6 +1,8 @@ plugins { - id 'com.github.johnrengelman.shadow' version '8.1.1' id 'application' + id 'com.diffplug.spotless' version '6.18.0' + id 'com.github.johnrengelman.shadow' version '8.1.1' + id 'jacoco' } application { @@ -47,12 +49,26 @@ dependencies { group = 'org.apache.couchdb.nouveau' version = '1.0-SNAPSHOT' description = 'server' -java.sourceCompatibility = JavaVersion.VERSION_11 + +java { + toolchain { + languageVersion = JavaLanguageVersion.of(11) + } +} jar { manifest.attributes('Multi-Release': 'true') } +spotless { + java { + importOrder() + removeUnusedImports() + cleanthat() + palantirJavaFormat() + } +} + test { useJUnitPlatform() } |