Skip to content

Commit

Permalink
Use special property revision to set the version only once
Browse files Browse the repository at this point in the history
This make it easier to update the version and allow running Maven
for example like this: `mvn -Drevision=3.7.0-test clean install`.

Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Jul 17, 2024
1 parent b421d45 commit 1ef3e73
Show file tree
Hide file tree
Showing 15 changed files with 17 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Kitodo-API/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<artifactId>kitodo-production</artifactId>
<groupId>org.kitodo</groupId>
<version>3.7.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>

<name>Kitodo - API</name>
Expand Down
2 changes: 1 addition & 1 deletion Kitodo-Command/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<artifactId>kitodo-production</artifactId>
<groupId>org.kitodo</groupId>
<version>3.7.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>

<name>Kitodo - Command</name>
Expand Down
2 changes: 1 addition & 1 deletion Kitodo-DataEditor/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<parent>
<artifactId>kitodo-production</artifactId>
<groupId>org.kitodo</groupId>
<version>3.7.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>

<name>Kitodo - Data Editor</name>
Expand Down
2 changes: 1 addition & 1 deletion Kitodo-DataFormat/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<parent>
<artifactId>kitodo-production</artifactId>
<groupId>org.kitodo</groupId>
<version>3.7.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>

<name>Kitodo - Data Format</name>
Expand Down
2 changes: 1 addition & 1 deletion Kitodo-DataManagement/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<artifactId>kitodo-production</artifactId>
<groupId>org.kitodo</groupId>
<version>3.7.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>

<name>Kitodo - Data Management</name>
Expand Down
2 changes: 1 addition & 1 deletion Kitodo-Docket/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<artifactId>kitodo-production</artifactId>
<groupId>org.kitodo</groupId>
<version>3.7.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>

<name>Kitodo - Docket</name>
Expand Down
2 changes: 1 addition & 1 deletion Kitodo-FileManagement/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<artifactId>kitodo-production</artifactId>
<groupId>org.kitodo</groupId>
<version>3.7.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>

<name>Kitodo - File Management</name>
Expand Down
2 changes: 1 addition & 1 deletion Kitodo-ImageManagement/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<artifactId>kitodo-production</artifactId>
<groupId>org.kitodo</groupId>
<version>3.7.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>

<name>Kitodo - Image Management</name>
Expand Down
2 changes: 1 addition & 1 deletion Kitodo-LongTermPreservationValidation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<artifactId>kitodo-production</artifactId>
<groupId>org.kitodo</groupId>
<version>3.7.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>

<name>Kitodo - Long Term Preservation Validation</name>
Expand Down
2 changes: 1 addition & 1 deletion Kitodo-PersistentIdentifier/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<artifactId>kitodo-production</artifactId>
<groupId>org.kitodo</groupId>
<version>3.7.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>

<name>Kitodo - Persistent Identifier</name>
Expand Down
2 changes: 1 addition & 1 deletion Kitodo-Query-URL-Import/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<parent>
<artifactId>kitodo-production</artifactId>
<groupId>org.kitodo</groupId>
<version>3.7.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>

<name>Kitodo - Query URL Import</name>
Expand Down
2 changes: 1 addition & 1 deletion Kitodo-Validation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<artifactId>kitodo-production</artifactId>
<groupId>org.kitodo</groupId>
<version>3.7.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>

<name>Kitodo - Validation</name>
Expand Down
2 changes: 1 addition & 1 deletion Kitodo-XML-SchemaConverter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<parent>
<artifactId>kitodo-production</artifactId>
<groupId>org.kitodo</groupId>
<version>3.7.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>

<name>Kitodo - XML SchemaConverter</name>
Expand Down
2 changes: 1 addition & 1 deletion Kitodo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<parent>
<groupId>org.kitodo</groupId>
<artifactId>kitodo-production</artifactId>
<version>3.7.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>

<name>Kitodo - Core</name>
Expand Down
5 changes: 3 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<groupId>org.kitodo</groupId>
<artifactId>kitodo-production</artifactId>
<version>3.7.0-SNAPSHOT</version>
<version>${revision}</version>
<packaging>pom</packaging>

<organization>
Expand All @@ -30,7 +30,8 @@
<url>https://github.com/kitodo/kitodo-production</url>

<properties>
<kitodo.version>3.7.0-SNAPSHOT</kitodo.version>
<revision>3.7.0-SNAPSHOT</revision>
<kitodo.version>${revision}</kitodo.version>
<checkstyle.config.location>config/checkstyle.xml</checkstyle.config.location>
<main.basedir>${project.basedir}</main.basedir>
<phase.prop>none</phase.prop>
Expand Down

0 comments on commit 1ef3e73

Please sign in to comment.