-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* build(deps): update Asciidoctor to `4.0.4` Updated Asciidoctor to `4.0.4`, enabling the removal of the transitive dependency workaround and the Ruby repository configuration. * chore: add `.sdkmanrc` file Add an `.sdkmanrc` file to define JDK version for consistent development environment setup. * fix(deps): use separate version for `grails-gradle-plugin` * refactor(build): extract common configuration - Extract java configuration - Combine test configuration to one file * build: add `slf4jPreventExclusion` property This prevents the Grails Gradle Plugin from unnecessarily excluding `slf4j-simple` in the generated POMs (grails/grails-gradle-plugin#222) * build: use correct notation for BOM inclusion * build: remove unused/already applied gradle plugins * build: write better log message * build: move grails-publish to root build file * build: cleanup * build: rephrase log message to be more correct * ci: adjust environment vars for `grails-publish`
- Loading branch information
Showing
13 changed files
with
101 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Enable auto-env through the sdkman_auto_env config - https://sdkman.io/usage#env | ||
java=17.0.13-librca |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,27 @@ | ||
version = project.projectVersion | ||
import org.grails.gradle.plugin.publishing.GrailsPublishExtension | ||
|
||
buildscript { | ||
repositories { | ||
maven { url = 'https://repo.grails.org/grails/core' } | ||
} | ||
dependencies { | ||
classpath "org.grails:grails-gradle-plugin:$grailsGradlePluginVersion" | ||
} | ||
} | ||
|
||
version = projectVersion | ||
|
||
subprojects { | ||
if (name == 'spring-security-ui') { | ||
// This has to be configured here in the rootProject build file: https://github.com/grails/grails-gradle-plugin/issues/364 | ||
version = projectVersion | ||
apply plugin: 'org.grails.grails-publish' | ||
extensions.getByType(GrailsPublishExtension).with { | ||
githubSlug = 'grails/grails-spring-security-ui' | ||
license.name = 'Apache-2.0' | ||
title = 'Grails Spring Security UI' | ||
desc = 'The Spring Security UI plugin provides CRUD screens and other user management workflows.' | ||
developers = [burtbeckwith: 'Burt Beckwith'] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
compileJava.options.release = javaVersion.toInteger() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
tasks.withType(Test).configureEach { | ||
useJUnitPlatform() | ||
afterTest { desc, result -> | ||
logger.quiet " -- Executed test ${desc.name} [${desc.className}] with result: ${result.resultType}" | ||
} | ||
testLogging { | ||
events 'passed', 'skipped', 'failed', 'standardOut' | ||
showExceptions true | ||
exceptionFormat 'full' | ||
showCauses true | ||
showStackTraces true | ||
|
||
// set options for log level DEBUG and INFO | ||
debug { | ||
events 'started', 'passed', 'skipped', 'failed', 'standardOut', 'standardError' | ||
exceptionFormat 'full' | ||
} | ||
info.events = debug.events | ||
info.exceptionFormat = debug.exceptionFormat | ||
} | ||
afterSuite { desc, result -> | ||
if (!desc.parent) { // will match the outermost suite | ||
def output = "Results: ${result.resultType} (${result.testCount} tests, ${result.successfulTestCount} successes, ${result.failedTestCount} failures, ${result.skippedTestCount} skipped)" | ||
def startItem = '| ', endItem = ' |' | ||
def repeatLength = startItem.length() + output.length() + endItem.length() | ||
logger.quiet "\n${'-' * repeatLength}\n${startItem}${output}${endItem}\n${'-' * repeatLength}" | ||
} | ||
} | ||
|
||
} | ||
|
||
tasks.named('integrationTest', Test) { | ||
// options: RECORD_ALL, RECORD_FAILING, SKIP (https://github.com/grails/geb) | ||
systemProperty('grails.geb.recording.mode', 'SKIP') | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters