Skip to content

Commit 90bbb4e

Browse files
committed
Fine-tuning build.gradle files and README.md
1 parent bf60c0b commit 90bbb4e

File tree

2 files changed

+13
-19
lines changed

2 files changed

+13
-19
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# I18nEnums Grails Plugin
22

3-
[![Check and publish snapshot](https://github.com/grails-plugins/i18n-enums/actions/workflows/build.yml/badge.svg)](https://github.com/grails-plugins/i18n-enums/actions/workflows/build.yml)
3+
[![Java CI](https://github.com/grails-plugins/i18n-enums/actions/workflows/gradle.yml/badge.svg)](https://github.com/grails-plugins/i18n-enums/actions/workflows/gradle.yml)
44

55
Successor for the Grails 3.x plugin. Now ported to Grails 5.x, 6.x and 7.x
66

7-
This plugin adds an annotation usable on Enums to easy add and implement the MessageSourceResolvable interface in an standard way throughout a project.
7+
This plugin adds an annotation usable on Enums to easily add and implement the MessageSourceResolvable interface in a standard way throughout a project.
88

99
Documentation can be found here: http://grails-plugins.github.io/i18n-enums/

build.gradle

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ apply plugin: 'groovy'
66
apply plugin: 'org.apache.grails.gradle.grails-plugin'
77
apply plugin: 'org.apache.grails.gradle.grails-publish'
88

9-
group "org.grails.plugins"
9+
group = 'org.grails.plugins'
1010

1111
repositories {
1212
mavenCentral()
@@ -24,17 +24,17 @@ ext {
2424
.filter(s -> !s.isEmpty())
2525
.map(Long::parseLong)
2626
.map(Instant::ofEpochSecond)
27-
.orElseGet(Instant::now)
27+
.orElseGet(Instant::now) as Instant
2828
formattedBuildDate = DateTimeFormatter.ISO_INSTANT.format(buildInstant)
29-
buildDate = (buildInstant as Instant).atZone(ZoneOffset.UTC) // for reproducible builds
29+
buildDate = buildInstant.atZone(ZoneOffset.UTC) // for reproducible builds
3030
}
3131

3232
dependencies {
33-
compileOnly "org.springframework.boot:spring-boot-starter-logging"
34-
compileOnly "org.springframework.boot:spring-boot-starter-validation"
35-
compileOnly "org.springframework.boot:spring-boot-autoconfigure"
36-
compileOnly "org.apache.grails:grails-core"
37-
testImplementation "org.apache.grails:grails-testing-support-web"
33+
compileOnly 'org.springframework.boot:spring-boot-starter-logging'
34+
compileOnly 'org.springframework.boot:spring-boot-starter-validation'
35+
compileOnly 'org.springframework.boot:spring-boot-autoconfigure'
36+
compileOnly 'org.apache.grails:grails-core'
37+
testImplementation 'org.apache.grails:grails-testing-support-web'
3838
}
3939

4040
java {
@@ -46,26 +46,20 @@ java {
4646
tasks.withType(Test).configureEach {
4747
useJUnitPlatform()
4848
testLogging {
49-
events "failed"
50-
exceptionFormat "full"
49+
events 'failed'
50+
exceptionFormat 'full'
5151
}
5252
}
5353
groovydoc {
5454
excludes = ['**/*GrailsPlugin.groovy', '**/Application.groovy']
55-
link('http://download.oracle.com/javase/8/docs/api/', 'java.', 'org.xml', 'javax.', 'jakarta.', 'org.xml.')
56-
link("https://docs.spring.io/spring/docs/4.2.x/javadoc-api/", 'org.springframework')
57-
link('http://groovy.codehaus.org/api/', 'groovy.', 'org.codehaus.groovy.')
58-
link('https://docs.grails.org/3.3.x/api', 'grails.', 'org.grails.')
59-
link('https://testing.grails.org/latest/api', 'grails.testing.', 'org.grails.testing.')
60-
link('http://gorm.grails.org/latest/hibernate/api/', 'grails.gorm', 'grails.orm', 'org.grails.datastore', 'org.grails.orm')
6155
}
6256

6357
grailsPublish {
6458
githubSlug = 'grails-plugins/i18n-enums'
6559
license {
6660
name = 'Apache-2.0'
6761
}
68-
title = "I18n-Enums Plugin"
62+
title = 'I18n-Enums Plugin'
6963
desc = 'Adds an annotation usable on Enums to easy add and implement the MessageSourceResolvable interface in an standard way throughout a grails project.'
7064
developers = [
7165
sbglasius : 'Søren Berg Glasius',

0 commit comments

Comments
 (0)