Skip to content

Commit

Permalink
chore: bump to Spring Boot 3.2.0-RC2
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored and hantsy committed Nov 4, 2023
1 parent 12b5694 commit 3b14105
Show file tree
Hide file tree
Showing 163 changed files with 13,989 additions and 445 deletions.
8 changes: 0 additions & 8 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,6 @@ updates:
directory: "/graphql-spqr"
schedule:
interval: weekly
ignore:
- dependency-name: "com.graphql-java:graphql-java"
update-types: ["version-update:semver-major"]

- package-ecosystem: "gradle"
directory: "/graphql-java"
schedule:
interval: weekly
- package-ecosystem: "gradle"
directory: "/graphql-kotlin"
schedule:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dgs-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'
- name: Build with Gradle
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dgs-codegen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'
- name: Setup Postgres in Docker
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dgs-fileupload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'
- name: Build with Gradle
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dgs-kotlin-co.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'
- name: Setup Postgres in Docker
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dgs-kotlin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'
- name: Setup Postgres in Docker
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dgs-subscription-sse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'
- name: Build with Gradle
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dgs-subscription-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Setup NodeJS
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "16"
node-version: "20"

- uses: actions/cache@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dgs-subscription-ws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'
- name: Build with Gradle
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dgs-webflux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'
- name: Setup Postgres in Docker
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dgs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'
- name: Setup Postgres in Docker
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/graphql-java-kickstart-annotations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'
- name: Setup Postgres in Docker
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/graphql-java-kickstart-webclient.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'
- name: Setup Postgres in Docker
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/graphql-java-kickstart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'
- name: Setup Postgres in Docker
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/graphql-kotlin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'
- name: Setup Postgres in Docker
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/graphql-spqr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'
- name: Setup Postgres in Docker
run: |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle

name: graphql-java
name: legacy-graphql-java

on:
push:
paths:
- "graphql-java/**"
- "legacy/graphql-java/**"
branches: [ master ]
pull_request:
paths:
- "graphql-java/**"
- "legacy/graphql-java/**"
types:
- opened
- synchronize
Expand All @@ -34,7 +34,7 @@ jobs:
docker ps -a
- name: Build with Gradle
run: |
cd graphql-java
cd legacy/graphql-java
chmod +x gradlew
./gradlew build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/spring-graphql-querydsl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'
- name: Setup Postgres in Docker
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/spring-graphql-rsocket-kotlin-co.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'
cache: 'gradle'
- name: Setup Postgres in Docker
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/spring-graphql-webflux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'
- name: Setup Postgres in Docker
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/spring-graphql-webmvc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'
- name: Setup Postgres in Docker
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/spring-graphql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'
- name: Setup Postgres in Docker
run: |
Expand Down
19 changes: 15 additions & 4 deletions dgs-client/build.gradle
Original file line number Diff line number Diff line change
@@ -1,21 +1,32 @@
plugins {
id 'org.springframework.boot' version '3.1.4'
id 'org.springframework.boot' version '3.2.0-RC2'
id 'io.spring.dependency-management' version '1.1.3'
id 'java'
id "com.netflix.dgs.codegen" version "6.0.2" //https://plugins.gradle.org/plugin/com.netflix.dgs.codegen
id "com.netflix.dgs.codegen" version "6.0.3" //https://plugins.gradle.org/plugin/com.netflix.dgs.codegen
}

group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'
java {
sourceCompatibility = '21'
}


repositories {
mavenLocal()
mavenCentral()
maven { url "https://repo.spring.io/milestone" }
maven { url "https://repo.spring.io/snapshot" }
}

dependencyManagement {
imports {
mavenBom("com.netflix.graphql.dgs:graphql-dgs-platform-dependencies:8.0.0")
}
}

