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 1
1
task myWrapper (type : Wrapper ) {
2
2
gradleVersion = ' 4.10.2'
3
3
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
-
18
1
group = ' com.graphql-java'
19
2
version = ' 0.0.1-SNAPSHOT'
20
3
sourceCompatibility = 1.8
21
4
22
- repositories {
23
- mavenCentral()
24
- maven { url " http://dl.bintray.com/andimarek/graphql-java" }
25
- }
26
-
27
-
28
5
dependencies {
29
6
compile(' org.springframework.boot:spring-boot-starter-webflux' )
30
7
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' )
33
8
testImplementation(' io.projectreactor:reactor-test' )
34
-
35
9
}
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
-
18
1
group = ' com.graphql-java'
19
2
version = ' 0.0.1-SNAPSHOT'
20
3
sourceCompatibility = 1.8
21
4
22
- repositories {
23
- mavenCentral()
24
- maven { url " http://dl.bintray.com/andimarek/graphql-java" }
25
- }
26
-
27
-
28
5
dependencies {
29
6
compile(' org.springframework.boot:spring-boot-starter-web' )
30
7
compile(' org.springframework.boot:spring-boot-starter-data-jpa' )
31
8
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' )
36
9
}
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
-
18
1
group = ' com.graphql-java'
19
2
version = ' 0.0.1-SNAPSHOT'
20
3
sourceCompatibility = 1.8
21
4
22
- repositories {
23
- mavenCentral()
24
- maven { url " http://dl.bintray.com/andimarek/graphql-java" }
25
- }
26
-
27
-
28
5
dependencies {
29
6
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' )
33
7
}
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
-
18
1
group = ' com.graphql-java.examples'
19
2
version = ' 0.0.1-SNAPSHOT'
20
3
sourceCompatibility = 1.8
21
4
22
- repositories {
23
- mavenCentral()
24
- }
25
-
26
-
27
5
dependencies {
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' )
32
7
}
Original file line number Diff line number Diff line change 1
- package graphql .examples .springboot ;
1
+ package com . graphql . java .examples .springboot ;
2
2
3
3
import org .springframework .boot .SpringApplication ;
4
4
import 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 ;
2
2
3
3
import com .fasterxml .jackson .core .type .TypeReference ;
4
4
import 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 ;
2
2
3
3
import graphql .schema .DataFetcher ;
4
4
import 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 ;
2
2
3
3
import com .google .common .base .Charsets ;
4
4
import 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
+ }
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
-
18
1
group = ' com.graphql-java'
19
2
version = ' 0.0.1-SNAPSHOT'
20
3
sourceCompatibility = 1.8
21
4
22
- repositories {
23
- mavenCentral()
24
- maven { url " http://dl.bintray.com/andimarek/graphql-java" }
25
- }
26
-
27
-
28
5
dependencies {
29
- compile(' org.springframework.boot:spring-boot-starter-web' )
30
6
compile(' org.springframework.boot:spring-boot-starter-websocket' )
31
7
32
- compile " com.graphql-java:graphql-java:10.0"
33
8
compile " io.reactivex.rxjava2:rxjava:2.1.5"
34
9
compile " com.google.code.gson:gson:2.8.0"
35
-
36
- testCompile(' org.springframework.boot:spring-boot-starter-test' )
37
10
}
Original file line number Diff line number Diff line change 1
- package com .graphqljava . examples . springboot ;
1
+ package com .graphql . java . subscription ;
2
2
3
3
import org .junit .Test ;
4
4
import org .junit .runner .RunWith ;
You can’t perform that action at this time.
0 commit comments