Skip to content

Commit 3cbfed9

Browse files
fix(pom.xml): review config + test packaging/releasing
1 parent ea79496 commit 3cbfed9

File tree

1 file changed

+63
-103
lines changed

1 file changed

+63
-103
lines changed

pom.xml

Lines changed: 63 additions & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,22 @@
22

33
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
44
<modelVersion>4.0.0</modelVersion>
5-
5+
<properties>
6+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
7+
</properties>
68
<groupId>net.hexonet.apiconnector</groupId>
79
<artifactId>java-sdk</artifactId>
810
<version>2.1.1</version>
9-
11+
<packaging>jar</packaging>
1012
<name>java-sdk</name>
1113
<description>A connector library for the insanely fast HEXONET backend API.</description>
12-
<url>http://hexonet.net</url>
13-
<scm>
14-
<connection>scm:git:https://github.com/hexonet/java-sdk</connection>
15-
<developerConnection>scm:git:https://github.com/hexonet/java-sdk</developerConnection>
16-
<url>https://github.com/hexonet/java-sdk</url>
17-
<tag>HEAD</tag>
18-
</scm>
19-
20-
<prerequisites>
21-
<maven>3.0.5</maven>
22-
</prerequisites>
23-
14+
<url>https://github.com/hexonet/java-sdk</url>
2415
<licenses>
2516
<license>
2617
<name>MIT License</name>
27-
<url>http://www.opensource.org/licenses/mit-license.php</url>
18+
<url>https://opensource.org/licenses/MIT</url>
2819
</license>
2920
</licenses>
30-
3121
<developers>
3222
<developer>
3323
<name>Kai Schwarz</name>
@@ -36,20 +26,12 @@
3626
<organizationUrl>https://www.hexonet.net</organizationUrl>
3727
</developer>
3828
</developers>
39-
40-
<properties>
41-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
42-
</properties>
43-
44-
<dependencies>
45-
<dependency>
46-
<groupId>junit</groupId>
47-
<artifactId>junit</artifactId>
48-
<version>4.13-beta-1</version>
49-
<scope>test</scope>
50-
</dependency>
51-
</dependencies>
52-
29+
<scm>
30+
<connection>scm:git:https://github.com/hexonet/java-sdk</connection>
31+
<developerConnection>scm:git:https://github.com/hexonet/java-sdk</developerConnection>
32+
<url>https://github.com/hexonet/java-sdk</url>
33+
<tag>HEAD</tag>
34+
</scm>
5335
<distributionManagement>
5436
<snapshotRepository>
5537
<id>ossrh</id>
@@ -60,75 +42,48 @@
6042
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
6143
</repository>
6244
</distributionManagement>
63-
64-
<profiles>
65-
<profile>
66-
<id>release</id>
67-
<build>
68-
<plugins>
69-
<plugin>
70-
<groupId>org.apache.maven.plugins</groupId>
71-
<artifactId>maven-source-plugin</artifactId>
72-
<version>3.0.1</version>
73-
<executions>
74-
<execution>
75-
<id>attach-sources</id>
76-
<goals>
77-
<goal>jar-no-fork</goal>
78-
</goals>
79-
</execution>
80-
</executions>
81-
</plugin>
82-
<plugin>
83-
<groupId>org.apache.maven.plugins</groupId>
84-
<artifactId>maven-javadoc-plugin</artifactId>
85-
<version>3.0.1</version>
86-
<executions>
87-
<execution>
88-
<id>attach-javadocs</id>
89-
<goals>
90-
<goal>jar</goal>
91-
</goals>
92-
</execution>
93-
</executions>
94-
</plugin>
95-
<plugin>
96-
<groupId>org.apache.maven.plugins</groupId>
97-
<artifactId>maven-gpg-plugin</artifactId>
98-
<version>1.6</version>
99-
<executions>
100-
<execution>
101-
<id>sign-artifacts</id>
102-
<phase>verify</phase>
103-
<goals>
104-
<goal>sign</goal>
105-
</goals>
106-
</execution>
107-
</executions>
108-
</plugin>
109-
</plugins>
110-
</build>
111-
</profile>
112-
</profiles>
113-
11445
<build>
11546
<pluginManagement>
11647
<plugins>
11748
<plugin>
118-
<groupId>org.codehaus.mojo</groupId>
119-
<artifactId>versions-maven-plugin</artifactId>
120-
<version>2.7</version>
121-
<configuration>
122-
<reportSets>
123-
<reportSet>
124-
<reports>
125-
<report>dependency-updates-report</report>
126-
<report>plugin-updates-report</report>
127-
<report>property-updates-report</report>
128-
</reports>
129-
</reportSet>
130-
</reportSets>
131-
</configuration>
49+
<groupId>org.apache.maven.plugins</groupId>
50+
<artifactId>maven-gpg-plugin</artifactId>
51+
<version>1.6</version>
52+
<executions>
53+
<execution>
54+
<id>sign-artifacts</id>
55+
<phase>verify</phase>
56+
<goals>
57+
<goal>sign</goal>
58+
</goals>
59+
</execution>
60+
</executions>
61+
</plugin>
62+
<plugin>
63+
<groupId>org.apache.maven.plugins</groupId>
64+
<artifactId>maven-javadoc-plugin</artifactId>
65+
<version>3.0.1</version>
66+
<executions>
67+
<execution>
68+
<id>attach-javadocs</id>
69+
<goals>
70+
<goal>jar</goal>
71+
</goals>
72+
</execution>
73+
</executions>
74+
</plugin>
75+
<plugin>
76+
<groupId>org.apache.maven.plugins</groupId>
77+
<artifactId>maven-source-plugin</artifactId>
78+
<version>3.0.1</version>
79+
<executions>
80+
<execution>
81+
<id>attach-sources</id>
82+
<goals>
83+
<goal>jar-no-fork</goal>
84+
</goals>
85+
</execution>
86+
</executions>
13287
</plugin>
13388
<plugin>
13489
<groupId>org.sonatype.plugins</groupId>
@@ -179,9 +134,6 @@
179134
<configuration>
180135
<tagNameFormat>v@{project.version}</tagNameFormat>
181136
<autoVersionSubmodules>true</autoVersionSubmodules>
182-
<useReleaseProfile>false</useReleaseProfile>
183-
<releaseProfiles>release</releaseProfiles>
184-
<goals>deploy</goals>
185137
</configuration>
186138
</plugin>
187139
<plugin>
@@ -190,21 +142,29 @@
190142
<version>3.0.0-M2</version>
191143
<executions>
192144
<execution>
193-
<id>enforce-maven</id>
145+
<id>enforce-versions</id>
194146
<goals>
195147
<goal>enforce</goal>
196148
</goals>
197149
<configuration>
198150
<rules>
199151
<requireMavenVersion>
200-
<version>3.0.4</version>
152+
<version>3.0.5</version>
201153
</requireMavenVersion>
202-
</rules>
203-
</configuration>
154+
</rules>
155+
</configuration>
204156
</execution>
205157
</executions>
206158
</plugin>
207159
</plugins>
208160
</pluginManagement>
209161
</build>
210-
</project>
162+
<dependencies>
163+
<dependency>
164+
<groupId>junit</groupId>
165+
<artifactId>junit</artifactId>
166+
<version>4.13-beta-1</version>
167+
<scope>test</scope>
168+
</dependency>
169+
</dependencies>
170+
</project>

0 commit comments

Comments
 (0)