Browse Source

add the info in the pom.xml: generate sha-256 check file.

tags/1.1.2^2
zhaoguangwei 4 years ago
parent
commit
8373af724e
5 changed files with 46 additions and 25 deletions
  1. +0
    -20
      source/deployment/deployment-autotest/src/test/java/com/jd/blockchain/AppTest.java
  2. +22
    -0
      source/deployment/deployment-gateway/pom.xml
  3. +22
    -0
      source/deployment/deployment-peer/pom.xml
  4. +2
    -2
      source/pom.xml
  5. +0
    -3
      source/sdk/sdk-base/src/main/java/com/jd/blockchain/sdk/service/NodeSigningAppender.java

+ 0
- 20
source/deployment/deployment-autotest/src/test/java/com/jd/blockchain/AppTest.java View File

@@ -1,20 +0,0 @@
package com.jd.blockchain;

import static org.junit.Assert.assertTrue;

import org.junit.Test;

/**
* Unit test for simple App.
*/
public class AppTest
{
/**
* Rigorous Test :-)
*/
@Test
public void shouldAnswerWithTrue()
{
assertTrue( true );
}
}

+ 22
- 0
source/deployment/deployment-gateway/pom.xml View File

@@ -66,6 +66,28 @@
</execution>
</executions>
</plugin>

<!-- 生成SHA-256校验文件 -->
<plugin>
<groupId>net.nicoulaj.maven.plugins</groupId>
<artifactId>checksum-maven-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<goals>
<goal>artifacts</goal>
</goals>
</execution>
</executions>
<configuration>
<algorithms>
<algorithm>SHA-256</algorithm> <!--采用SHA-256算法,还支持其他算法-->
</algorithms>
<file>${project.basedir}/target/deployment-peer-${project.version}.zip</file><!--给zip文件进行加密-->
<xmlSummary>true</xmlSummary><!--生成XML格式的md5文件-->
<xmlSummaryFile>${project.basedir}/target/SHA-256.xml</xmlSummaryFile>
</configuration>
</plugin>
</plugins>
</build>
</project>

+ 22
- 0
source/deployment/deployment-peer/pom.xml View File

@@ -101,6 +101,28 @@
</executions>
</plugin>

<!-- 生成SHA-256校验文件 -->
<plugin>
<groupId>net.nicoulaj.maven.plugins</groupId>
<artifactId>checksum-maven-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<goals>
<goal>artifacts</goal>
</goals>
</execution>
</executions>
<configuration>
<algorithms>
<algorithm>SHA-256</algorithm> <!--采用SHA-256算法,还支持其他算法-->
</algorithms>
<file>${project.basedir}/target/deployment-peer-${project.version}.zip</file><!--给zip文件进行加密-->
<xmlSummary>true</xmlSummary><!--生成XML格式的md5文件-->
<xmlSummaryFile>${project.basedir}/target/SHA-256.xml</xmlSummaryFile>
</configuration>
</plugin>

</plugins>
</build>
</project>

+ 2
- 2
source/pom.xml View File

@@ -36,8 +36,8 @@

<properties>
<bft-smart.version>0.3.0.RELEASE</bft-smart.version>
<data-explorer.version>1.1.0.RELEASE</data-explorer.version>
<manager-explorer.version>1.1.0.RELEASE</manager-explorer.version>
<data-explorer.version>1.2.0-SNAPSHOT</data-explorer.version>
<manager-explorer.version>1.2.0-SNAPSHOT</manager-explorer.version>
<commons-io.version>2.4</commons-io.version>
<mongo.driver.version>3.3.0</mongo.driver.version>
<shiro.version>1.2.2</shiro.version>


+ 0
- 3
source/sdk/sdk-base/src/main/java/com/jd/blockchain/sdk/service/NodeSigningAppender.java View File

@@ -8,13 +8,10 @@ import com.jd.blockchain.crypto.AsymmetricKeypair;
import com.jd.blockchain.crypto.Crypto;
import com.jd.blockchain.crypto.HashDigest;
import com.jd.blockchain.crypto.HashFunction;
import com.jd.blockchain.crypto.SignatureDigest;
import com.jd.blockchain.crypto.SignatureFunction;
import com.jd.blockchain.ledger.DigitalSignature;
import com.jd.blockchain.ledger.NodeRequest;
import com.jd.blockchain.ledger.TransactionRequest;
import com.jd.blockchain.ledger.TransactionResponse;
import com.jd.blockchain.transaction.DigitalSignatureBlob;
import com.jd.blockchain.transaction.SignatureUtils;
import com.jd.blockchain.transaction.TransactionService;
import com.jd.blockchain.transaction.TxRequestMessage;


Loading…
Cancel
Save