|
14 | 14 | <url>https://github.com/EinfacheSache/EasyAPI</url> |
15 | 15 | <description>A lightweight and easy-to-use API</description> |
16 | 16 |
|
| 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 | + |
17 | 28 | <licenses> |
18 | 29 | <license> |
19 | 30 | <name>MIT License</name> |
|
41 | 52 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
42 | 53 | </properties> |
43 | 54 |
|
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 | | - |
53 | 55 | <build> |
54 | 56 | <plugins> |
55 | 57 | <!-- Java-Compiler --> |
|
110 | 112 | </execution> |
111 | 113 | </executions> |
112 | 114 | </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> |
142 | 115 | </plugins> |
143 | 116 |
|
144 | 117 | <resources> |
|
201 | 174 | <scope>provided</scope> |
202 | 175 | </dependency> |
203 | 176 | </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> |
204 | 215 | </project> |
0 commit comments