|
108 | 108 | <build> |
109 | 109 | <pluginManagement> |
110 | 110 | <plugins> |
111 | | - <plugin> |
112 | | - <groupId>org.apache.maven.plugins</groupId> |
113 | | - <artifactId>maven-javadoc-plugin</artifactId> |
114 | | - <version>${maven-javadoc-plugin.version}</version> |
115 | | - <configuration> |
116 | | - <source>${java.version}</source> |
117 | | - </configuration> |
118 | | - </plugin> |
119 | 111 | <plugin> |
120 | 112 | <groupId>org.apache.maven.plugins</groupId> |
121 | 113 | <artifactId>maven-surefire-plugin</artifactId> |
|
134 | 126 | <artifactId>maven-compiler-plugin</artifactId> |
135 | 127 | <version>${maven-compiler-plugin.version}</version> |
136 | 128 | <configuration> |
137 | | - <source>${java.version}</source> |
138 | | - <target>${java.version}</target> |
| 129 | + <release>${java.version}</release> |
139 | 130 | <compilerArgument>-parameters</compilerArgument> |
140 | 131 | <testCompilerArgument>-parameters</testCompilerArgument> |
141 | 132 | <encoding>utf8</encoding> |
|
173 | 164 | </dependency> |
174 | 165 | </dependencies> |
175 | 166 | </plugin> |
| 167 | + |
| 168 | + <plugin> |
| 169 | + <groupId>org.apache.maven.plugins</groupId> |
| 170 | + <artifactId>maven-source-plugin</artifactId> |
| 171 | + <version>3.3.0</version> |
| 172 | + <executions> |
| 173 | + <execution> |
| 174 | + <id>attach-sources</id> |
| 175 | + <phase>package</phase> |
| 176 | + <goals> |
| 177 | + <goal>jar-no-fork</goal> |
| 178 | + </goals> |
| 179 | + </execution> |
| 180 | + </executions> |
| 181 | + </plugin> |
| 182 | + |
| 183 | + <plugin> |
| 184 | + <groupId>org.apache.maven.plugins</groupId> |
| 185 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 186 | + <version>${maven-javadoc-plugin.version}</version> |
| 187 | + <configuration> |
| 188 | + <doclint>none</doclint> |
| 189 | + </configuration> |
| 190 | + <executions> |
| 191 | + <execution> |
| 192 | + <id>attach-javadocs</id> |
| 193 | + <phase>package</phase> |
| 194 | + <goals> |
| 195 | + <goal>jar</goal> |
| 196 | + </goals> |
| 197 | + </execution> |
| 198 | + </executions> |
| 199 | + </plugin> |
| 200 | + |
| 201 | + <plugin> |
| 202 | + <groupId>org.apache.maven.plugins</groupId> |
| 203 | + <artifactId>maven-gpg-plugin</artifactId> |
| 204 | + <version>${maven-gpg-plugin.version}</version> |
| 205 | + <executions> |
| 206 | + <execution> |
| 207 | + <id>sign-artifacts</id> |
| 208 | + <phase>verify</phase> |
| 209 | + <goals> |
| 210 | + <goal>sign</goal> |
| 211 | + </goals> |
| 212 | + </execution> |
| 213 | + </executions> |
| 214 | + </plugin> |
| 215 | + |
| 216 | + <plugin> |
| 217 | + <groupId>org.sonatype.central</groupId> |
| 218 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 219 | + <version>0.9.0</version> |
| 220 | + <extensions>true</extensions> |
| 221 | + <configuration> |
| 222 | + <publishingServerId>central</publishingServerId> |
| 223 | + <autoPublish>true</autoPublish> |
| 224 | + <waitUntil>published</waitUntil> |
| 225 | + <skipPublishing>true</skipPublishing> |
| 226 | + </configuration> |
| 227 | + </plugin> |
| 228 | + |
| 229 | + <plugin> |
| 230 | + <groupId>org.apache.maven.plugins</groupId> |
| 231 | + <artifactId>maven-deploy-plugin</artifactId> |
| 232 | + <version>3.1.2</version> |
| 233 | + <configuration> |
| 234 | + <skip>true</skip> |
| 235 | + </configuration> |
| 236 | + </plugin> |
176 | 237 | </plugins> |
177 | 238 | </build> |
178 | 239 |
|
179 | 240 | <profiles> |
180 | 241 | <profile> |
181 | | - <id>release-sign-artifacts</id> |
182 | | - <activation> |
183 | | - <property> |
184 | | - <name>performRelease</name> |
185 | | - <value>true</value> |
186 | | - </property> |
187 | | - </activation> |
| 242 | + <id>release-to-central</id> |
188 | 243 | <build> |
189 | 244 | <plugins> |
190 | 245 | <plugin> |
191 | | - <groupId>org.apache.maven.plugins</groupId> |
192 | | - <artifactId>maven-gpg-plugin</artifactId> |
193 | | - <version>${maven-gpg-plugin.version}</version> |
194 | | - <executions> |
195 | | - <execution> |
196 | | - <id>sign-artifacts</id> |
197 | | - <phase>verify</phase> |
198 | | - <goals> |
199 | | - <goal>sign</goal> |
200 | | - </goals> |
201 | | - </execution> |
202 | | - </executions> |
| 246 | + <groupId>org.sonatype.central</groupId> |
| 247 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 248 | + <configuration> |
| 249 | + <skipPublishing>false</skipPublishing> |
| 250 | + </configuration> |
203 | 251 | </plugin> |
204 | 252 | </plugins> |
205 | 253 | </build> |
206 | 254 | </profile> |
207 | 255 | </profiles> |
208 | | - |
209 | | - <distributionManagement> |
210 | | - <repository> |
211 | | - <id>ossrh</id> |
212 | | - <name>SonatypeReleases</name> |
213 | | - <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
214 | | - </repository> |
215 | | - </distributionManagement> |
216 | 256 | </project> |
0 commit comments