dependencies {
implementation(platform("com.netflix.graphql.dgs:graphql-dgs-platform-dependencies:7.5.3"))
//implementation(platform("com.netflix.graphql.dgs:graphql-dgs-platform-dependencies:8.0.0"))
implementation "com.netflix.graphql.dgs:graphql-dgs-client"

//spring boot starter
Expand Down
Binary file modified dgs-client/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 2 additions & 1 deletion dgs-client/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
7 changes: 7 additions & 0 deletions dgs-client/settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
pluginManagement {
repositories {
maven { url 'https://repo.spring.io/milestone' }
gradlePluginPortal()
}
}

rootProject.name = 'dgs-client-example'
16 changes: 7 additions & 9 deletions dgs-client/src/main/java/com/example/demo/DemoApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@

import com.example.demo.gql.client.AllPostsGraphQLQuery;
import com.example.demo.gql.client.AllPostsProjectionRoot;
import com.example.demo.gql.client.AuthorProjection;
import com.example.demo.gql.client.PostProjection;
import com.example.demo.gql.types.Post;
import com.jayway.jsonpath.TypeRef;
import com.netflix.graphql.dgs.client.DefaultGraphQLClient;
import com.netflix.graphql.dgs.client.GraphQLClient;
import com.netflix.graphql.dgs.client.GraphQLResponse;
import com.netflix.graphql.dgs.client.HttpResponse;
import com.netflix.graphql.dgs.client.*;
import com.netflix.graphql.dgs.client.codegen.GraphQLQueryRequest;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
Expand Down Expand Up @@ -88,7 +87,7 @@ public void run(ApplicationArguments args) throws Exception {
GraphQLQueryRequest graphQLQueryRequest =
new GraphQLQueryRequest(
new AllPostsGraphQLQuery(),
new AllPostsProjectionRoot()
new AllPostsProjectionRoot<AuthorProjection<?,?>,PostProjection<?,?>>()
.id()
.title()
.content()
Expand All @@ -100,11 +99,10 @@ public void run(ApplicationArguments args) throws Exception {
);

String query = graphQLQueryRequest.serialize();
GraphQLClient client = new DefaultGraphQLClient(url);
GraphQLResponse response = client.executeQuery(query, new HashMap<>(), DemoApplication::execute);
GraphQLClient client = new CustomGraphQLClient(url, DemoApplication::execute);
GraphQLResponse response = client.executeQuery(query, new HashMap<>() );

var data = response.extractValueAsObject("allPosts", new TypeRef<List<Post>>() {
});
var data = response.extractValueAsObject("allPosts", new TypeRef<List<Post>>() { });
log.info("fetched all posts from client: {}", data);
}
}
17 changes: 14 additions & 3 deletions dgs-codegen/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'org.springframework.boot' version '3.1.4'
id 'org.springframework.boot' version '3.2.0-RC2'
id 'io.spring.dependency-management' version '1.1.3'
id 'java'
id "com.netflix.dgs.codegen" version "6.0.3" //https://plugins.gradle.org/plugin/com.netflix.dgs.codegen
Expand All @@ -8,15 +8,26 @@ plugins {

group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'
java {
sourceCompatibility = '21'
}


repositories {
mavenLocal()
mavenCentral()
maven { url "https://repo.spring.io/milestone" }
maven { url "https://repo.spring.io/snapshot" }
}

dependencyManagement {
imports {
mavenBom("com.netflix.graphql.dgs:graphql-dgs-platform-dependencies:8.0.0")
}
}

dependencies {
implementation(platform("com.netflix.graphql.dgs:graphql-dgs-platform-dependencies:7.5.3"))
// implementation(platform("com.netflix.graphql.dgs:graphql-dgs-platform-dependencies:8.0.0"))
implementation "com.netflix.graphql.dgs:graphql-dgs-spring-boot-starter", {
exclude group: 'org.yaml', module: 'snakeyaml'
}
Expand Down
Binary file modified dgs-codegen/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 2 additions & 1 deletion dgs-codegen/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
7 changes: 7 additions & 0 deletions dgs-codegen/settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
pluginManagement {
repositories {
maven { url 'https://repo.spring.io/milestone' }
gradlePluginPortal()
}
}

rootProject.name = 'dgs-codegen'
Loading

0 comments on commit 3b14105

Please sign in to comment.