optimize build.gradle

This commit is contained in:
CaiHQ 2021-12-21 17:59:45 +08:00
parent faabd71427
commit 3aba664d5a
2 changed files with 5 additions and 7 deletions

View File

@ -27,7 +27,7 @@ sourceSets {
dependencies { dependencies {
implementation project(":common") implementation project(":common")
implementation project(":mockjava") implementation project(":mockjava")
implementation 'org.apache.commons:commons-lang3:3.0'
implementation 'com.atlassian.commonmark:commonmark:0.17.0' implementation 'com.atlassian.commonmark:commonmark:0.17.0'
implementation 'com.idealista:format-preserving-encryption:1.0.0' implementation 'com.idealista:format-preserving-encryption:1.0.0'
implementation 'com.squareup.okhttp3:okhttp:4.9.1' implementation 'com.squareup.okhttp3:okhttp:4.9.1'
@ -35,9 +35,9 @@ dependencies {
implementation 'org.apache.commons:commons-math3:3.6.1' implementation 'org.apache.commons:commons-math3:3.6.1'
implementation 'org.codehaus.groovy:groovy-all:3.0.8' implementation 'org.codehaus.groovy:groovy-all:3.0.8'
implementation 'org.jsoup:jsoup:1.14.2' implementation 'org.jsoup:jsoup:1.14.2'
implementation 'org.apache.httpcomponents:httpclient:4.5.13'
implementation fileTree(dir: 'lib', include: '*.jar') implementation fileTree(dir: 'lib', include: '*.jar')
implementation 'io.grpc:grpc-all:1.41.0'
testImplementation 'junit:junit:4.13.2' testImplementation 'junit:junit:4.13.2'
} }

View File

@ -5,7 +5,6 @@ import com.google.gson.JsonPrimitive;
import com.google.gson.JsonSyntaxException; import com.google.gson.JsonSyntaxException;
import com.google.gson.reflect.TypeToken; import com.google.gson.reflect.TypeToken;
import com.google.gson.stream.MalformedJsonException; import com.google.gson.stream.MalformedJsonException;
import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.Level; import org.apache.logging.log4j.Level;
import org.apache.logging.log4j.core.config.Configurator; import org.apache.logging.log4j.core.config.Configurator;
import org.bdware.analysis.BasicBlock; import org.bdware.analysis.BasicBlock;
@ -472,7 +471,7 @@ public class ContractProcess {
List<FunctionNode> functionNodes = cn.getFunctions(); List<FunctionNode> functionNodes = cn.getFunctions();
LOGGER.debug( LOGGER.debug(
"functionNodes jointInfo: " "functionNodes jointInfo: "
+ StringUtils.join( + JsonUtil.toPrettyJson(
functionNodes.stream() functionNodes.stream()
.map( .map(
x -> { x -> {
@ -481,8 +480,7 @@ public class ContractProcess {
? "null" ? "null"
: joinInfo; : joinInfo;
}) })
.toArray(), .toArray()));
" "));
injectHandlers(); injectHandlers();
this.contract.setYjsType(cn.getYjsType()); this.contract.setYjsType(cn.getYjsType());