Skip to content

Commit 9ad47a1

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 32ecbd8 commit 9ad47a1

File tree

19 files changed

+60
-52
lines changed

19 files changed

+60
-52
lines changed

build.gradle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ buildscript {
1919
classpath "org.graceframework:grace-gradle-plugin:$graceVersion"
2020
classpath "org.graceframework.plugins:asset-pipeline-gradle:$assetPipelineVersion"
2121
classpath "com.github.erdi:webdriver-binaries-gradle-plugin:$webdriverBinariesVersion"
22-
classpath "org.graceframework.plugins:views-gradle:$graceViewsVersion"
2322
classpath "io.github.gradle-nexus:publish-plugin:2.0.0"
2423
}
2524
}
@@ -109,7 +108,7 @@ subprojects { project ->
109108

110109
if (project.name == "examples-grace-test-data-service") {
111110
apply plugin:"org.graceframework.grace-web"
112-
apply plugin:"org.graceframework.plugins.views-json"
111+
apply plugin:"org.graceframework.grace-json"
113112
}
114113

115114
if (project.name == "examples-springboot-mongodb") {
@@ -325,7 +324,7 @@ tasks.withType(Groovydoc) {
325324
classpath += configurations.documentation
326325
}
327326

328-
docs {
327+
publishGuide {
329328
dependsOn groovydoc
330329
sourceDir = project.file('src/docs')
331330
}

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+
}

0 commit comments

Comments
 (0)