This is an automated email from the ASF dual-hosted git repository. rnewson pushed a commit to branch nouveau-quality-plugins in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit ce418261cb3f6f8862432f97a02486085ba2c098 Author: Robert Newson <[email protected]> AuthorDate: Thu May 11 07:11:13 2023 +0100 add test and code quality plugins --- nouveau/build.gradle | 20 ++++++++++++++++++-- 1 file 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() }
