Skip to content

Commit e3d2bfb

Browse files
authored
Merge pull request #5 from felipe-gdr/move-common-gradle-config-to-parent
Move common gradle config to parent
2 parents 939a77e + 052d70f commit e3d2bfb

File tree

12 files changed

+54
-138
lines changed

12 files changed

+54
-138
lines changed

build.gradle

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,35 @@
11
task 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+

defer/server/build.gradle

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,9 @@
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-
181
group = 'com.graphql-java'
192
version = '0.0.1-SNAPSHOT'
203
sourceCompatibility = 1.8
214

22-
repositories {
23-
mavenCentral()
24-
maven { url "http://dl.bintray.com/andimarek/graphql-java" }
25-
}
26-
27-
285
dependencies {
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
}

hibernate-example/build.gradle

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,9 @@
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-
181
group = 'com.graphql-java'
192
version = '0.0.1-SNAPSHOT'
203
sourceCompatibility = 1.8
214

22-
repositories {
23-
mavenCentral()
24-
maven { url "http://dl.bintray.com/andimarek/graphql-java" }
25-
}
26-
27-
285
dependencies {
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
}

http-example/build.gradle

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,7 @@
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-
181
group = 'com.graphql-java'
192
version = '0.0.1-SNAPSHOT'
203
sourceCompatibility = 1.8
214

22-
repositories {
23-
mavenCentral()
24-
maven { url "http://dl.bintray.com/andimarek/graphql-java" }
25-
}
26-
27-
285
dependencies {
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
}

spring-boot-integration/build.gradle

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,7 @@
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-
181
group = 'com.graphql-java.examples'
192
version = '0.0.1-SNAPSHOT'
203
sourceCompatibility = 1.8
214

22-
repositories {
23-
mavenCentral()
24-
}
25-
26-
275
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')
327
}

spring-boot-integration/src/main/java/graphql/examples/springboot/Application.java renamed to spring-boot-integration/src/main/java/com/graphql/java/examples/springboot/Application.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package graphql.examples.springboot;
1+
package com.graphql.java.examples.springboot;
22

33
import org.springframework.boot.SpringApplication;
44
import org.springframework.boot.autoconfigure.SpringBootApplication;

spring-boot-integration/src/main/java/graphql/examples/springboot/GraphQLController.java renamed to spring-boot-integration/src/main/java/com/graphql/java/examples/springboot/GraphQLController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package graphql.examples.springboot;
1+
package com.graphql.java.examples.springboot;
22

33
import com.fasterxml.jackson.core.type.TypeReference;
44
import com.fasterxml.jackson.databind.ObjectMapper;

spring-boot-integration/src/main/java/graphql/examples/springboot/GraphQLDataFetchers.java renamed to spring-boot-integration/src/main/java/com/graphql/java/examples/springboot/GraphQLDataFetchers.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package graphql.examples.springboot;
1+
package com.graphql.java.examples.springboot;
22

33
import graphql.schema.DataFetcher;
44
import org.springframework.stereotype.Component;

spring-boot-integration/src/main/java/graphql/examples/springboot/GraphQLProvider.java renamed to spring-boot-integration/src/main/java/com/graphql/java/examples/springboot/GraphQLProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package graphql.examples.springboot;
1+
package com.graphql.java.examples.springboot;
22

33
import com.google.common.base.Charsets;
44
import com.google.common.io.Resources;
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
}

subscription-example/build.gradle

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,10 @@
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-
181
group = 'com.graphql-java'
192
version = '0.0.1-SNAPSHOT'
203
sourceCompatibility = 1.8
214

22-
repositories {
23-
mavenCentral()
24-
maven { url "http://dl.bintray.com/andimarek/graphql-java" }
25-
}
26-
27-
285
dependencies {
29-
compile('org.springframework.boot:spring-boot-starter-web')
306
compile('org.springframework.boot:spring-boot-starter-websocket')
317

32-
compile "com.graphql-java:graphql-java:10.0"
338
compile "io.reactivex.rxjava2:rxjava:2.1.5"
349
compile "com.google.code.gson:gson:2.8.0"
35-
36-
testCompile('org.springframework.boot:spring-boot-starter-test')
3710
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.graphqljava.examples.springboot;
1+
package com.graphql.java.subscription;
22

33
import org.junit.Test;
44
import org.junit.runner.RunWith;

0 commit comments

Comments
 (0)