Ranides Atterwim 4 năm trước cách đây
mục cha
commit
b21e010d5c
4 tập tin đã thay đổi với 122 bổ sung0 xóa
  1. 49 0
      README.md
  2. 24 0
      assira.jdk11/pom.xml
  3. 24 0
      assira.jdk8/pom.xml
  4. 25 0
      deployme.bat

+ 49 - 0
README.md

@@ -0,0 +1,49 @@
+# assira library
+
+## deployment to maven central
+```
+JDK 8
+mvn clean deploy -P release,asm,common,jdk8
+
+JDK 11
+mvn clean deploy -P release,jdk11
+```
+
+## profiles
+- asm: modules
+- common: modules
+- jdk8: modules
+- jdk11: modules
+- release: settings for deployment
+- offline: disable tests which require internet connection
+
+### activate profile "offline":
+ 
+```xml
+<profiles>
+    <profile>
+        <id>offline</id>
+        <activation>
+            <activeByDefault>true</activeByDefault>
+        </activation>
+        <properties>
+            <net.ranides.offline>true</net.ranides.offline>
+        </properties>
+    </profile>
+</profiles>
+```
+
+### select correct GPG certificate:
+```xml
+<profiles>
+    <profile>
+        <id>ossrh</id>
+        <activation>
+            <activeByDefault>true</activeByDefault>
+        </activation>
+        <properties>
+            <gpg.keyname>1D0A66ED980F117DA5037470B83FAF4841FC4F70</gpg.keyname>
+        </properties>
+    </profile>
+</profiles>
+```

+ 24 - 0
assira.jdk11/pom.xml

@@ -28,11 +28,35 @@
                         <configuration>
                             <shadedArtifactAttached>false</shadedArtifactAttached>
                             <createDependencyReducedPom>true</createDependencyReducedPom>
+                            <createSourcesJar>true</createSourcesJar>
                             <minimizeJar>false</minimizeJar>
                         </configuration>
                     </execution>
                 </executions>
             </plugin>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>build-helper-maven-plugin</artifactId>
+                <version>3.2.0</version>
+                <executions>
+                    <execution>
+                        <id>attach-artifacts</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>attach-artifact</goal>
+                        </goals>
+                        <configuration>
+                            <artifacts>
+                                <artifact>
+                                    <file>../assira.core11/target/assira.core11-${project.version}-javadoc.jar</file>
+                                    <type>jar</type>
+                                    <classifier>javadoc</classifier>
+                                </artifact>
+                            </artifacts>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
         </plugins>
     </build>
 

+ 24 - 0
assira.jdk8/pom.xml

@@ -28,11 +28,35 @@
                         <configuration>
                             <shadedArtifactAttached>false</shadedArtifactAttached>
                             <createDependencyReducedPom>true</createDependencyReducedPom>
+                            <createSourcesJar>true</createSourcesJar>
                             <minimizeJar>false</minimizeJar>
                         </configuration>
                     </execution>
                 </executions>
             </plugin>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>build-helper-maven-plugin</artifactId>
+                <version>3.2.0</version>
+                <executions>
+                    <execution>
+                        <id>attach-artifacts</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>attach-artifact</goal>
+                        </goals>
+                        <configuration>
+                            <artifacts>
+                                <artifact>
+                                    <file>../assira.core8/target/assira.core8-${project.version}-javadoc.jar</file>
+                                    <type>jar</type>
+                                    <classifier>javadoc</classifier>
+                                </artifact>
+                            </artifacts>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
         </plugins>
     </build>
 

+ 25 - 0
deployme.bat

@@ -0,0 +1,25 @@
+@echo off
+jdk8
+mvn clean deploy -P asm,common,jdk8,release
+if errorlevel 1 goto fail
+
+jdk11
+mvn clean deploy -P jdk11,release
+if errorlevel 1 goto fail
+
+goto success
+
+:fail
+    echo ERROR
+    goto end
+
+:success
+    echo SUCCESS
+    goto end
+
+:end
+
+
+
+
+