Skip to content

Commit 589623d

Browse files
committed
Add release profile
1 parent 29893e3 commit 589623d

File tree

1 file changed

+90
-3
lines changed

1 file changed

+90
-3
lines changed

pom.xml

Lines changed: 90 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
33
<modelVersion>4.0.0</modelVersion>
44

5-
<groupId>org.mvnsearch.h2</groupId>
5+
<groupId>org.mvnsearch</groupId>
66
<artifactId>h2-functions-4-mysql</artifactId>
77
<version>1.0.0-SNAPSHOT</version>
88
<packaging>jar</packaging>
@@ -12,15 +12,36 @@
1212
<description>H2 user defined functions for MySQL compatible</description>
1313

1414
<properties>
15+
<java.version>1.8</java.version>
16+
<maven.compiler.source>${java.version}</maven.compiler.source>
17+
<maven.compiler.target>${java.version}</maven.compiler.target>
1518
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1619
</properties>
1720

21+
<licenses>
22+
<license>
23+
<name>The Apache License, Version 2.0</name>
24+
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
25+
</license>
26+
</licenses>
27+
1828
<scm>
1929
<connection>scm:git:git@github.com:linux-china/h2-functions-4-mysql.git</connection>
2030
<developerConnection>scm:git:git@github.com:linux-china/h2-functions-4-mysql.git</developerConnection>
2131
<url>https://github.com/linux-china/h2-functions-4-mysql</url>
2232
</scm>
2333

34+
<distributionManagement>
35+
<snapshotRepository>
36+
<id>ossrh</id>
37+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
38+
</snapshotRepository>
39+
<repository>
40+
<id>ossrh</id>
41+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
42+
</repository>
43+
</distributionManagement>
44+
2445
<developers>
2546
<developer>
2647
<id>linux_china</id>
@@ -70,10 +91,76 @@
7091
<artifactId>maven-compiler-plugin</artifactId>
7192
<version>3.8.1</version>
7293
<configuration>
73-
<source>1.8</source>
74-
<target>1.8</target>
94+
<parameters>true</parameters>
7595
</configuration>
7696
</plugin>
7797
</plugins>
7898
</build>
99+
100+
<profiles>
101+
<profile>
102+
<id>release</id>
103+
<build>
104+
<plugins>
105+
<plugin>
106+
<groupId>org.sonatype.plugins</groupId>
107+
<artifactId>nexus-staging-maven-plugin</artifactId>
108+
<version>1.6.8</version>
109+
<extensions>true</extensions>
110+
<configuration>
111+
<serverId>ossrh</serverId>
112+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
113+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
114+
</configuration>
115+
</plugin>
116+
<plugin>
117+
<groupId>org.apache.maven.plugins</groupId>
118+
<artifactId>maven-source-plugin</artifactId>
119+
<version>3.2.1</version>
120+
<executions>
121+
<execution>
122+
<id>attach-sources</id>
123+
<goals>
124+
<goal>jar-no-fork</goal>
125+
</goals>
126+
</execution>
127+
</executions>
128+
</plugin>
129+
<plugin>
130+
<groupId>org.apache.maven.plugins</groupId>
131+
<artifactId>maven-javadoc-plugin</artifactId>
132+
<version>3.1.1</version>
133+
<executions>
134+
<execution>
135+
<id>attach-javadocs</id>
136+
<goals>
137+
<goal>jar</goal>
138+
</goals>
139+
</execution>
140+
</executions>
141+
</plugin>
142+
<plugin>
143+
<groupId>org.apache.maven.plugins</groupId>
144+
<artifactId>maven-gpg-plugin</artifactId>
145+
<version>1.6</version>
146+
<executions>
147+
<execution>
148+
<id>sign-artifacts</id>
149+
<phase>verify</phase>
150+
<goals>
151+
<goal>sign</goal>
152+
</goals>
153+
<configuration>
154+
<gpgArguments>
155+
<arg>--pinentry-mode</arg>
156+
<arg>loopback</arg>
157+
</gpgArguments>
158+
</configuration>
159+
</execution>
160+
</executions>
161+
</plugin>
162+
</plugins>
163+
</build>
164+
</profile>
165+
</profiles>
79166
</project>

0 commit comments

Comments
 (0)