From c1fc00d5178096be59c2d08bc730c3d35a6d2cf0 Mon Sep 17 00:00:00 2001 From: Jim Anderson Date: Tue, 9 Apr 2024 15:13:54 -0500 Subject: [PATCH] fix: remove subprojects build config, add group and version --- build.gradle | 66 ++++++++++++++++++++-------------------------------- 1 file changed, 25 insertions(+), 41 deletions(-) diff --git a/build.gradle b/build.gradle index cc663dd..e9f6e88 100644 --- a/build.gradle +++ b/build.gradle @@ -15,6 +15,9 @@ plugins { apply from: 'publish.gradle' +group = 'dev.openfga' +version = '0.0.1' + java { sourceCompatibility = 17 targetCompatibility = 17 @@ -50,50 +53,31 @@ test { useJUnitPlatform() } -subprojects { - apply plugin: 'java' - apply plugin: 'com.diffplug.spotless' - apply plugin: 'jacoco' - - group = "dev.openfga" - version = "0.0.1-SNAPSHOT" - - java { - sourceCompatibility = 17 - targetCompatibility = 17 - } - - repositories { - mavenCentral() +spotless { + format 'misc', { + // define the files (e.g. '*.gradle', '*.md') to apply `misc` to + target '.gitignore', '*.gradle' + // define the steps to apply to those files + trimTrailingWhitespace() + indentWithSpaces() + endWithNewline() } - - spotless { - format 'misc', { - // define the files (e.g. '*.gradle', '*.md') to apply `misc` to - target '.gitignore', '*.gradle' - // define the steps to apply to those files - trimTrailingWhitespace() - indentWithSpaces() - endWithNewline() - } - java { - palantirJavaFormat() - removeUnusedImports() - importOrder() - } + java { + palantirJavaFormat() + removeUnusedImports() + importOrder() } +} - test { - finalizedBy jacocoTestReport // report is always generated after tests run - } - - jacocoTestReport { - // tests are required to run before generating a JaCoCo coverage report. - dependsOn test - } +test { + finalizedBy jacocoTestReport // report is always generated after tests run +} - tasks.register('fmt') { - dependsOn 'spotlessApply' - } +jacocoTestReport { + // tests are required to run before generating a JaCoCo coverage report. + dependsOn test +} +tasks.register('fmt') { + dependsOn 'spotlessApply' }