maven release test
authorKevin Lamonte <kevin.lamonte@gmail.com>
Fri, 22 Feb 2019 01:53:52 +0000 (19:53 -0600)
committerKevin Lamonte <kevin.lamonte@gmail.com>
Fri, 22 Feb 2019 01:53:52 +0000 (19:53 -0600)
build.xml
pom.xml

index 62af93a7d979cb8e84f709c9632a2599e73319b0..b4669e36fcc37bdefc1c9d26f7d0d3fcd4f7ac0d 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -49,6 +49,8 @@
            includeantruntime="false"
            debug="on"
            debuglevel="lines,vars,source"
+           target="1.6"
+           source="1.6"
            />
   </target>
 
diff --git a/pom.xml b/pom.xml
index 283aaff89bc89c3654d14cd7dee9f443f82ad828..c9286a781b3fa7dfd7451dc26601c510bbccbe64 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -7,7 +7,7 @@
   <packaging>jar</packaging>
   <name>Jexer</name>
   <description>Java Text User Interface library that resembles Turbo Vision</description>
-  <version>0.3.0</version>
+  <version>0.3.0-SNAPSHOT</version>
   <url>https://gitlab.com/klamonte/jexer</url>
 
   <licenses>
     <url>https://gitlab.com/klamonte/jexer/issues</url>
   </issueManagement>
 
+  <distributionManagement>
+    <snapshotRepository>
+      <id>ossrh</id>
+      <url>https://oss.sonatype.org/content/repositories/snapshots</url>
+    </snapshotRepository>
+    <repository>
+      <id>ossrh</id>
+      <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
+    </repository>
+  </distributionManagement>
+
   <build>
     <sourceDirectory>${project.basedir}/src</sourceDirectory>
     <resources>
@@ -52,7 +63,9 @@
         </excludes>
       </resource>
     </resources>
+
     <plugins>
+
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-compiler-plugin</artifactId>
@@ -62,6 +75,7 @@
           <target>1.6</target>
         </configuration>
       </plugin>
+
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-jar-plugin</artifactId>
           </archive>
         </configuration>
       </plugin>
+
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-source-plugin</artifactId>
+        <version>2.2.1</version>
+        <executions>
+          <execution>
+            <id>attach-sources</id>
+            <phase>verify</phase>
+            <goals>
+              <goal>jar-no-fork</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-javadoc-plugin</artifactId>
+        <version>2.9.1</version>
+        <executions>
+          <execution>
+            <id>attach-javadocs</id>
+            <goals>
+              <goal>jar</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-release-plugin</artifactId>
+        <version>2.5.3</version>
+        <configuration>
+          <localCheckout>true</localCheckout>
+          <pushChanges>false</pushChanges>
+          <mavenExecutorId>forked-path</mavenExecutorId>
+          <!-- <arguments>-Dgpg.passphrase=${gpg.passphrase}</arguments> -->
+        </configuration>
+
+        <!--
+            <dependencies>
+              <dependency>
+                <groupId>org.apache.maven.scm</groupId>
+                <artifactId>maven-scm-provider-gitexe</artifactId>
+                <version>1.9.5</version>
+              </dependency>
+            </dependencies>
+        -->
+      </plugin>
+
+      <plugin>
+        <groupId>org.sonatype.plugins</groupId>
+        <artifactId>nexus-staging-maven-plugin</artifactId>
+        <version>1.6.7</version>
+        <extensions>true</extensions>
+        <configuration>
+          <serverId>ossrh</serverId>
+          <nexusUrl>https://oss.sonatype.org/</nexusUrl>
+          <autoReleaseAfterClose>true</autoReleaseAfterClose>
+        </configuration>
+      </plugin>
     </plugins>
   </build>
 
-  <distributionManagement>
-    <snapshotRepository>
-      <id>ossrh</id>
-      <url>https://oss.sonatype.org/content/repositories/snapshots</url>
-    </snapshotRepository>
-  </distributionManagement>
-
   <profiles>
     <profile>
-      <id>release</id>
+      <id>release-sign-artifacts</id>
+      <activation>
+        <property>
+          <name>performRelease</name>
+          <value>true</value>
+        </property>
+      </activation>
+
       <build>
         <plugins>
+
+          <!--
           <plugin>
-            <groupId>org.apache.maven.plugins</groupId>
-            <artifactId>maven-source-plugin</artifactId>
-            <version>2.2.1</version>
-            <executions>
-              <execution>
-                <id>attach-sources</id>
-                <goals>
-                  <goal>jar-no-fork</goal>
-                </goals>
-              </execution>
-            </executions>
-          </plugin>
-          <plugin>
-            <groupId>org.apache.maven.plugins</groupId>
-            <artifactId>maven-javadoc-plugin</artifactId>
-            <version>2.9.1</version>
+            <artifactId>maven-deploy-plugin</artifactId>
+            <version>2.8.2</version>
             <executions>
               <execution>
-                <id>attach-javadocs</id>
+                <id>default-deploy</id>
+                <phase>deploy</phase>
                 <goals>
-                  <goal>jar</goal>
+                  <goal>deploy</goal>
                 </goals>
               </execution>
             </executions>
           </plugin>
+          -->
 
           <plugin>
             <groupId>org.apache.maven.plugins</groupId>