File tree Expand file tree Collapse file tree 12 files changed +54
-138
lines changed
main/java/com/graphql/java/examples/springboot
test/java/com/graphql/java/examples/springboot
src/test/java/com/graphql/java/subscription Expand file tree Collapse file tree 12 files changed +54
-138
lines changed Original file line number Diff line number Diff line change 11task myWrapper (type : Wrapper ) {
22 gradleVersion = ' 4.10.2'
33 distributionUrl = " https://services.gradle.org/distributions/gradle-${ gradleVersion} -all.zip"
4- }
4+ }
5+
6+ buildscript {
7+ ext {
8+ springBootVersion = ' 2.0.5.RELEASE'
9+ }
10+ repositories {
11+ mavenCentral()
12+ }
13+ dependencies {
14+ classpath(" org.springframework.boot:spring-boot-gradle-plugin:${ springBootVersion} " )
15+ }
16+ }
17+
18+ subprojects {
19+ repositories {
20+ mavenCentral()
21+ maven { url " http://dl.bintray.com/andimarek/graphql-java" }
22+ }
23+
24+ apply plugin : ' java'
25+ apply plugin : ' eclipse'
26+ apply plugin : ' org.springframework.boot'
27+ apply plugin : ' io.spring.dependency-management'
28+
29+ dependencies {
30+ compile " com.graphql-java:graphql-java:10.0"
31+ compile ' com.google.guava:guava:26.0-jre'
32+ testCompile(' org.springframework.boot:spring-boot-starter-test' )
33+ }
34+ }
35+
Original file line number Diff line number Diff line change 1- buildscript {
2- ext {
3- springBootVersion = ' 2.0.5.RELEASE'
4- }
5- repositories {
6- mavenCentral()
7- }
8- dependencies {
9- classpath(" org.springframework.boot:spring-boot-gradle-plugin:${ springBootVersion} " )
10- }
11- }
12-
13- apply plugin : ' java'
14- apply plugin : ' eclipse'
15- apply plugin : ' org.springframework.boot'
16- apply plugin : ' io.spring.dependency-management'
17-
181group = ' com.graphql-java'
192version = ' 0.0.1-SNAPSHOT'
203sourceCompatibility = 1.8
214
22- repositories {
23- mavenCentral()
24- maven { url " http://dl.bintray.com/andimarek/graphql-java" }
25- }
26-
27-
285dependencies {
296 compile(' org.springframework.boot:spring-boot-starter-webflux' )
307 compile " com.graphql-java:graphql-java:2018-09-16T01-27-46-27a6e44"
31- compile ' com.google.guava:guava:26.0-jre'
32- testCompile(' org.springframework.boot:spring-boot-starter-test' )
338 testImplementation(' io.projectreactor:reactor-test' )
34-
359}
Original file line number Diff line number Diff line change 1- buildscript {
2- ext {
3- springBootVersion = ' 2.0.5.RELEASE'
4- }
5- repositories {
6- mavenCentral()
7- }
8- dependencies {
9- classpath(" org.springframework.boot:spring-boot-gradle-plugin:${ springBootVersion} " )
10- }
11- }
12-
13- apply plugin : ' java'
14- apply plugin : ' eclipse'
15- apply plugin : ' org.springframework.boot'
16- apply plugin : ' io.spring.dependency-management'
17-
181group = ' com.graphql-java'
192version = ' 0.0.1-SNAPSHOT'
203sourceCompatibility = 1.8
214
22- repositories {
23- mavenCentral()
24- maven { url " http://dl.bintray.com/andimarek/graphql-java" }
25- }
26-
27-
285dependencies {
296 compile(' org.springframework.boot:spring-boot-starter-web' )
307 compile(' org.springframework.boot:spring-boot-starter-data-jpa' )
318 compile(" com.h2database:h2" )
32- compile " com.graphql-java:graphql-java:10.0"
33- compile ' com.google.guava:guava:26.0-jre'
34- compile(" org.springframework.boot:spring-boot-devtools" )
35- testCompile(' org.springframework.boot:spring-boot-starter-test' )
369}
Original file line number Diff line number Diff line change 1- buildscript {
2- ext {
3- springBootVersion = ' 2.0.5.RELEASE'
4- }
5- repositories {
6- mavenCentral()
7- }
8- dependencies {
9- classpath(" org.springframework.boot:spring-boot-gradle-plugin:${ springBootVersion} " )
10- }
11- }
12-
13- apply plugin : ' java'
14- apply plugin : ' eclipse'
15- apply plugin : ' org.springframework.boot'
16- apply plugin : ' io.spring.dependency-management'
17-
181group = ' com.graphql-java'
192version = ' 0.0.1-SNAPSHOT'
203sourceCompatibility = 1.8
214
22- repositories {
23- mavenCentral()
24- maven { url " http://dl.bintray.com/andimarek/graphql-java" }
25- }
26-
27-
285dependencies {
296 compile(' org.springframework.boot:spring-boot-starter-web' )
30- compile " com.graphql-java:graphql-java:10.0"
31- compile ' com.google.guava:guava:26.0-jre'
32- testCompile(' org.springframework.boot:spring-boot-starter-test' )
337}
Original file line number Diff line number Diff line change 1- buildscript {
2- ext {
3- springBootVersion = ' 2.0.5.RELEASE'
4- }
5- repositories {
6- mavenCentral()
7- }
8- dependencies {
9- classpath(" org.springframework.boot:spring-boot-gradle-plugin:${ springBootVersion} " )
10- }
11- }
12-
13- apply plugin : ' java'
14- apply plugin : ' eclipse'
15- apply plugin : ' org.springframework.boot'
16- apply plugin : ' io.spring.dependency-management'
17-
181group = ' com.graphql-java.examples'
192version = ' 0.0.1-SNAPSHOT'
203sourceCompatibility = 1.8
214
22- repositories {
23- mavenCentral()
24- }
25-
26-
275dependencies {
28- implementation(' org.springframework.boot:spring-boot-starter-web' )
29- implementation(' com.graphql-java:graphql-java:10.0' )
30- implementation(' com.google.guava:guava:26.0-jre' )
31- testImplementation(' org.springframework.boot:spring-boot-starter-test' )
6+ compile(' org.springframework.boot:spring-boot-starter-web' )
327}
Original file line number Diff line number Diff line change 1- package graphql .examples .springboot ;
1+ package com . graphql . java .examples .springboot ;
22
33import org .springframework .boot .SpringApplication ;
44import org .springframework .boot .autoconfigure .SpringBootApplication ;
Original file line number Diff line number Diff line change 1- package graphql .examples .springboot ;
1+ package com . graphql . java .examples .springboot ;
22
33import com .fasterxml .jackson .core .type .TypeReference ;
44import com .fasterxml .jackson .databind .ObjectMapper ;
Original file line number Diff line number Diff line change 1- package graphql .examples .springboot ;
1+ package com . graphql . java .examples .springboot ;
22
33import graphql .schema .DataFetcher ;
44import org .springframework .stereotype .Component ;
Original file line number Diff line number Diff line change 1- package graphql .examples .springboot ;
1+ package com . graphql . java .examples .springboot ;
22
33import com .google .common .base .Charsets ;
44import com .google .common .io .Resources ;
Original file line number Diff line number Diff line change 1+ package com .graphql .java .examples .springboot ;
2+
3+ import org .junit .Test ;
4+ import org .junit .runner .RunWith ;
5+ import org .springframework .boot .test .context .SpringBootTest ;
6+ import org .springframework .test .context .junit4 .SpringRunner ;
7+
8+ @ RunWith (SpringRunner .class )
9+ @ SpringBootTest
10+ public class ApplicationTests {
11+
12+ @ Test
13+ public void contextLoads () {
14+ }
15+
16+ }
You can’t perform that action at this time.
0 commit comments