Skip to content

Commit f39d0c4

Browse files
committed
Changes -> smale fix
1 parent 904e330 commit f39d0c4

2 files changed

Lines changed: 50 additions & 39 deletions

File tree

.github/workflows/maven-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
gpg-passphrase: MAVEN_GPG_PASSPHRASE
2727

2828
- name: Build and deploy
29-
run: mvn -B clean deploy
29+
run: mvn -B clean deploy -P release
3030
env:
3131
MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
3232
MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}

pom.xml

Lines changed: 49 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,17 @@
1414
<url>https://github.com/EinfacheSache/EasyAPI</url>
1515
<description>A lightweight and easy-to-use API</description>
1616

17+
18+
<!-- Nur für SNAPSHOTs wichtig – Releases laufen über das Central Publishing Plugin -->
19+
<distributionManagement>
20+
<snapshotRepository>
21+
<id>central</id>
22+
<name>OSSRH Snapshot Repository</name>
23+
<url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url>
24+
</snapshotRepository>
25+
</distributionManagement>
26+
27+
1728
<licenses>
1829
<license>
1930
<name>MIT License</name>
@@ -41,15 +52,6 @@
4152
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4253
</properties>
4354

44-
<!-- Nur für SNAPSHOTs wichtig – Releases laufen über das Central Publishing Plugin -->
45-
<distributionManagement>
46-
<snapshotRepository>
47-
<id>central</id>
48-
<name>OSSRH Snapshot Repository</name>
49-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url>
50-
</snapshotRepository>
51-
</distributionManagement>
52-
5355
<build>
5456
<plugins>
5557
<!-- Java-Compiler -->
@@ -110,35 +112,6 @@
110112
</execution>
111113
</executions>
112114
</plugin>
113-
114-
<!-- Neues Central Publishing Plugin für "normale" Releases -->
115-
<plugin>
116-
<groupId>org.sonatype.central</groupId>
117-
<artifactId>central-publishing-maven-plugin</artifactId>
118-
<version>0.7.0</version>
119-
<extensions>true</extensions>
120-
<configuration>
121-
<!-- ID muss zu settings.xml / GitHub Action server-id=central passen -->
122-
<publishingServerId>central</publishingServerId>
123-
<autoPublish>true</autoPublish>
124-
</configuration>
125-
</plugin>
126-
127-
<!-- GPG-Signaturen (Pflicht für Central) -->
128-
<plugin>
129-
<groupId>org.apache.maven.plugins</groupId>
130-
<artifactId>maven-gpg-plugin</artifactId>
131-
<version>3.2.4</version>
132-
<executions>
133-
<execution>
134-
<id>sign-artifacts</id>
135-
<phase>verify</phase>
136-
<goals>
137-
<goal>sign</goal>
138-
</goals>
139-
</execution>
140-
</executions>
141-
</plugin>
142115
</plugins>
143116

144117
<resources>
@@ -201,4 +174,42 @@
201174
<scope>provided</scope>
202175
</dependency>
203176
</dependencies>
177+
178+
<profiles>
179+
<profile>
180+
<id>release</id>
181+
<build>
182+
<plugins>
183+
<!-- GPG-Signaturen (Pflicht für Central) -->
184+
<plugin>
185+
<groupId>org.apache.maven.plugins</groupId>
186+
<artifactId>maven-gpg-plugin</artifactId>
187+
<version>3.2.4</version>
188+
<executions>
189+
<execution>
190+
<id>sign-artifacts</id>
191+
<phase>verify</phase>
192+
<goals>
193+
<goal>sign</goal>
194+
</goals>
195+
</execution>
196+
</executions>
197+
</plugin>
198+
199+
<!-- Neues Central Publishing Plugin für "normale" Releases -->
200+
<plugin>
201+
<groupId>org.sonatype.central</groupId>
202+
<artifactId>central-publishing-maven-plugin</artifactId>
203+
<version>0.7.0</version>
204+
<extensions>true</extensions>
205+
<configuration>
206+
<!-- ID muss zu settings.xml / GitHub Action server-id=central passen -->
207+
<publishingServerId>central</publishingServerId>
208+
<autoPublish>true</autoPublish>
209+
</configuration>
210+
</plugin>
211+
</plugins>
212+
</build>
213+
</profile>
214+
</profiles>
204215
</project>

0 commit comments

Comments
 (0)