Bladeren bron

support package

apkipa 1 maand geleden
bovenliggende
commit
c3f18ac10a
3 gewijzigde bestanden met toevoegingen van 108 en 1 verwijderingen
  1. 3 1
      .gitignore
  2. 26 0
      package.sh
  3. 79 0
      pomDemoProject.xml

+ 3 - 1
.gitignore

@@ -35,4 +35,6 @@ build/
 .vscode/
 
 ### Mac OS ###
-.DS_Store
+.DS_Store
+
+release

+ 26 - 0
package.sh

@@ -0,0 +1,26 @@
+#!/bin/bash
+cur_date="`date +%Y-%m-%d`"
+version=1.0.0
+ROOT=$(cd `dirname $0`; pwd)
+echo $ROOT
+
+SRC_JAR_NAME=java-tsdb-hf-stck
+DST_DIR_NAME=java-tsdb-hf-stck-demo
+
+mkdir -p $ROOT/release/$DST_DIR_NAME
+rm -rf $ROOT/release/$DST_DIR_NAME/*
+
+mkdir -p $ROOT/release/$DST_DIR_NAME/log
+mkdir -p $ROOT/release/$DST_DIR_NAME/lib
+
+cp -rf $ROOT/target/$SRC_JAR_NAME-1.0-SNAPSHOT.jar $ROOT/release/$DST_DIR_NAME/lib/dbapi.jar
+cp -rf $ROOT/pomDemoProject.xml $ROOT/release/$DST_DIR_NAME/pom.xml
+
+mkdir -p $ROOT/release/$DST_DIR_NAME/src
+cp -rf $ROOT/src/test $ROOT/release/$DST_DIR_NAME/src/
+cp -rf $ROOT/README.md $ROOT/release/$DST_DIR_NAME/README.md
+
+cd $ROOT/release/
+tar -zcf $ROOT/release/$DST_DIR_NAME-v${version}-${cur_date}.tar.gz $DST_DIR_NAME
+
+echo "打包成功"

+ 79 - 0
pomDemoProject.xml

@@ -0,0 +1,79 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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">
+    <modelVersion>4.0.0</modelVersion>
+
+    <groupId>org.example</groupId>
+    <artifactId>java-tsdb-hf-stck-demo</artifactId>
+    <version>1.0-SNAPSHOT</version>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <configuration>
+                    <source>8</source>
+                    <target>8</target>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-api</artifactId>
+            <version>2.23.1</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-core</artifactId>
+            <version>2.23.1</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-slf4j2-impl</artifactId>
+            <version>2.23.1</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.commons</groupId>
+            <artifactId>commons-lang3</artifactId>
+            <version>3.11</version>
+        </dependency>
+        <dependency>
+            <groupId>commons-io</groupId>
+            <artifactId>commons-io</artifactId>
+            <version>2.18.0</version>
+        </dependency>
+
+        <dependency>
+            <groupId>com.google.code.gson</groupId>
+            <artifactId>gson</artifactId>
+            <version>2.11.0</version>
+        </dependency>
+
+        <dependency>
+            <groupId>it.unimi.dsi</groupId>
+            <artifactId>fastutil</artifactId>
+            <version>8.5.15</version>
+        </dependency>
+
+        <dependency>
+            <groupId>com.github.luben</groupId>
+            <artifactId>zstd-jni</artifactId>
+            <version>1.5.6-8</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.example</groupId>
+            <artifactId>java-tsdb-hf-stck</artifactId>
+            <version>1.0.0</version>
+            <scope>system</scope>
+            <systemPath>${basedir}/lib/dbapi.jar</systemPath>
+        </dependency>
+    </dependencies>
+
+</project>