Skip to content

Commit fd67f08

Browse files
committed
prepared 2.1.0-beta3
1 parent 17e573e commit fd67f08

File tree

4 files changed

+54
-159
lines changed

4 files changed

+54
-159
lines changed

.github/workflows/maven.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ jobs:
1313
uses: actions/setup-java@v1
1414
with:
1515
java-version: 11
16+
server-id: github
17+
server-username: GITHUB_USER_REF
18+
server-password: GITHUB_TOKEN_REF
1619

1720
- name: Build with Maven
1821
run: mvn -B install --no-transfer-progress --file pom.xml
22+
env:
23+
GITHUB_USER_REF: ${{ secrets.GH_PACKAGE_REPO_USERNAME }}
24+
GITHUB_TOKEN_REF: ${{ secrets.GH_PACKAGE_REPO_PASSWORD }}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Publish packages to GitHub Packages
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-java@v2
11+
with:
12+
java-version: '11'
13+
distribution: 'adopt'
14+
server-id: github
15+
server-username: GITHUB_USER_REF
16+
server-password: GITHUB_TOKEN_REF
17+
- name: Publish package
18+
run: mvn --batch-mode deploy -DskipTests
19+
env:
20+
GITHUB_USER_REF: ${{ secrets.GH_PACKAGE_REPO_USERNAME }}
21+
GITHUB_TOKEN_REF: ${{ secrets.GH_PACKAGE_REPO_PASSWORD }}

.github/workflows/release-to-maven-central.yml

Lines changed: 0 additions & 56 deletions
This file was deleted.

pom.xml

Lines changed: 27 additions & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
<parent>
88
<groupId>de.codecentric.reedelk</groupId>
99
<artifactId>module-parent</artifactId>
10-
<version>2.0.0</version>
10+
<version>2.1.0-beta3</version>
1111
</parent>
1212

1313
<packaging>bundle</packaging>
14-
<version>2.0.0</version>
14+
<version>2.1.0-beta3</version>
1515
<artifactId>module-xml</artifactId>
1616

1717
<properties>
@@ -22,16 +22,32 @@
2222
<mockito.version>2.23.0</mockito.version>
2323
<saxon.version>9.9.1-6</saxon.version>
2424
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
25-
26-
<!-- Maven Central Release tools -->
27-
<versions-maven-plugin.version>2.8.1</versions-maven-plugin.version>
28-
<maven-deploy-plugin.version>3.0.0-M1</maven-deploy-plugin.version>
29-
<maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
30-
<maven-source-plugin.version>3.2.1</maven-source-plugin.version>
31-
<maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version>
32-
<nexus-staging-maven-plugin.version>1.6.8</nexus-staging-maven-plugin.version>
3325
</properties>
34-
26+
<pluginRepositories>
27+
<pluginRepository>
28+
<id>github</id>
29+
<name>Reedelk Runtime Packages</name>
30+
<url>https://maven.pkg.github.com/codecentric/reedelk-runtime</url>
31+
<releases><enabled>true</enabled></releases>
32+
<snapshots><enabled>true</enabled></snapshots>
33+
</pluginRepository>
34+
</pluginRepositories>
35+
<repositories>
36+
<repository>
37+
<id>github</id>
38+
<name>Reedelk Runtime Packages</name>
39+
<url>https://maven.pkg.github.com/codecentric/reedelk-runtime</url>
40+
<releases><enabled>true</enabled></releases>
41+
<snapshots><enabled>true</enabled></snapshots>
42+
</repository>
43+
</repositories>
44+
<distributionManagement>
45+
<repository>
46+
<id>github</id>
47+
<name>GitHub Packages</name>
48+
<url>https://maven.pkg.github.com/codecentric/reedelk-module-xml</url>
49+
</repository>
50+
</distributionManagement>
3551
<dependencies>
3652
<dependency>
3753
<groupId>net.sf.saxon</groupId>
@@ -110,96 +126,4 @@
110126
</plugin>
111127
</plugins>
112128
</build>
113-
<profiles>
114-
<!-- plugins needed to deploy to Maven Central -->
115-
<profile>
116-
<id>central-deploy</id>
117-
<build>
118-
<plugins>
119-
<plugin>
120-
<artifactId>maven-gpg-plugin</artifactId>
121-
<version>${maven-gpg-plugin.version}</version>
122-
<executions>
123-
<execution>
124-
<id>sign-artifacts</id>
125-
<phase>verify</phase>
126-
<goals>
127-
<goal>sign</goal>
128-
</goals>
129-
<configuration>
130-
<!-- This is necessary for gpg to not try to use the pinentry programs -->
131-
<gpgArguments>
132-
<arg>--pinentry-mode</arg>
133-
<arg>loopback</arg>
134-
</gpgArguments>
135-
</configuration>
136-
</execution>
137-
</executions>
138-
</plugin>
139-
<plugin>
140-
<groupId>org.codehaus.mojo</groupId>
141-
<artifactId>versions-maven-plugin</artifactId>
142-
<version>${versions-maven-plugin.version}</version>
143-
<configuration>
144-
<generateBackupPoms>false</generateBackupPoms>
145-
</configuration>
146-
</plugin>
147-
<plugin>
148-
<artifactId>maven-deploy-plugin</artifactId>
149-
<version>${maven-deploy-plugin.version}</version>
150-
<configuration>
151-
<skip>true</skip>
152-
</configuration>
153-
</plugin>
154-
<plugin>
155-
<groupId>org.apache.maven.plugins</groupId>
156-
<artifactId>maven-source-plugin</artifactId>
157-
<version>${maven-source-plugin.version}</version>
158-
<executions>
159-
<execution>
160-
<id>attach-sources</id>
161-
<goals>
162-
<goal>jar</goal>
163-
</goals>
164-
</execution>
165-
</executions>
166-
</plugin>
167-
<plugin>
168-
<groupId>org.apache.maven.plugins</groupId>
169-
<artifactId>maven-javadoc-plugin</artifactId>
170-
<version>${maven-javadoc-plugin.version}</version>
171-
<executions>
172-
<execution>
173-
<id>attach-javadocs</id>
174-
<goals>
175-
<goal>jar</goal>
176-
</goals>
177-
</execution>
178-
</executions>
179-
</plugin>
180-
<plugin>
181-
<groupId>org.sonatype.plugins</groupId>
182-
<artifactId>nexus-staging-maven-plugin</artifactId>
183-
<version>${nexus-staging-maven-plugin.version}</version>
184-
<extensions>true</extensions>
185-
<configuration>
186-
<serverId>oss.sonatype.org</serverId>
187-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
188-
<description>${project.version}</description>
189-
</configuration>
190-
<executions>
191-
<execution>
192-
<id>deploy-to-sonatype</id>
193-
<phase>deploy</phase>
194-
<goals>
195-
<goal>deploy</goal>
196-
<goal>release</goal>
197-
</goals>
198-
</execution>
199-
</executions>
200-
</plugin>
201-
</plugins>
202-
</build>
203-
</profile>
204-
</profiles>
205129
</project>

0 commit comments

Comments
 (0)