Skip to content

Commit f643155

Browse files
committed
Update build scripts
1 parent 30649df commit f643155

File tree

14 files changed

+40
-88
lines changed

14 files changed

+40
-88
lines changed

.github/workflows/gradle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
uses: gradle/actions/setup-gradle@017a9effdb900e5b5b2fddfb590a105619dca3c3 # v4.4.2
3434
- name: Run Build
3535
id: build
36-
run: ./gradlew build -x codenarcMain -x codenarcTest -x checkstyleMain -x checkstyleTest
36+
run: ./gradlew build -x integrationTest
3737
publish:
3838
if: github.event_name == 'push'
3939
needs: ["build"]

build.gradle

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -281,43 +281,3 @@ subprojects { Project subproject ->
281281
}
282282

283283
}
284-
285-
286-
def cleanTask = project.tasks.findByName('clean')
287-
if (cleanTask == null) {
288-
task clean(type: Delete) {
289-
delete(buildDir)
290-
}
291-
}
292-
else {
293-
cleanTask.doLast {
294-
ant.delete(dir: 'build/docs')
295-
}
296-
}
297-
298-
tasks.withType(Groovydoc) {
299-
group = 'Documentation'
300-
docTitle = "Grace Data Hibernate - ${project.version}"
301-
destinationDir = project.file('build/docs/manual/api')
302-
def files = []
303-
project.rootProject.subprojects
304-
.findAll { !it.name != 'docs' && !it.name.startsWith('examples') }
305-
.each { subproject ->
306-
if(subproject.file('src/main/groovy').exists()) {
307-
files += subproject.files('src/main/groovy')
308-
}
309-
if(subproject.file('src/main/java').exists()) {
310-
files += subproject.files('src/main/java')
311-
}
312-
}
313-
if (project.file('src/main/groovy').exists()) {
314-
files += project.files('src/main/groovy')
315-
}
316-
source = files
317-
classpath += configurations.documentation
318-
}
319-
320-
publishGuide {
321-
dependsOn groovydoc
322-
sourceDir = project.file('src/docs')
323-
}

