Skip to content

Commit 3a4a317

Browse files
authored
Merge pull request #94 from grails/grailsupgarde
Update to Grails 5
2 parents 029d3d1 + 7951104 commit 3a4a317

File tree

5 files changed

+7
-20
lines changed

5 files changed

+7
-20
lines changed

examples/redis-demo/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ buildscript {
33
maven { url "https://repo.grails.org/grails/core" }
44
}
55
dependencies {
6-
classpath "org.grails:grails-gradle-plugin:$grailsVersion"
6+
classpath "org.grails:grails-gradle-plugin:$grailsGradlePluginVersion"
77
classpath "com.bertramlabs.plugins:asset-pipeline-gradle:3.2.4"
88
}
99
}

examples/redis-demo/src/test/groovy/com/example/MemoizeAnnotationSpec.groovy

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,18 @@ package com.example
22

33
import grails.plugins.redis.RedisService
44
import grails.testing.mixin.integration.Integration
5-
import org.junit.Test
65
import org.springframework.beans.factory.annotation.Autowired
7-
import spock.lang.Ignore
86
import spock.lang.Specification
97

108
@Integration
11-
@Ignore
129
class MemoizeAnnotationSpec extends Specification {
1310

14-
@Autowired
15-
RedisService redisService
11+
@Autowired RedisService redisService
1612

17-
public void setup() {
13+
void setup() {
1814
redisService.flushDB()
1915
}
2016

21-
@Test
2217
void testMemoizeAnnotationExpire() {
2318
given:
2419
// set up test class

examples/redis-demo/src/test/groovy/com/example/RedisIntegrationSpec.groovy

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
package com.example
22

3-
3+
import grails.core.support.proxy.ProxyHandler
44
import grails.plugins.redis.RedisService
55
import grails.testing.mixin.integration.Integration
6-
import org.grails.datastore.mapping.proxy.ProxyHandler
76
import org.springframework.beans.factory.annotation.Autowired
87
import org.springframework.test.annotation.Rollback
98
import spock.lang.Specification

gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
projectVersion=3.0.0-SNAPSHOT
2-
grailsVersion=4.1.1
2+
grailsVersion=5.3.2
3+
grailsGradlePluginVersion=5.3.0
34
org.gradle.daemon=true
45
org.gradle.parallel=true
56
org.gradle.jvmargs=-Dfile.encoding=UTF-8 -Xmx1024M

plugin/build.gradle

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
buildscript {
2-
ext {
3-
grailsVersion = project.grailsVersion
4-
}
52
repositories {
63
maven { url "https://repo.grails.org/grails/core" }
74
}
85
dependencies {
9-
classpath "org.grails:grails-gradle-plugin:$grailsVersion"
6+
classpath "org.grails:grails-gradle-plugin:$grailsGradlePluginVersion"
107
}
118
}
129

@@ -21,11 +18,6 @@ plugins {
2118
apply plugin: "org.grails.grails-plugin"
2219
apply plugin: "org.grails.grails-gsp"
2320

24-
25-
ext {
26-
grailsVersion = project.grailsVersion
27-
}
28-
2921
version project.projectVersion
3022
group "org.grails.plugins"
3123

0 commit comments

Comments
 (0)