Skip to content

Commit 9b64307

Browse files
committed
update springboot, add test logger plugin
1 parent 6c19fc9 commit 9b64307

File tree

5 files changed

+21
-3
lines changed

5 files changed

+21
-3
lines changed

.github/dependabot.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "gradle" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "weekly"

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ A general purpose Java plugin for LAA CCMS projects.
1313
- apply [Jacoco](https://docs.gradle.org/current/userguide/jacoco_plugin.html) plugin, and configure sensible defaults.
1414
- apply [Versions](https://github.com/ben-manes/gradle-versions-plugin) plugin, and configure the recommended versioning strategy.
1515
- apply [Checkstyle](https://docs.gradle.org/current/userguide/checkstyle_plugin.html) plugin, and configure sensible defaults.
16+
- apply [Test Logger](https://github.com/radarsh/gradle-test-logger-plugin) plugin for better readability of test outputs.
1617
- apply [Maven Publish](https://docs.gradle.org/current/userguide/publishing_maven.html) plugin, and configure LAA CCMS repositories and credential resolution for local development and pipelines. For publishing, the repository name can be overridden by setting the `repositoryName` property in your `gradle.properties`. This is helpful when your repository name is different from your project name.
1718
- apply [Gradle Release](https://github.com/researchgate/gradle-release) plugin, and define a release tag format.
1819

gradle.properties

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version=0.0.5-SNAPSHOT
22

33
# org.springframework.boot:spring-boot-gradle-plugin
44
# org.springframework.boot:spring-boot-dependencies
5-
springBootVersion = 3.2.5
5+
springBootVersion = 3.3.0
66

77
# io.spring.gradle:dependency-management-plugin
88
springBootDependencyManagementPluginVersion = 1.1.5
@@ -11,6 +11,9 @@ springBootDependencyManagementPluginVersion = 1.1.5
1111
gradleVersionsPluginVersion = 0.51.0
1212

1313
# checkstyle
14-
checkstyleVersion = 10.12.4
14+
checkstyleVersion = 10.17.0
15+
16+
# com.adarshr:gradle-test-logger-plugin
17+
testLoggerPluginVersion = 4.0.0
1518

1619
javaVersion = 21

laa-ccms-java-gradle-plugin/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ group = 'uk.gov.laa.ccms.java'
77

88
dependencies {
99
implementation "com.github.ben-manes:gradle-versions-plugin:${gradleVersionsPluginVersion}"
10+
implementation "com.adarshr:gradle-test-logger-plugin:${testLoggerPluginVersion}"
1011
}
1112

1213
gradlePlugin {

laa-ccms-java-gradle-plugin/src/main/groovy/uk/gov/laa/ccms/gradle/LaaCcmsJavaGradlePlugin.groovy

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package uk.gov.laa.ccms.gradle
22

3+
import com.adarshr.gradle.testlogger.TestLoggerPlugin
34
import com.github.benmanes.gradle.versions.VersionsPlugin
45
import org.gradle.api.Plugin
56
import org.gradle.api.Project
@@ -14,7 +15,7 @@ import org.gradle.testing.jacoco.plugins.JacocoPlugin
1415
class LaaCcmsJavaGradlePlugin implements Plugin<Project> {
1516

1617
private static final String JAVA_VERSION = "21"
17-
private static final String CHECKSTYLE_VERSION = "10.12.4"
18+
private static final String CHECKSTYLE_VERSION = "10.17.0"
1819

1920
@Override
2021
void apply(Project target) {
@@ -23,6 +24,7 @@ class LaaCcmsJavaGradlePlugin implements Plugin<Project> {
2324
target.pluginManager.apply JacocoPlugin
2425
target.pluginManager.apply VersionsPlugin
2526
target.pluginManager.apply CheckstylePlugin
27+
target.pluginManager.apply TestLoggerPlugin
2628
target.pluginManager.apply MavenPublishPlugin
2729

2830
target.java {

0 commit comments

Comments
 (0)