Skip to content

Commit c4ee388

Browse files
authored
[JAVA-42510] Upgraded spring-boot-graphql to boot 3 (#18060)
1 parent e9298ac commit c4ee388

File tree

5 files changed

+39
-32
lines changed

5 files changed

+39
-32
lines changed

spring-boot-modules/spring-boot-graphql/pom.xml

Lines changed: 28 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,19 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0"
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
66
<artifactId>spring-boot-graphql</artifactId>
77
<name>spring-boot-graphql</name>
88
<packaging>war</packaging>
99

1010
<parent>
1111
<groupId>com.baeldung</groupId>
12-
<artifactId>parent-boot-2</artifactId>
12+
<artifactId>parent-boot-3</artifactId>
1313
<version>0.0.1-SNAPSHOT</version>
14-
<relativePath>../../parent-boot-2</relativePath>
14+
<relativePath>../../parent-boot-3</relativePath>
1515
</parent>
1616

17-
<build>
18-
<extensions>
19-
<extension>
20-
<groupId>kr.motd.maven</groupId>
21-
<artifactId>os-maven-plugin</artifactId>
22-
<version>${os-maven-plugin.version}</version>
23-
</extension>
24-
</extensions>
25-
</build>
26-
2717
<dependencies>
2818
<dependency>
2919
<groupId>org.springframework.boot</groupId>
@@ -81,15 +71,34 @@
8171
</dependency>
8272
</dependencies>
8373

74+
<build>
75+
<extensions>
76+
<extension>
77+
<groupId>kr.motd.maven</groupId>
78+
<artifactId>os-maven-plugin</artifactId>
79+
<version>${os-maven-plugin.version}</version>
80+
</extension>
81+
</extensions>
82+
<plugins>
83+
<plugin>
84+
<groupId>org.apache.maven.plugins</groupId>
85+
<artifactId>maven-compiler-plugin</artifactId>
86+
<configuration>
87+
<compilerArgs>
88+
<arg>-parameters</arg>
89+
</compilerArgs>
90+
</configuration>
91+
</plugin>
92+
</plugins>
93+
</build>
94+
95+
8496
<properties>
8597
<servlet.version>4.0.1</servlet.version>
86-
<protobuf.version>3.19.2</protobuf.version>
87-
<protobuf-plugin.version>0.6.1</protobuf-plugin.version>
8898
<jsonassert.version>1.5.1</jsonassert.version>
89-
<jakarta.annotation-api.version>1.3.5</jakarta.annotation-api.version>
90-
<os-maven-plugin.version>1.6.2</os-maven-plugin.version>
99+
<jakarta.annotation-api.version>3.0.0</jakarta.annotation-api.version>
91100
<maven-war-plugin.version>3.3.2</maven-war-plugin.version>
92-
<os-maven-plugin.version>1.7.0</os-maven-plugin.version>
101+
<os-maven-plugin.version>1.7.1</os-maven-plugin.version>
93102
<start-class>com.baeldung.chooseapi.ChooseApiApp</start-class>
94103
</properties>
95104

spring-boot-modules/spring-boot-graphql/src/main/java/com/baeldung/graphql/error/handling/domain/Location.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
import lombok.Data;
66
import lombok.NoArgsConstructor;
77

8-
import javax.persistence.Entity;
9-
import javax.persistence.FetchType;
10-
import javax.persistence.Id;
11-
import javax.persistence.OneToMany;
8+
import jakarta.persistence.Entity;
9+
import jakarta.persistence.FetchType;
10+
import jakarta.persistence.Id;
11+
import jakarta.persistence.OneToMany;
1212
import java.util.ArrayList;
1313
import java.util.List;
1414

spring-boot-modules/spring-boot-graphql/src/main/java/com/baeldung/graphql/error/handling/domain/Vehicle.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
package com.baeldung.graphql.error.handling.domain;
22

3-
import javax.persistence.Entity;
4-
import javax.persistence.FetchType;
5-
import javax.persistence.Id;
6-
import javax.persistence.JoinColumn;
7-
import javax.persistence.ManyToOne;
3+
import jakarta.persistence.Entity;
4+
import jakarta.persistence.FetchType;
5+
import jakarta.persistence.Id;
6+
import jakarta.persistence.JoinColumn;
7+
import jakarta.persistence.ManyToOne;
88
import lombok.AllArgsConstructor;
99
import lombok.Builder;
1010
import lombok.Data;

spring-boot-modules/spring-boot-graphql/src/main/java/com/baeldung/graphql/error/handling/service/InventoryService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import com.baeldung.graphql.error.handling.repository.InventoryRepository;
1818
import com.baeldung.graphql.error.handling.repository.LocationRepository;
1919

20-
import javax.transaction.Transactional;
20+
import jakarta.transaction.Transactional;
2121

2222
@Service
2323
public class InventoryService {

spring-boot-modules/spring-boot-graphql/src/main/java/com/baeldung/graphqlvsrest/GraphqlVsRestApplication.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@
33
import org.springframework.boot.SpringApplication;
44
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
55
import org.springframework.boot.autoconfigure.SpringBootApplication;
6-
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
76
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
87

98
@SpringBootApplication
109
@EnableAutoConfiguration(exclude = {
11-
SecurityAutoConfiguration.class,
12-
HibernateJpaAutoConfiguration.class
10+
SecurityAutoConfiguration.class
1311
})
1412
public class GraphqlVsRestApplication {
1513

0 commit comments

Comments
 (0)