Skip to content

Commit a1a5339

Browse files
authored
Merge pull request #13 from grails-plugins/chore/post-review-fixes
Post review fixes
2 parents 22da4dc + 245fd5e commit a1a5339

File tree

7 files changed

+19
-29
lines changed

7 files changed

+19
-29
lines changed

functional-tests/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ dependencies {
5252
}
5353

5454
java {
55-
sourceCompatibility = JavaVersion.toVersion("11")
55+
sourceCompatibility = JavaVersion.toVersion(javaVersion)
5656
}
5757
tasks.withType(Test).configureEach {
5858
useJUnitPlatform()

gradle.properties

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
projectVersion=6.0.0-SNAPSHOT
2-
grailsVersion=6.2.3
3-
javaVersion=17
4-
asciidoctorGradlePluginVersion=4.0.4
5-
6-
grailsGradlePluginVersion=6.2.4
7-
version=0.1
2+
javaVersion=11
83

94
# This prevents the Grails Gradle Plugin from unnecessarily excluding slf4j-simple in the generated POMs
105
# https://github.com/grails/grails-gradle-plugin/issues/222

gradle/buildsrc.libs.versions.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[versions]
2-
grails-gradle-plugin = '6.2.0'
3-
nexus-publish-gradle-plugin = '1.3.0'
4-
asciidoctor-gradle-plugin = '4.0.2'
2+
grails-gradle-plugin = '6.2.4'
3+
nexus-publish-gradle-plugin = '2.0.0'
4+
asciidoctor-gradle-plugin = '4.0.4'
55

66
[libraries]
77
grails-gradle-plugin = { module = 'org.grails:grails-gradle-plugin', version.ref = 'grails-gradle-plugin' }

gradle/grails-plugin-config.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@ tasks.named('bootJar') {
44
tasks.named('jar', Jar) {
55
enabled = true // Enable the jar task again, as the bootJar task has been disabled
66
archiveClassifier = '' // Remove '-plain' suffix from jar file name
7-
exclude('_testemails', 'messages*.properties')
87
}

gradle/java-config.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
java {
2-
sourceCompatibility = JavaVersion.VERSION_11
2+
sourceCompatibility = JavaVersion.toVersion(javaVersion)
33
withSourcesJar()
44
withJavadocJar()
55
}

gradle/publishing.gradle

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ publishing {
88
publications {
99
register('grailsPlugin', MavenPublication) {
1010
from javaComponent.get()
11-
versionMapping {
12-
usage('java-api') { fromResolutionOf('runtimeClasspath') }
13-
usage('java-runtime') { fromResolutionResult() }
14-
}
1511
pom {
1612
name = 'Grails Cache Redis plugin'
1713
description = 'Provides setup for Redis caching'

src/main/groovy/grails/plugin/cache/redis/GrailsRedisCache.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ public class GrailsRedisCache implements GrailsCache {
5555
/**
5656
* Constructor.
5757
*
58-
* @param name cache name
59-
* @param prefix prefix to use
58+
* @param name cache name
59+
* @param prefix prefix to use
6060
* @param template Spring template
61-
* @param ttl time to live for cache
61+
* @param ttl time to live for cache
6262
*/
6363
public GrailsRedisCache(String name, CacheKeyPrefix prefix, RedisTemplate<? extends Object, ? extends Object> template, Long ttl) {
6464
Assert.hasText(name, "non-empty cache name is required");
@@ -114,16 +114,16 @@ public T doInRedis(RedisConnection connection) throws DataAccessException {
114114
}, true);
115115
}
116116

117-
@Override
118-
public <T> T get(final Object key, Callable<T> valueLoader) {
119-
/*
120-
* FIXME: I had to add this method override in order to satisfy
121-
* the Spring Cache interface. It looks like this method signature
122-
* including the Callable parameter was added sometime after the
123-
* original cache-redis plugin was developed (?).
124-
*/
125-
return (T) this.get(key);
126-
}
117+
@Override
118+
public <T> T get(final Object key, Callable<T> valueLoader) {
119+
/*
120+
* FIXME: I had to add this method override in order to satisfy
121+
* the Spring Cache interface. It looks like this method signature
122+
* including the Callable parameter was added sometime after the
123+
* original cache-redis plugin was developed (?).
124+
*/
125+
return (T) this.get(key);
126+
}
127127

128128
@SuppressWarnings("unchecked")
129129
@Override

0 commit comments

Comments
 (0)