Skip to content

Commit 49ed7fb

Browse files
author
etienne-sf
committed
Ready for graphql-gradle-plugin3 (and spring boot 3)
1 parent 0eb3233 commit 49ed7fb

File tree

3 files changed

+5
-17
lines changed

3 files changed

+5
-17
lines changed

build.gradle

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,8 @@
1-
// The GraphQL plugin is compiled with Spring Boot 2.7.
2-
// If you want to use it with Spring Boot 3.x, you have to update these dependencies, like this buildscript block:
3-
buildscript {
4-
repositories {
5-
// The GraphQL plugin depends on libraries that are available with maven
6-
mavenLocal()
7-
mavenCentral()
8-
}
9-
dependencies {
10-
classpath "org.springframework.boot:spring-boot-starter-graphql:${springBootVersion}"
11-
}
12-
}
13-
141
plugins {
152
id 'java'
163
// CAUTION ! The id of the plugin has changed since 2.0RC1.
174
// It was 'com.graphql_java_generator.graphql-gradle-plugin'. It is now 'com.graphql-java-generator.graphql-gradle-plugin'
18-
id 'com.graphql-java-generator.graphql-gradle-plugin' version "${graphQLPluginVersion}"
5+
id 'com.graphql-java-generator.graphql-gradle-plugin3' version "${graphQLPluginVersion}"
196
id 'org.springframework.boot' version "${springBootVersion}"
207
id 'io.spring.dependency-management' version "${dependencyManagementPluginVersion}"
218
}
@@ -29,7 +16,7 @@ repositories {
2916
dependencies {
3017
// The graphql-java-runtime module agregates all dependencies for the generated code, including the plugin runtime
3118
// CAUTION: this version should be exactly the same as the graphql-gradle-plugin's version
32-
implementation "com.graphql-java-generator:graphql-java-server-runtime:${graphQLPluginVersion}"
19+
implementation "com.graphql-java-generator:graphql-java-server-runtime:${graphQLPluginDependencies}"
3320
implementation 'com.github.dozermapper:dozer-core:6.5.2'
3421

3522
// Then, the dependencies that are specific to this project

gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// BuildSrc versions
2-
graphQLPluginVersion = 2.1
2+
graphQLPluginVersion = 2.1b
3+
graphQLPluginDependencies = 2.1
34

45
// Project dependencies versions
56
springBootVersion = 3.1.0

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
pluginManagement {
77
repositories {
88
maven {
9-
url = '../graphql-gradle-plugin-project/graphql-gradle-plugin/build/local-plugin-repository'
9+
url = '../graphql-gradle-plugin-project/graphql-gradle-plugin3/build/local-plugin-repository'
1010
}
1111
gradlePluginPortal()
1212
}

0 commit comments

Comments
 (0)