Skip to content

Commit 12b9bec

Browse files
authored
[DE-679] Spring Boot 3 (#26)
* Spring Boot 3 * snapshot repo * updated tutorial with Spring Boot 3 (DE-680) * Spring Boot 3.1
1 parent 1e05c8a commit 12b9bec

File tree

2 files changed

+78
-60
lines changed

2 files changed

+78
-60
lines changed

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,26 +62,30 @@ We have to create a maven `pom.xml`:
6262
<parent>
6363
<groupId>org.springframework.boot</groupId>
6464
<artifactId>spring-boot-starter-parent</artifactId>
65-
<version>2.7.8</version>
65+
<version>3.1.3</version>
6666
<relativePath/> <!-- lookup parent from repository -->
6767
</parent>
6868

6969
<groupId>com.arangodb</groupId>
7070
<artifactId>spring-data-arangodb-tutorial</artifactId>
71-
<version>0.0.1-SNAPSHOT</version>
71+
<version>1.0.0</version>
7272

7373
<name>demo</name>
7474
<description>Demo project for Spring Boot</description>
7575

7676
<properties>
77-
<java.version>11</java.version>
77+
<java.version>17</java.version>
7878
</properties>
7979

8080
<dependencies>
81+
<dependency>
82+
<groupId>org.springframework.boot</groupId>
83+
<artifactId>spring-boot-starter</artifactId>
84+
</dependency>
8185
<dependency>
8286
<groupId>com.arangodb</groupId>
8387
<artifactId>arangodb-spring-boot-starter</artifactId>
84-
<version>2.7-0</version>
88+
<version>3.1-0</version>
8589
</dependency>
8690
</dependencies>
8791

pom.xml

Lines changed: 70 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,79 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3-
<modelVersion>4.0.0</modelVersion>
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
44

5-
<groupId>com.arangodb</groupId>
6-
<artifactId>spring-data-demo</artifactId>
7-
<version>0.0.2-SNAPSHOT</version>
8-
<packaging>jar</packaging>
5+
<groupId>com.arangodb</groupId>
6+
<artifactId>spring-data-demo</artifactId>
7+
<version>1.0.0</version>
8+
<packaging>jar</packaging>
99

10-
<name>spring-data-demo</name>
11-
<url>https://github.com/arangodb/spring-data-demo</url>
10+
<name>spring-data-demo</name>
11+
<url>https://github.com/arangodb/spring-data-demo</url>
1212

13-
<parent>
14-
<groupId>org.springframework.boot</groupId>
15-
<artifactId>spring-boot-starter-parent</artifactId>
16-
<version>2.7.8</version>
17-
</parent>
13+
<parent>
14+
<groupId>org.springframework.boot</groupId>
15+
<artifactId>spring-boot-starter-parent</artifactId>
16+
<version>3.1.3</version>
17+
</parent>
1818

19-
<properties>
20-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
21-
<java.version>11</java.version>
22-
</properties>
19+
<properties>
20+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
21+
<java.version>17</java.version>
22+
</properties>
2323

24-
<repositories>
25-
<repository>
26-
<id>arangodb-snapshots</id>
27-
<url>https://oss.sonatype.org/content/groups/staging</url>
28-
</repository>
29-
</repositories>
24+
<repositories>
25+
<repository>
26+
<id>central</id>
27+
<name>Maven Central</name>
28+
<url>https://repo1.maven.org/maven2</url>
29+
<snapshots>
30+
<enabled>false</enabled>
31+
</snapshots>
32+
</repository>
33+
<repository>
34+
<id>arangodb-snapshots</id>
35+
<url>https://oss.sonatype.org/content/groups/staging</url>
36+
</repository>
37+
</repositories>
3038

31-
<dependencies>
32-
<dependency>
33-
<groupId>org.springframework.boot</groupId>
34-
<artifactId>spring-boot-starter</artifactId>
35-
</dependency>
36-
<dependency>
37-
<groupId>com.arangodb</groupId>
38-
<artifactId>arangodb-spring-boot-starter</artifactId>
39-
<version>2.7-0</version>
40-
</dependency>
41-
</dependencies>
39+
<dependencies>
40+
<dependency>
41+
<groupId>org.springframework.boot</groupId>
42+
<artifactId>spring-boot-starter</artifactId>
43+
</dependency>
44+
<dependency>
45+
<groupId>com.arangodb</groupId>
46+
<artifactId>arangodb-spring-boot-starter</artifactId>
47+
<version>3.1-0</version>
48+
</dependency>
49+
</dependencies>
4250

43-
<build>
44-
<plugins>
45-
<plugin>
46-
<groupId>org.apache.maven.plugins</groupId>
47-
<artifactId>maven-enforcer-plugin</artifactId>
48-
<version>3.0.0-M3</version>
49-
<executions>
50-
<execution>
51-
<id>enforce</id>
52-
<goals>
53-
<goal>enforce</goal>
54-
</goals>
55-
<configuration>
56-
<rules>
57-
<dependencyConvergence/>
58-
</rules>
59-
</configuration>
60-
</execution>
61-
</executions>
62-
</plugin>
63-
</plugins>
64-
</build>
51+
<build>
52+
<plugins>
53+
<plugin>
54+
<groupId>org.springframework.boot</groupId>
55+
<artifactId>spring-boot-maven-plugin</artifactId>
56+
</plugin>
57+
<plugin>
58+
<groupId>org.apache.maven.plugins</groupId>
59+
<artifactId>maven-enforcer-plugin</artifactId>
60+
<executions>
61+
<execution>
62+
<id>enforce</id>
63+
<goals>
64+
<goal>enforce</goal>
65+
</goals>
66+
<configuration>
67+
<rules>
68+
<dependencyConvergence/>
69+
<requireMavenVersion>
70+
<version>3.6</version>
71+
</requireMavenVersion>
72+
</rules>
73+
</configuration>
74+
</execution>
75+
</executions>
76+
</plugin>
77+
</plugins>
78+
</build>
6579
</project>

0 commit comments

Comments
 (0)