Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit ca694e4

Browse files
committed
Move views-json-templates from grails-views to gorm-mongodb
1 parent c97a8c8 commit ca694e4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+10712
-8
lines changed

build.gradle

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,9 @@ subprojects { Project subproject ->
182182
apply plugin:"org.grails.plugins.views-json"
183183
}
184184

185+
compileJava.options.release = 17
186+
185187
java {
186-
toolchain {
187-
languageVersion = JavaLanguageVersion.of(17)
188-
}
189188
withJavadocJar()
190189
withSourcesJar()
191190
}
@@ -304,14 +303,17 @@ class PublishingConvention {
304303
PublishingConvention(Project project) {
305304
this.project = project
306305

307-
def name = project.name
306+
String name = project.name
308307
if(name.startsWith('grails') && name.endsWith('-plugin')) {
309308
name = 'mongodb'
310309
}
311-
if(name.startsWith('rx') && name.endsWith('-plugin')) {
310+
else if(name.startsWith('rx') && name.endsWith('-plugin')) {
312311
name = 'rx-mongodb'
313312
projectName = 'RxGORM for MongoDB'
314-
}
313+
}
314+
else if(name == 'json-templates') {
315+
projectName = 'JSON Views Templates'
316+
}
315317
projectArtifactId = name
316318
}
317319
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
plugins {
2+
id 'application'
3+
id 'groovy'
4+
id 'org.grails.grails-gsp'
5+
id 'org.grails.grails-web'
6+
}
7+
8+
group = 'functional.tests'
9+
10+
dependencies {
11+
12+
implementation 'org.grails.plugins:views-json'
13+
implementation 'org.grails.plugins:views-markup'
14+
15+
implementation 'org.grails:grails-core'
16+
implementation 'org.grails:grails-logging'
17+
implementation 'org.grails:grails-web-boot'
18+
19+
implementation 'org.grails:grails-plugin-databinding'
20+
implementation 'org.grails:grails-plugin-i18n'
21+
implementation 'org.grails:grails-plugin-interceptors'
22+
implementation 'org.grails:grails-plugin-rest'
23+
implementation 'org.grails:grails-plugin-services'
24+
implementation 'org.grails:grails-plugin-url-mappings'
25+
implementation 'org.grails:grails-plugin-validation'
26+
27+
implementation 'org.grails.plugins:gsp'
28+
implementation 'org.grails.plugins:hibernate5'
29+
implementation project(':grails-datastore-gorm-mongodb')
30+
31+
implementation 'org.springframework.boot:spring-boot-autoconfigure'
32+
implementation 'org.springframework.boot:spring-boot-starter-logging'
33+
implementation 'org.springframework.boot:spring-boot-starter-tomcat'
34+
35+
compileOnly 'jakarta.servlet:jakarta.servlet-api' // Provided by Tomcat
36+
37+
runtimeOnly project(':views-json-templates')
38+
runtimeOnly 'com.h2database:h2'
39+
runtimeOnly 'org.apache.tomcat:tomcat-jdbc'
40+
runtimeOnly 'com.bertramlabs.plugins:asset-pipeline-grails'
41+
42+
testImplementation 'org.grails:views-json-testing-support'
43+
testImplementation 'org.grails:grails-testing-support'
44+
45+
integrationTestImplementation 'com.fasterxml.jackson.core:jackson-databind'
46+
integrationTestImplementation 'io.micronaut:micronaut-http-client:4.6.5'
47+
integrationTestImplementation 'io.micronaut:micronaut-jackson-databind:4.6.5'
48+
}
49+
50+
compileJava.options.release = 17
14.6 KB
Loading
5.31 KB
Loading
9.9 KB
Binary file not shown.
9.93 KB
Loading
658 Bytes
Loading
659 Bytes
Loading
767 Bytes
Loading
755 Bytes
Loading

0 commit comments

Comments
 (0)