Skip to content

Commit d896200

Browse files
committed
Update release profile
1 parent 7cdfaed commit d896200

File tree

2 files changed

+54
-57
lines changed

2 files changed

+54
-57
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,5 @@ target
2828
# idea
2929
.idea
3030
*.iml
31+
32+
.vscode

pom.xml

Lines changed: 52 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<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/maven-v4_0_0.xsd">
1+
<project xmlns="http://maven.apache.org/POM/4.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
24
<modelVersion>4.0.0</modelVersion>
35
<groupId>com.detectlanguage</groupId>
46
<artifactId>detectlanguage</artifactId>
@@ -55,18 +57,54 @@
5557
<profiles>
5658
<profile>
5759
<id>release</id>
58-
<activation>
59-
<property>
60-
<name>performRelease</name>
61-
<value>true</value>
62-
</property>
63-
</activation>
6460
<build>
6561
<plugins>
62+
<plugin>
63+
<groupId>org.sonatype.central</groupId>
64+
<artifactId>central-publishing-maven-plugin</artifactId>
65+
<version>0.4.0</version>
66+
<extensions>true</extensions>
67+
<configuration>
68+
<publishingServerId>central</publishingServerId>
69+
<tokenAuth>true</tokenAuth>
70+
<autoPublish>true</autoPublish>
71+
</configuration>
72+
</plugin>
73+
<plugin>
74+
<groupId>org.apache.maven.plugins</groupId>
75+
<artifactId>maven-source-plugin</artifactId>
76+
<version>3.3.0</version>
77+
<executions>
78+
<execution>
79+
<id>attach-sources</id>
80+
<phase>verify</phase>
81+
<goals>
82+
<goal>jar-no-fork</goal>
83+
</goals>
84+
</execution>
85+
</executions>
86+
</plugin>
87+
<plugin>
88+
<groupId>org.apache.maven.plugins</groupId>
89+
<artifactId>maven-javadoc-plugin</artifactId>
90+
<version>3.6.3</version>
91+
<executions>
92+
<execution>
93+
<id>attach-javadoc</id>
94+
<goals>
95+
<goal>jar</goal>
96+
</goals>
97+
</execution>
98+
</executions>
99+
<configuration>
100+
<stylesheet>java</stylesheet>
101+
<doclint>none</doclint>
102+
</configuration>
103+
</plugin>
66104
<plugin>
67105
<groupId>org.apache.maven.plugins</groupId>
68106
<artifactId>maven-gpg-plugin</artifactId>
69-
<version>1.4</version>
107+
<version>3.1.0</version>
70108
<executions>
71109
<execution>
72110
<id>sign-artifacts</id>
@@ -76,58 +114,15 @@
76114
</goals>
77115
</execution>
78116
</executions>
117+
<configuration>
118+
<gpgArguments>
119+
<arg>--pinentry-mode</arg>
120+
<arg>loopback</arg>
121+
</gpgArguments>
122+
</configuration>
79123
</plugin>
80124
</plugins>
81125
</build>
82126
</profile>
83127
</profiles>
84-
<distributionManagement>
85-
<snapshotRepository>
86-
<id>ossrh</id>
87-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
88-
</snapshotRepository>
89-
<repository>
90-
<id>ossrh</id>
91-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
92-
</repository>
93-
</distributionManagement>
94-
<build>
95-
<plugins>
96-
<plugin>
97-
<groupId>org.apache.maven.plugins</groupId>
98-
<artifactId>maven-compiler-plugin</artifactId>
99-
<version>3.11.0</version>
100-
<configuration>
101-
<source>8</source>
102-
<target>8</target>
103-
</configuration>
104-
</plugin>
105-
<plugin>
106-
<groupId>org.apache.maven.plugins</groupId>
107-
<artifactId>maven-source-plugin</artifactId>
108-
<version>2.2.1</version>
109-
<executions>
110-
<execution>
111-
<id>attach-sources</id>
112-
<goals>
113-
<goal>jar</goal>
114-
</goals>
115-
</execution>
116-
</executions>
117-
</plugin>
118-
<plugin>
119-
<groupId>org.apache.maven.plugins</groupId>
120-
<artifactId>maven-javadoc-plugin</artifactId>
121-
<version>2.9</version>
122-
<executions>
123-
<execution>
124-
<id>attach-javadocs</id>
125-
<goals>
126-
<goal>jar</goal>
127-
</goals>
128-
</execution>
129-
</executions>
130-
</plugin>
131-
</plugins>
132-
</build>
133128
</project>

0 commit comments

Comments
 (0)