Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Register
Sign in
Toggle navigation
Menu
Open sidebar
Tiger Ton
rome
Commits
001d1cca
Commit
001d1cca
authored
3 years ago
by
Patrick Gotthard
Browse files
Options
Download
Email Patches
Plain Diff
Simplify release builds
parent
3701a167
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
.github/workflows/build.yml
+11
-9
.github/workflows/build.yml
.github/workflows/release.yml
+18
-10
.github/workflows/release.yml
pom.xml
+37
-11
pom.xml
release.cmd
+0
-19
release.cmd
release.sh
+0
-16
release.sh
rome-certiorem-webapp/pom.xml
+1
-1
rome-certiorem-webapp/pom.xml
rome-certiorem/pom.xml
+1
-1
rome-certiorem/pom.xml
rome-fetcher/pom.xml
+1
-1
rome-fetcher/pom.xml
rome-modules/pom.xml
+1
-1
rome-modules/pom.xml
rome-opml/pom.xml
+1
-1
rome-opml/pom.xml
rome-propono/pom.xml
+1
-1
rome-propono/pom.xml
rome-utils/pom.xml
+1
-1
rome-utils/pom.xml
rome/pom.xml
+1
-1
rome/pom.xml
with
74 additions
and
73 deletions
+74
-73
.github/workflows/build.yml
+
11
-
9
View file @
001d1cca
...
...
@@ -2,20 +2,22 @@ name: CI Build
on
:
push
:
branches
:
-
'
**'
tags-ignore
:
-
'
**'
branches
:
[
'
**'
]
pull_request
:
branches
:
-
master
branches
:
[
'
**'
]
jobs
:
build
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v2
-
uses
:
actions/setup-java@v1
-
name
:
Checkout sourcecode
uses
:
actions/checkout@v2
-
name
:
Setup Java
uses
:
actions/setup-java@v1
with
:
java-version
:
1.8
-
run
:
mvn -B verify
\ No newline at end of file
-
name
:
Build
run
:
mvn -B verify
This diff is collapsed.
Click to expand it.
.github/workflows/release.yml
+
18
-
10
View file @
001d1cca
name
:
Release Build
on
:
pus
h
:
branches-ignore
:
-
'
**'
tags
:
-
'
**'
workflow_dispatc
h
:
inputs
:
version
:
description
:
Version
required
:
true
jobs
:
build
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v2
-
uses
:
actions/setup-java@v1
-
name
:
Checkout sourcecode
uses
:
actions/checkout@v2
-
name
:
Setup Java
uses
:
actions/setup-java@v1
with
:
java-version
:
1.8
server-id
:
ossrh
server-username
:
MAVEN_USERNAME
server-password
:
MAVEN_PASSWORD
-
run
:
echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}" | gpg --batch --import
-
run
:
mvn -B deploy -P release -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
-
name
:
Import GPG key
run
:
echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}" | gpg --batch --import
-
name
:
Build
run
:
mvn -B deploy scm:tag -P release -Drevision=${{ github.event.inputs.version }} -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
env
:
MAVEN_USERNAME
:
${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD
:
${{ secrets.OSSRH_TOKEN }}
\ No newline at end of file
MAVEN_PASSWORD
:
${{ secrets.OSSRH_TOKEN }}
This diff is collapsed.
Click to expand it.
pom.xml
+
37
-
11
View file @
001d1cca
...
...
@@ -6,7 +6,7 @@
<groupId>
com.rometools
</groupId>
<artifactId>
rome-parent
</artifactId>
<version>
1.15.1-SNAPSHOT
</version>
<version>
${revision}
</version>
<packaging>
pom
</packaging>
<modules>
...
...
@@ -36,7 +36,7 @@
<scm>
<connection>
scm:git:https://github.com/rometools/rome.git
</connection>
<developerConnection>
scm:git:
ssh://git@
github.com/rometools/rome.git
</developerConnection>
<developerConnection>
scm:git:
https://
github.com/rometools/rome.git
</developerConnection>
<url>
https://github.com/rometools/rome
</url>
</scm>
...
...
@@ -58,6 +58,7 @@
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<project.reporting.outputEncoding>
UTF-8
</project.reporting.outputEncoding>
<revision>
0.0.0-SNAPSHOT
</revision>
</properties>
<build>
...
...
@@ -95,7 +96,7 @@
<artifactId>
maven-scm-plugin
</artifactId>
<version>
1.9.5
</version>
<configuration>
<
connectionType>
developerConnect
ion
</
connectionType
>
<
tag>
${project.vers
ion
}
</
tag
>
</configuration>
</plugin>
<plugin>
...
...
@@ -133,6 +134,31 @@
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>
org.codehaus.mojo
</groupId>
<artifactId>
flatten-maven-plugin
</artifactId>
<version>
1.2.7
</version>
<configuration>
<updatePomFile>
true
</updatePomFile>
<flattenMode>
resolveCiFriendliesOnly
</flattenMode>
</configuration>
<executions>
<execution>
<id>
flatten
</id>
<phase>
process-resources
</phase>
<goals>
<goal>
flatten
</goal>
</goals>
</execution>
<execution>
<id>
flatten.clean
</id>
<phase>
clean
</phase>
<goals>
<goal>
clean
</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>
org.sonatype.plugins
</groupId>
<artifactId>
nexus-staging-maven-plugin
</artifactId>
...
...
@@ -213,42 +239,42 @@
<dependency>
<groupId>
com.rometools
</groupId>
<artifactId>
rome
</artifactId>
<version>
1.15.1-SNAPSHOT
</version>
<version>
${revision}
</version>
</dependency>
<dependency>
<groupId>
com.rometools
</groupId>
<artifactId>
rome-certiorem
</artifactId>
<version>
1.15.1-SNAPSHOT
</version>
<version>
${revision}
</version>
</dependency>
<dependency>
<groupId>
com.rometools
</groupId>
<artifactId>
rome-certiorem-webapp
</artifactId>
<version>
1.15.1-SNAPSHOT
</version>
<version>
${revision}
</version>
</dependency>
<dependency>
<groupId>
com.rometools
</groupId>
<artifactId>
rome-fetcher
</artifactId>
<version>
1.15.1-SNAPSHOT
</version>
<version>
${revision}
</version>
</dependency>
<dependency>
<groupId>
com.rometools
</groupId>
<artifactId>
rome-modules
</artifactId>
<version>
1.15.1-SNAPSHOT
</version>
<version>
${revision}
</version>
</dependency>
<dependency>
<groupId>
com.rometools
</groupId>
<artifactId>
rome-opml
</artifactId>
<version>
1.15.1-SNAPSHOT
</version>
<version>
${revision}
</version>
</dependency>
<dependency>
<groupId>
com.rometools
</groupId>
<artifactId>
rome-propono
</artifactId>
<version>
1.15.1-SNAPSHOT
</version>
<version>
${revision}
</version>
</dependency>
<dependency>
<groupId>
com.rometools
</groupId>
<artifactId>
rome-utils
</artifactId>
<version>
1.15.1-SNAPSHOT
</version>
<version>
${revision}
</version>
</dependency>
<!-- JDOM -->
<dependency>
...
...
This diff is collapsed.
Click to expand it.
release.cmd
deleted
100644 → 0
+
0
-
19
View file @
3701a167
if
[
%
1
]
==
[]
goto
:missingParameter
if
[
%
2
]
==
[]
goto
:missingParameter
set
releaseVersion
=
%
1
set
nextVersion
=
%
2
call
mvnw
versions
:set
-DgenerateBackupPoms
=
false
-DnewVersion
=
%releaseVersion%
||
goto
:error
call
mvnw
scm
:checkin
-DpushChanges
=
false
"-Dmessage=Update version to
%releaseVersion%
"
||
goto
:error
call
mvnw
versions
:set
-DgenerateBackupPoms
=
false
-DnewVersion
=
%nextVersion%
||
goto
:error
call
mvnw
scm
:checkin
-DpushChanges
=
false
"-Dmessage=Update version to
%nextVersion%
"
||
goto
:error
exit
/b
0
:missingParameter
echo
"Usage: release <releaseVersion> <nextVersion>"
exit
/b
1
:error
exit
/b
%errorlevel%
This diff is collapsed.
Click to expand it.
release.sh
deleted
100755 → 0
+
0
-
16
View file @
3701a167
#!/bin/bash
set
-e
if
[
"$#"
-ne
2
]
;
then
echo
"Usage: release <releaseVersion> <nextVersion>"
exit
1
fi
releaseVersion
=
$1
nextVersion
=
$2
./mvnw versions:set
-DgenerateBackupPoms
=
false
-DnewVersion
=
$releaseVersion
./mvnw scm:checkin
-DpushChanges
=
false
"-Dmessage=Update version to
$releaseVersion
"
./mvnw versions:set
-DgenerateBackupPoms
=
false
-DnewVersion
=
$nextVersion
./mvnw scm:checkin
-DpushChanges
=
false
"-Dmessage=Update version to
$nextVersion
"
This diff is collapsed.
Click to expand it.
rome-certiorem-webapp/pom.xml
+
1
-
1
View file @
001d1cca
...
...
@@ -5,7 +5,7 @@
<parent>
<groupId>
com.rometools
</groupId>
<artifactId>
rome-parent
</artifactId>
<version>
1.15.1-SNAPSHOT
</version>
<version>
${revision}
</version>
<relativePath>
../pom.xml
</relativePath>
</parent>
...
...
This diff is collapsed.
Click to expand it.
rome-certiorem/pom.xml
+
1
-
1
View file @
001d1cca
...
...
@@ -5,7 +5,7 @@
<parent>
<groupId>
com.rometools
</groupId>
<artifactId>
rome-parent
</artifactId>
<version>
1.15.1-SNAPSHOT
</version>
<version>
${revision}
</version>
<relativePath>
../pom.xml
</relativePath>
</parent>
...
...
This diff is collapsed.
Click to expand it.
rome-fetcher/pom.xml
+
1
-
1
View file @
001d1cca
...
...
@@ -6,7 +6,7 @@
<parent>
<groupId>
com.rometools
</groupId>
<artifactId>
rome-parent
</artifactId>
<version>
1.15.1-SNAPSHOT
</version>
<version>
${revision}
</version>
<relativePath>
../pom.xml
</relativePath>
</parent>
...
...
This diff is collapsed.
Click to expand it.
rome-modules/pom.xml
+
1
-
1
View file @
001d1cca
...
...
@@ -5,7 +5,7 @@
<parent>
<groupId>
com.rometools
</groupId>
<artifactId>
rome-parent
</artifactId>
<version>
1.15.1-SNAPSHOT
</version>
<version>
${revision}
</version>
<relativePath>
../pom.xml
</relativePath>
</parent>
...
...
This diff is collapsed.
Click to expand it.
rome-opml/pom.xml
+
1
-
1
View file @
001d1cca
...
...
@@ -5,7 +5,7 @@
<parent>
<groupId>
com.rometools
</groupId>
<artifactId>
rome-parent
</artifactId>
<version>
1.15.1-SNAPSHOT
</version>
<version>
${revision}
</version>
<relativePath>
../pom.xml
</relativePath>
</parent>
...
...
This diff is collapsed.
Click to expand it.
rome-propono/pom.xml
+
1
-
1
View file @
001d1cca
...
...
@@ -5,7 +5,7 @@
<parent>
<groupId>
com.rometools
</groupId>
<artifactId>
rome-parent
</artifactId>
<version>
1.15.1-SNAPSHOT
</version>
<version>
${revision}
</version>
<relativePath>
../pom.xml
</relativePath>
</parent>
...
...
This diff is collapsed.
Click to expand it.
rome-utils/pom.xml
+
1
-
1
View file @
001d1cca
...
...
@@ -5,7 +5,7 @@
<parent>
<groupId>
com.rometools
</groupId>
<artifactId>
rome-parent
</artifactId>
<version>
1.15.1-SNAPSHOT
</version>
<version>
${revision}
</version>
<relativePath>
../pom.xml
</relativePath>
</parent>
...
...
This diff is collapsed.
Click to expand it.
rome/pom.xml
+
1
-
1
View file @
001d1cca
...
...
@@ -5,7 +5,7 @@
<parent>
<groupId>
com.rometools
</groupId>
<artifactId>
rome-parent
</artifactId>
<version>
1.15.1-SNAPSHOT
</version>
<version>
${revision}
</version>
<relativePath>
../pom.xml
</relativePath>
</parent>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets