|
7 | 7 | <parent>
|
8 | 8 | <groupId>de.codecentric.reedelk</groupId>
|
9 | 9 | <artifactId>module-parent</artifactId>
|
10 |
| - <version>2.0.0</version> |
| 10 | + <version>2.1.0-alpha</version> |
11 | 11 | </parent>
|
12 | 12 |
|
13 | 13 | <packaging>bundle</packaging>
|
14 |
| - <version>2.0.0</version> |
| 14 | + <version>2.1.0-alpha</version> |
15 | 15 | <artifactId>module-file</artifactId>
|
16 | 16 |
|
17 | 17 | <properties>
|
|
20 | 20 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
21 | 21 | <junit.version>5.5.2</junit.version>
|
22 | 22 | <jacoco.version>0.8.2</jacoco.version>
|
| 23 | + |
| 24 | + <!-- Maven Central Release tools --> |
| 25 | + <versions-maven-plugin.version>2.8.1</versions-maven-plugin.version> |
| 26 | + <maven-deploy-plugin.version>3.0.0-M1</maven-deploy-plugin.version> |
| 27 | + <maven-gpg-plugin.version>1.6</maven-gpg-plugin.version> |
| 28 | + <maven-source-plugin.version>3.2.1</maven-source-plugin.version> |
| 29 | + <maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version> |
| 30 | + <nexus-staging-maven-plugin.version>1.6.8</nexus-staging-maven-plugin.version> |
23 | 31 | </properties>
|
24 | 32 |
|
25 | 33 | <dependencies>
|
|
82 | 90 | </plugin>
|
83 | 91 | </plugins>
|
84 | 92 | </build>
|
| 93 | + <profiles> |
| 94 | + <!-- plugins needed to deploy to Maven Central --> |
| 95 | + <profile> |
| 96 | + <id>central-deploy</id> |
| 97 | + <build> |
| 98 | + <plugins> |
| 99 | + <plugin> |
| 100 | + <artifactId>maven-gpg-plugin</artifactId> |
| 101 | + <version>${maven-gpg-plugin.version}</version> |
| 102 | + <executions> |
| 103 | + <execution> |
| 104 | + <id>sign-artifacts</id> |
| 105 | + <phase>verify</phase> |
| 106 | + <goals> |
| 107 | + <goal>sign</goal> |
| 108 | + </goals> |
| 109 | + <configuration> |
| 110 | + <!-- This is necessary for gpg to not try to use the pinentry programs --> |
| 111 | + <gpgArguments> |
| 112 | + <arg>--pinentry-mode</arg> |
| 113 | + <arg>loopback</arg> |
| 114 | + </gpgArguments> |
| 115 | + </configuration> |
| 116 | + </execution> |
| 117 | + </executions> |
| 118 | + </plugin> |
| 119 | + <plugin> |
| 120 | + <groupId>org.codehaus.mojo</groupId> |
| 121 | + <artifactId>versions-maven-plugin</artifactId> |
| 122 | + <version>${versions-maven-plugin.version}</version> |
| 123 | + <configuration> |
| 124 | + <generateBackupPoms>false</generateBackupPoms> |
| 125 | + </configuration> |
| 126 | + </plugin> |
| 127 | + <plugin> |
| 128 | + <artifactId>maven-deploy-plugin</artifactId> |
| 129 | + <version>${maven-deploy-plugin.version}</version> |
| 130 | + <configuration> |
| 131 | + <skip>true</skip> |
| 132 | + </configuration> |
| 133 | + </plugin> |
| 134 | + <plugin> |
| 135 | + <groupId>org.apache.maven.plugins</groupId> |
| 136 | + <artifactId>maven-source-plugin</artifactId> |
| 137 | + <version>${maven-source-plugin.version}</version> |
| 138 | + <executions> |
| 139 | + <execution> |
| 140 | + <id>attach-sources</id> |
| 141 | + <goals> |
| 142 | + <goal>jar</goal> |
| 143 | + </goals> |
| 144 | + </execution> |
| 145 | + </executions> |
| 146 | + </plugin> |
| 147 | + <plugin> |
| 148 | + <groupId>org.apache.maven.plugins</groupId> |
| 149 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 150 | + <version>${maven-javadoc-plugin.version}</version> |
| 151 | + <executions> |
| 152 | + <execution> |
| 153 | + <id>attach-javadocs</id> |
| 154 | + <goals> |
| 155 | + <goal>jar</goal> |
| 156 | + </goals> |
| 157 | + </execution> |
| 158 | + </executions> |
| 159 | + </plugin> |
| 160 | + <plugin> |
| 161 | + <groupId>org.sonatype.plugins</groupId> |
| 162 | + <artifactId>nexus-staging-maven-plugin</artifactId> |
| 163 | + <version>${nexus-staging-maven-plugin.version}</version> |
| 164 | + <extensions>true</extensions> |
| 165 | + <configuration> |
| 166 | + <serverId>oss.sonatype.org</serverId> |
| 167 | + <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
| 168 | + <description>${project.version}</description> |
| 169 | + </configuration> |
| 170 | + <executions> |
| 171 | + <execution> |
| 172 | + <id>deploy-to-sonatype</id> |
| 173 | + <phase>deploy</phase> |
| 174 | + <goals> |
| 175 | + <goal>deploy</goal> |
| 176 | + <goal>release</goal> |
| 177 | + </goals> |
| 178 | + </execution> |
| 179 | + </executions> |
| 180 | + </plugin> |
| 181 | + </plugins> |
| 182 | + </build> |
| 183 | + </profile> |
| 184 | + </profiles> |
85 | 185 | </project>
|
0 commit comments