Skip to content

Commit 97505c6

Browse files
committed
Use revision property for version
1 parent d5038cc commit 97505c6

File tree

8 files changed

+37
-10
lines changed

8 files changed

+37
-10
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ pom.xml.tag
33
pom.xml.releaseBackup
44
pom.xml.versionsBackup
55
pom.xml.next
6+
.flattened-pom.xml
67
release.properties
78
dependency-reduced-pom.xml
89
buildNumber.properties

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ If you are using Spring Boot, you can instead use the starter, which includes th
2424
<dependency>
2525
<groupId>com.recombee</groupId>
2626
<artifactId>api-client-spring-boot-2-starter</artifactId>
27-
<version>4.1.0</version>
27+
<version>5.0.0</version>
2828
</dependency>
2929
```
3030
For the automatic configuration of the bean, you need to add the following properties:

api-client-spring-boot-2-autoconfigure/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.recombee</groupId>
77
<artifactId>api-client-parent</artifactId>
8-
<version>5.1.0-SNAPSHOT</version>
8+
<version>${revision}</version>
99
</parent>
1010
<artifactId>api-client-spring-boot-2-autoconfigure</artifactId>
1111
<name>Recombee API Client Spring Boot 2 Autoconfiguration</name>

api-client-spring-boot-2-starter/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.recombee</groupId>
77
<artifactId>api-client-parent</artifactId>
8-
<version>5.1.0-SNAPSHOT</version>
8+
<version>${revision}</version>
99
</parent>
1010
<artifactId>api-client-spring-boot-2-starter</artifactId>
1111
<name>Recombee API Client Spring Boot 2 Starter</name>

api-client-spring-boot-3-autoconfigure/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.recombee</groupId>
77
<artifactId>api-client-parent</artifactId>
8-
<version>4.2.0-SNAPSHOT</version>
8+
<version>${revision}</version>
99
</parent>
1010
<artifactId>api-client-spring-boot-3-autoconfigure</artifactId>
1111
<name>Recombee API Client Spring Boot 3 Autoconfiguration</name>

api-client-spring-boot-3-starter/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<groupId>com.recombee</groupId>
55
<artifactId>api-client-parent</artifactId>
6-
<version>4.2.0-SNAPSHOT</version>
6+
<version>${revision}</version>
77
</parent>
88
<artifactId>api-client-spring-boot-3-starter</artifactId>
99
<name>Recombee API Client Spring Boot 3 Starter</name>

api-client/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>com.recombee</groupId>
99
<artifactId>api-client-parent</artifactId>
10-
<version>5.1.0-SNAPSHOT</version>
10+
<version>${revision}</version>
1111
</parent>
1212

1313
<artifactId>api-client</artifactId>

pom.xml

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +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

77
<groupId>com.recombee</groupId>
88
<artifactId>api-client-parent</artifactId>
9-
<version>5.1.0-SNAPSHOT</version>
9+
<version>${revision}</version>
1010
<packaging>pom</packaging>
1111
<name>Recombee API Client Parent</name>
1212
<description>A client library for easy use of the Recombee recommendation API</description>
1313
<url>http://recombee.com</url>
14-
14+
1515
<properties>
16+
<revision>5.1.0-SNAPSHOT</revision>
1617
<!-- spring versions -->
1718
<spring.boot.2.version>2.7.18</spring.boot.2.version>
1819
<spring.boot.3.version>3.4.1</spring.boot.3.version>
@@ -90,6 +91,31 @@
9091

9192
<build>
9293
<plugins>
94+
<plugin>
95+
<groupId>org.codehaus.mojo</groupId>
96+
<artifactId>flatten-maven-plugin</artifactId>
97+
<version>1.1.0</version>
98+
<configuration>
99+
<updatePomFile>true</updatePomFile>
100+
<flattenMode>resolveCiFriendliesOnly</flattenMode>
101+
</configuration>
102+
<executions>
103+
<execution>
104+
<id>flatten</id>
105+
<phase>process-resources</phase>
106+
<goals>
107+
<goal>flatten</goal>
108+
</goals>
109+
</execution>
110+
<execution>
111+
<id>flatten.clean</id>
112+
<phase>clean</phase>
113+
<goals>
114+
<goal>clean</goal>
115+
</goals>
116+
</execution>
117+
</executions>
118+
</plugin>
93119
<plugin>
94120
<groupId>org.apache.maven.plugins</groupId>
95121
<artifactId>maven-compiler-plugin</artifactId>

0 commit comments

Comments
 (0)