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

Commit 17ea39e

Browse files
Restore root project's Gradle files (#145)
1 parent fd21fbf commit 17ea39e

File tree

2 files changed

+124
-0
lines changed

2 files changed

+124
-0
lines changed

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"

gradle.properties

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
title=GORM GraphQL
2+
authors=James Kleeh
3+
projectVersion=4.0.0-SNAPSHOT
4+
projectDesc=Generates a GraphQL schema based on entities in GORM
5+
projectUrl=https://github.com/grails/gorm-graphql
6+
githubSlug=grails/gorm-graphql
7+
githubBranch=2.0.x
8+
developers=James Kleeh
9+
gormVersion=7.3.4
10+
gormHibernateVersion=7.3.1
11+
gormMongoDbVersion=7.0.0.RELEASE
12+
grailsVersion=6.1.0
13+
grailsGradlePluginVersion=6.1.1
14+
grailsDocsVersion=3.3.2
15+
groovyVersion=3.0.11
16+
junitJupiterVersion=5.9.3
17+
slf4jVersion=1.7.36
18+
spockVersion=2.1-groovy-3.0
19+
micronautVersion=3.10.3
20+
graphqlJavaVersion=20.7
21+
graphqlJavaScalarExtVersion=20.2
22+
codenarcVersion=3.3.0
23+
viewGradleVersion=2.3.2
24+
viewsJsonVersion=2.3.2
25+
servletApiVersion=4.0.1
26+
cglibNodepVersion=3.2.9
27+
objenesisVersion=3.3
28+
jansiVersion=2.4.1
29+
hibernateEcacheVersion=5.6.7.Final
30+
hibernateCoreVersion=5.6.11.Final
31+
org.gradle.daemon=true
32+
org.gradle.parallel=true
33+
org.gradle.jvmargs=-Dfile.encoding=UTF-8 -Xmx1024M
34+
35+
36+

0 commit comments

Comments
 (0)