2767321434 / generate-json

generate Update json and encrypt jar in output directory

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

generate-json


maven plugin
generate Update json and encrypt jar in output directory
maven 插件
生成自动更新用的json文件和加密(可选)生成的jar文件。
maven install 后如下引入,key是加密的密码,needEncrypt 为true开启加密,baseUrl 是发布后的更新下载地址

 <plugin>
       <groupId>my.yf</groupId>
       <artifactId>generate-json</artifactId>
       <version>1.0-SNAPSHOT</version><br>
       <executions>
            <execution>
                <phase>package</phase>
                   <goals>
                       <goal>generate</goal>
                    </goals>
             </execution>
        </executions>
        <configuration>
             <key>123456</key>
             <needEncrypt>true</needEncrypt>
             <baseUrl>http://xxx.xxx/update</baseUrl>
         </configuration>
</plugin>

在线引入

<pluginRepositories>
        <pluginRepository>
            <id>jitpack.io</id>
            <url>https://www.jitpack.io</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </pluginRepository>
    </pluginRepositories>
....
<plugin>
     <groupId>com.github.2767321434</groupId>
     <artifactId>generate-json</artifactId>
     <version>1.0</version>
     <executions>
        <execution>
           <phase>package</phase>
           <goals>
              <goal>generate</goal>
            </goals>
            </execution>
      </executions>
      <configuration>
        <key>123456</key>
        <needEncrypt>true</needEncrypt>
        <baseUrl>http://xxx.xxx/update</baseUrl>
      </configuration>
</plugin>

About

generate Update json and encrypt jar in output directory

License:MIT License


Languages

Language:Java 100.0%