Skip to content

Commit 5da65ad

Browse files
authored
Merge pull request #1884 from grails/consolidate-neo4j-graphql
Consolidate grails-data-graphql and grails-data-neo4j into grails-data-mapping
2 parents 846b324 + f5aefb6 commit 5da65ad

File tree

849 files changed

+112526
-0
lines changed

Some content is hidden

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

849 files changed

+112526
-0
lines changed

grails-data-graphql/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Gorm GraphQL
2+
3+
This project has not been updated for Grails 7 yet and is not included in the build.
4+
5+
## An automatic GraphQL schema generator for GORM
6+
7+
Current documentation https://grails.github.io/gorm-graphql/latest/guide/index.html
8+
9+
10+
### Dependencies
11+
12+
- [Graphql Java](https://github.com/graphql-java/graphql-java)

grails-data-graphql/build.gradle

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
buildscript {
2+
repositories {
3+
maven { url "https://repo.grails.org/grails/core" }
4+
}
5+
dependencies {
6+
classpath "org.grails:grails-gradle-plugin:$grailsGradlePluginVersion"
7+
classpath "org.grails.plugins:views-gradle:$viewGradleVersion"
8+
classpath "org.grails.plugins:views-json:$viewsJsonVersion"
9+
classpath "org.grails:grails-docs:${project.ext.properties.grailsDocsVersion ?: grailsVersion}"
10+
classpath "io.github.gradle-nexus:publish-plugin:1.3.0"
11+
}
12+
}
13+
14+
repositories {
15+
mavenCentral()
16+
maven { url "https://repo.grails.org/grails/core" }
17+
}
18+
19+
version project.projectVersion
20+
21+
ext {
22+
commonBuild = 'https://raw.githubusercontent.com/grails/grails-common-build/v2.0.1'
23+
}
24+
25+
subprojects {
26+
27+
version project.projectVersion
28+
29+
ext {
30+
userOrg = "grails"
31+
isGrailsPlugin = name.startsWith('grails-plugin')
32+
isBuildSnapshot = version.toString().endsWith("-SNAPSHOT")
33+
}
34+
35+
repositories {
36+
maven { url "https://repo.grails.org/grails/core" }
37+
}
38+
39+
tasks.withType(GroovyCompile).configureEach {
40+
configure(groovyOptions) {
41+
forkOptions.jvmArgs = ['-Xmx1024m']
42+
}
43+
}
44+
45+
tasks.withType(Test).configureEach {
46+
testLogging {
47+
events "failed"
48+
exceptionFormat "full"
49+
showStandardStreams true
50+
}
51+
}
52+
53+
if (project.name.startsWith("examples-")) {
54+
if (project.name.startsWith("examples-grails-")) {
55+
apply plugin: "org.grails.grails-web"
56+
}
57+
return
58+
}
59+
60+
if (isGrailsPlugin) {
61+
group "org.grails.plugins"
62+
} else {
63+
group "org.grails"
64+
}
65+
66+
if (isGrailsPlugin) {
67+
apply plugin: 'groovy'
68+
apply plugin: 'eclipse'
69+
apply plugin: 'idea'
70+
apply plugin: 'java-library'
71+
apply plugin: "org.grails.grails-plugin"
72+
73+
sourceCompatibility = 1.11
74+
targetCompatibility = 1.11
75+
} else {
76+
apply from: "${commonBuild}/common-project.gradle"
77+
}
78+
79+
dependencies {
80+
implementation "com.graphql-java:graphql-java:$graphqlJavaVersion"
81+
testImplementation "org.codehaus.groovy:groovy-test:$groovyVersion"
82+
testImplementation "io.projectreactor:reactor-test:3.6.1"
83+
testImplementation("org.spockframework:spock-core:$spockVersion")
84+
implementation 'org.grails:grails-datastore-gorm:7.3.4'
85+
}
86+
}
87+
88+
apply from: "${commonBuild}/common-publishing.gradle"
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
repositories {
2+
mavenCentral()
3+
maven { url "https://repo.grails.org/grails/core" }
4+
}
5+
apply plugin: 'codenarc'
6+
7+
dependencies {
8+
documentation "org.codehaus.groovy:groovy-cli-picocli:$groovyVersion"
9+
10+
api "org.grails:grails-datastore-gorm:${gormVersion}"
11+
api "com.graphql-java:graphql-java:$graphqlJavaVersion"
12+
api "com.graphql-java:graphql-java-extended-scalars:$graphqlJavaScalarExtVersion"
13+
api 'com.github.javaparser:javaparser-core:3.25.7'
14+
api "org.grails.plugins:views-json:2.3.2"
15+
api 'org.javassist:javassist:3.29.2-GA'
16+
17+
codenarc "org.codenarc:CodeNarc:$codenarcVersion"
18+
19+
testImplementation "org.grails:grails-datastore-gorm-hibernate5:${gormHibernateVersion}"
20+
testImplementation "org.grails:grails-datastore-gorm-mongodb:${gormMongoDbVersion}"
21+
testImplementation 'com.github.fakemongo:fongo:2.1.1'
22+
testImplementation 'com.h2database:h2:2.2.224'
23+
testImplementation "org.apache.tomcat:tomcat-jdbc:8.5.97"
24+
testImplementation "org.apache.tomcat.embed:tomcat-embed-logging-log4j:8.5.2"
25+
testImplementation "org.slf4j:slf4j-api:$slf4jVersion"
26+
}
27+
28+
targetCompatibility = 1.8
29+
sourceCompatibility = 1.8
30+
31+
codenarc {
32+
toolVersion = codenarcVersion
33+
configFile = file("${projectDir}/config/codenarc/rules.groovy")
34+
maxPriority1Violations = 0
35+
maxPriority2Violations = 0
36+
maxPriority3Violations = 0
37+
}
38+
39+
codenarcMain {
40+
exclude '**/CustomScalars.groovy'
41+
}
42+
43+
codenarcTest {
44+
ignoreFailures = true
45+
}

0 commit comments

Comments
 (0)