|
7 | 7 | <parent> |
8 | 8 | <groupId>de.codecentric.reedelk</groupId> |
9 | 9 | <artifactId>module-parent</artifactId> |
10 | | - <version>1.1.0</version> |
| 10 | + <version>2.0.0</version> |
11 | 11 | </parent> |
12 | 12 |
|
13 | 13 | <packaging>bundle</packaging> |
14 | | - <version>1.1.0</version> |
| 14 | + <version>2.0.0</version> |
15 | 15 | <artifactId>module-xml</artifactId> |
16 | 16 |
|
17 | 17 | <properties> |
|
22 | 22 | <mockito.version>2.23.0</mockito.version> |
23 | 23 | <saxon.version>9.9.1-6</saxon.version> |
24 | 24 | <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> |
25 | 33 | </properties> |
26 | 34 |
|
27 | 35 | <dependencies> |
|
102 | 110 | </plugin> |
103 | 111 | </plugins> |
104 | 112 | </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> |
105 | 205 | </project> |
0 commit comments