Skip to content

Commit 9be478d

Browse files
committed
Build against to Grace 2024.0.0 snapshots
- Migrate to the new scaffolding, fields, cache, events, hibernate plugins - Upgrade to Groovy 4.0.29 - Rename app/init to app/boot
1 parent 7492974 commit 9be478d

File tree

16 files changed

+53
-43
lines changed

16 files changed

+53
-43
lines changed

examples/grace-hibernate5-mongodb/app/init/functional/tests/Application.groovy renamed to examples/grace-hibernate5-mongodb/app/boot/functional/tests/Application.groovy

File renamed without changes.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package functional.tests
2+
3+
class BootStrap {
4+
5+
def init() {
6+
Book.DB.drop()
7+
}
8+
9+
def destroy() {
10+
}
11+
12+
}

examples/grace-hibernate5-mongodb/app/init/BootStrap.groovy

Lines changed: 0 additions & 10 deletions
This file was deleted.

examples/grace-hibernate5-mongodb/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ dependencies {
77
implementation "org.graceframework:grace-boot"
88
implementation "org.graceframework:grace-plugin-gsp"
99
implementation project(":grace-plugin")
10-
implementation "org.graceframework.plugins:hibernate"
10+
implementation "org.graceframework:grace-boot-hibernate"
1111

1212
runtimeOnly "org.graceframework.plugins:asset-pipeline-plugin:$assetPipelineVersion"
1313
runtimeOnly "com.h2database:h2"
14-
runtimeOnly "org.graceframework.plugins:scaffolding"
15-
runtimeOnly "org.graceframework.plugins:fields"
14+
runtimeOnly "org.graceframework:grace-plugin-scaffolding"
15+
runtimeOnly "org.graceframework:grace-plugin-fields"
1616

1717
testImplementation "org.graceframework:grace-test-support"
1818
testImplementation "org.testcontainers:mongodb:1.19.0"

examples/grace-mongodb-database-per-tenant/app/init/functional/tests/Application.groovy renamed to examples/grace-mongodb-database-per-tenant/app/boot/functional/tests/Application.groovy

File renamed without changes.

examples/grace-mongodb-database-per-tenant/app/init/BootStrap.groovy renamed to examples/grace-mongodb-database-per-tenant/app/boot/functional/tests/BootStrap.groovy

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1+
package functional.tests
2+
13
import org.grails.datastore.mapping.mongo.MongoDatastore
24
import org.springframework.beans.factory.annotation.Autowired
35

46
class BootStrap {
57

68
@Autowired MongoDatastore mongoDatastore
79

8-
def init = { servletContext ->
10+
def init() {
911
mongoDatastore.mongoClient.getDatabase( mongoDatastore.defaultDatabase ).drop()
1012
}
11-
def destroy = {
13+
14+
def destroy() {
1215
}
16+
1317
}

examples/grace-mongodb-database-per-tenant/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ dependencies {
1111
runtimeOnly "org.graceframework.plugins:asset-pipeline-plugin:$assetPipelineVersion"
1212
runtimeOnly "com.h2database:h2"
1313

14-
runtimeOnly "org.graceframework.plugins:scaffolding"
15-
runtimeOnly "org.graceframework.plugins:fields"
14+
runtimeOnly "org.graceframework:grace-plugin-scaffolding"
15+
runtimeOnly "org.graceframework:grace-plugin-fields"
1616

1717
testImplementation "org.graceframework:grace-test-support"
1818
testImplementation "org.graceframework.plugins:geb"

examples/grace-mongodb/app/init/functional/tests/Application.groovy renamed to examples/grace-mongodb/app/boot/functional/tests/Application.groovy

File renamed without changes.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package functional.tests
2+
3+
class BootStrap {
4+
5+
def init() {
6+
Book.DB.drop()
7+
}
8+
9+
def destroy() {
10+
}
11+
12+
}

examples/grace-mongodb/app/init/BootStrap.groovy

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)