examples/grace-data-service/app/views/application/index.gson

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ model {
1111
json {
1212
message "Welcome to Grace!"
1313
environment Environment.current.name
14-
appversion grailsApplication.metadata.getApplicationVersion()
14+
appversion Metadata.current.getApplicationVersion()
1515
grailsversion GrailsUtil.grailsVersion
1616
appprofile grailsApplication.config.getProperty('grails.profile')
1717
groovyversion GroovySystem.getVersion()

examples/grace-data-service/build.gradle

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@ buildscript {
1515
}
1616
dependencies {
1717
classpath "org.graceframework:grace-gradle-plugin:$graceVersion"
18-
classpath "org.graceframework.plugins:views-gradle:$graceViewsVersion"
1918
}
2019
}
2120

2221
group = "examples"
2322

2423
apply plugin: "org.graceframework.grace-web"
25-
apply plugin: "org.graceframework.plugins.views-json"
24+
apply plugin: "org.graceframework.grace-json"
2625

2726
dependencies {
2827
implementation "org.springframework.boot:spring-boot-starter-actuator"
2928
implementation "org.springframework.boot:spring-boot-starter-logging"
3029
implementation "org.springframework.boot:spring-boot-starter-web"
3130
implementation "org.graceframework:grace-boot"
31+
implementation "org.graceframework:grace-boot-hibernate"
3232
implementation "org.graceframework:grace-core"
3333
implementation "org.graceframework:grace-logging"
3434
implementation "org.graceframework:grace-plugin-codecs"
@@ -42,10 +42,9 @@ dependencies {
4242
implementation "org.graceframework:grace-plugin-rest"
4343
implementation "org.graceframework:grace-plugin-services"
4444
implementation "org.graceframework:grace-plugin-url-mappings"
45-
// implementation "org.graceframework.plugins:cache"
45+
// implementation "org.graceframework:grace-plugin-cache"
4646
implementation "org.graceframework:grace-plugin-events"
47-
implementation "org.graceframework.plugins:views-json"
48-
implementation project(":hibernate")
47+
implementation "org.graceframework:grace-views-json"
4948
runtimeOnly 'com.h2database:h2'
5049
profile "org.graceframework.profiles:rest-api"
5150
testImplementation "org.graceframework:grace-test-support"

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

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,14 @@ group = "examples"
2525
apply plugin: "org.graceframework.grace-web"
2626
apply plugin: "org.graceframework.grace-gsp"
2727
apply plugin: "org.graceframework.asset-pipeline"
28-
apply plugin: "org.graceframework.plugins.views-json"
28+
apply plugin: "org.graceframework.grace-json"
2929

3030
dependencies {
3131
implementation "org.springframework.boot:spring-boot-starter-actuator"
3232
implementation "org.springframework.boot:spring-boot-starter-logging"
3333
implementation "org.springframework.boot:spring-boot-starter-web"
3434
implementation "org.graceframework:grace-boot"
35+
implementation "org.graceframework:grace-boot-hibernate"
3536
implementation "org.graceframework:grace-core"
3637
implementation "org.graceframework:grace-logging"
3738
implementation "org.graceframework:grace-plugin-codecs"
@@ -46,15 +47,13 @@ dependencies {
4647
implementation "org.graceframework:grace-plugin-rest"
4748
implementation "org.graceframework:grace-plugin-services"
4849
implementation "org.graceframework:grace-plugin-url-mappings"
49-
implementation project(":hibernate")
50-
// implementation "org.graceframework.plugins:cache"
50+
// implementation "org.graceframework:grace-plugin-cache"
5151
implementation "org.graceframework:grace-plugin-events"
52-
runtimeOnly "org.graceframework.plugins:fields"
53-
runtimeOnly "org.graceframework.plugins:scaffolding"
52+
runtimeOnly "org.graceframework:grace-plugin-fields"
53+
runtimeOnly "org.graceframework:grace-plugin-scaffolding"
5454
runtimeOnly "org.graceframework.plugins:asset-pipeline-plugin"
5555
runtimeOnly "com.h2database:h2"
56-
implementation "org.graceframework.plugins:views-json"
57-
implementation "org.graceframework.plugins:views-json-templates"
56+
implementation "org.graceframework:grace-views-json"
5857
profile "org.graceframework.profiles:rest-api"
5958
testImplementation "org.graceframework:grace-test-support"
6059
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package functional.tests
22

3-
abstract class Person {
3+
class Person {
44

55
}

examples/grace-hibernate5/build.gradle

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ dependencies {
4141
implementation "org.springframework.boot:spring-boot-starter-web"
4242
implementation "org.graceframework:grace-core"
4343
implementation "org.graceframework:grace-boot"
44+
implementation "org.graceframework:grace-boot-hibernate"
4445
implementation "org.graceframework:grace-logging"
4546
implementation "org.graceframework:grace-plugin-core"
4647
implementation "org.graceframework:grace-plugin-codecs"
@@ -56,11 +57,10 @@ dependencies {
5657
implementation "org.graceframework:grace-plugin-services"
5758
implementation "org.graceframework:grace-plugin-url-mappings"
5859
implementation "org.graceframework:grace-plugin-async"
59-
// implementation "org.graceframework.plugins:cache"
60+
// implementation "org.graceframework:grace-plugin-cache"
6061
implementation "org.graceframework:grace-plugin-events"
61-
implementation "org.graceframework.plugins:fields"
62-
implementation "org.graceframework.plugins:scaffolding"
63-
implementation project(":hibernate")
62+
implementation "org.graceframework:grace-plugin-fields"
63+
implementation "org.graceframework:grace-plugin-scaffolding"
6464
runtimeOnly "com.h2database:h2"
6565
implementation "net.sf.ehcache:ehcache:2.10.6"
6666
implementation ("org.hibernate:hibernate-ehcache:$hibernateCoreVersion") {
@@ -107,7 +107,9 @@ tasks.withType(Test) {
107107
// version = '126.0.6478.126'
108108
// fallbackTo32Bit = true
109109
// }
110-
// geckodriver '0.33.0'
110+
// geckodriver {
111+
// version = '0.33.0'
112+
// }
111113
// }
112114

113115
tasks.withType(Test) {

examples/grace-hibernate5/src/integration-test/resources/GebConfig.groovy

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ import org.openqa.selenium.chrome.ChromeDriver
22
import org.openqa.selenium.chrome.ChromeOptions
33
import org.openqa.selenium.firefox.FirefoxDriver
44
import org.openqa.selenium.firefox.FirefoxOptions
5-
import org.openqa.selenium.safari.SafariDriver
5+
// import org.openqa.selenium.safari.SafariDriver
66

77
environments {
88

99
// You need to configure in Safari -> Develop -> Allowed Remote Automation
10-
safari {
11-
driver = { new SafariDriver() }
12-
}
10+
// safari {
11+
// driver = { new SafariDriver() }
12+
// }
1313

1414
// run via “./gradlew -Dgeb.env=chrome iT”
1515
chrome {

examples/grace-partitioned-multi-tenancy/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ dependencies {
4141
implementation "org.springframework.boot:spring-boot-starter-web"
4242
implementation "org.graceframework:grace-core"
4343
implementation "org.graceframework:grace-boot"
44+
implementation "org.graceframework:grace-boot-hibernate"
4445
implementation "org.graceframework:grace-logging"
4546
implementation "org.graceframework:grace-plugin-core"
4647
implementation "org.graceframework:grace-plugin-codecs"
@@ -56,11 +57,10 @@ dependencies {
5657
implementation "org.graceframework:grace-plugin-services"
5758
implementation "org.graceframework:grace-plugin-url-mappings"
5859
implementation "org.graceframework:grace-plugin-async"
59-
// implementation "org.graceframework.plugins:cache"
60+
// implementation "org.graceframework:grace-plugin-cache"
6061
implementation "org.graceframework:grace-plugin-events"
61-
implementation "org.graceframework.plugins:fields"
62-
implementation "org.graceframework.plugins:scaffolding"
63-
implementation project(":hibernate")
62+
implementation "org.graceframework:grace-plugin-fields"
63+
implementation "org.graceframework:grace-plugin-scaffolding"
6464
profile "org.graceframework.profiles:web"
6565
runtimeOnly "org.graceframework.plugins:asset-pipeline-plugin"
6666
runtimeOnly "com.h2database:h2"

examples/grace-schema-per-tenant/build.gradle

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ buildscript {
1717
dependencies {
1818
classpath "org.graceframework:grace-gradle-plugin:$graceVersion"
1919
classpath "org.graceframework.plugins:asset-pipeline-gradle:$assetPipelineVersion"
20-
classpath "org.graceframework.plugins:views-gradle:$graceViewsVersion"
2120
// classpath "com.github.erdi:webdriver-binaries-gradle-plugin:3.2"
2221
}
2322
}
@@ -42,6 +41,7 @@ dependencies {
4241
implementation "org.springframework.boot:spring-boot-starter-web"
4342
implementation "org.graceframework:grace-core"
4443
implementation "org.graceframework:grace-boot"
44+
implementation "org.graceframework:grace-boot-hibernate"
4545
implementation "org.graceframework:grace-logging"
4646
implementation "org.graceframework:grace-plugin-core"
4747
implementation "org.graceframework:grace-plugin-codecs"
@@ -57,11 +57,10 @@ dependencies {
5757
implementation "org.graceframework:grace-plugin-services"
5858
implementation "org.graceframework:grace-plugin-url-mappings"
5959
implementation "org.graceframework:grace-plugin-async"
60-
// implementation "org.graceframework.plugins:cache"
60+
// implementation "org.graceframework:grace-plugin-cache"
6161
implementation "org.graceframework:grace-plugin-events"
62-
implementation "org.graceframework.plugins:fields"
63-
implementation "org.graceframework.plugins:scaffolding"
64-
implementation project(":hibernate")
62+
implementation "org.graceframework:grace-plugin-fields"
63+
implementation "org.graceframework:grace-plugin-scaffolding"
6564
profile "org.graceframework.profiles:web"
6665
runtimeOnly "org.graceframework.plugins:asset-pipeline-plugin"
6766
runtimeOnly "com.h2database:h2"

0 commit comments

Comments
 (0)