File tree Expand file tree Collapse file tree 3 files changed +5
-17
lines changed Expand file tree Collapse file tree 3 files changed +5
-17
lines changed Original file line number Diff line number Diff line change 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
-
14
1
plugins {
15
2
id ' java'
16
3
// CAUTION ! The id of the plugin has changed since 2.0RC1.
17
4
// 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} "
19
6
id ' org.springframework.boot' version " ${ springBootVersion} "
20
7
id ' io.spring.dependency-management' version " ${ dependencyManagementPluginVersion} "
21
8
}
@@ -29,7 +16,7 @@ repositories {
29
16
dependencies {
30
17
// The graphql-java-runtime module agregates all dependencies for the generated code, including the plugin runtime
31
18
// 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 } "
33
20
implementation ' com.github.dozermapper:dozer-core:6.5.2'
34
21
35
22
// Then, the dependencies that are specific to this project
Original file line number Diff line number Diff line change 1
1
// BuildSrc versions
2
- graphQLPluginVersion = 2.1
2
+ graphQLPluginVersion = 2.1b
3
+ graphQLPluginDependencies = 2.1
3
4
4
5
// Project dependencies versions
5
6
springBootVersion = 3.1.0
Original file line number Diff line number Diff line change 6
6
pluginManagement {
7
7
repositories {
8
8
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'
10
10
}
11
11
gradlePluginPortal()
12
12
}
You can’t perform that action at this time.
0 commit comments