mirror of
https://gitee.com/BDWare/cp.git
synced 2025-01-10 01:44:08 +00:00
update doip sdk
This commit is contained in:
parent
9204992153
commit
b50f891f02
12
build.gradle
12
build.gradle
@ -8,7 +8,7 @@ plugins {
|
|||||||
apply from: '../spotless.gradle'
|
apply from: '../spotless.gradle'
|
||||||
|
|
||||||
group = "org.bdware.sc"
|
group = "org.bdware.sc"
|
||||||
version = "1.9.96"
|
version = "1.10.1"
|
||||||
tasks.withType(JavaCompile) {
|
tasks.withType(JavaCompile) {
|
||||||
// options.compilerArgs << '-Xlint:none'
|
// options.compilerArgs << '-Xlint:none'
|
||||||
// options.compilerArgs << '-Xlint:deprecation' << "-Werror"
|
// options.compilerArgs << '-Xlint:deprecation' << "-Werror"
|
||||||
@ -51,8 +51,10 @@ dependencies {
|
|||||||
implementation 'com.sun.mail:javax.mail:1.6.2'
|
implementation 'com.sun.mail:javax.mail:1.6.2'
|
||||||
implementation 'com.squareup.okhttp3:okhttp:4.9.1'
|
implementation 'com.squareup.okhttp3:okhttp:4.9.1'
|
||||||
implementation 'org.bdware.bdcontract:sdk-java:1.0.2'
|
implementation 'org.bdware.bdcontract:sdk-java:1.0.2'
|
||||||
implementation 'org.bdware.doip:doip-audit-tool:1.4.3'
|
implementation 'org.bdware.doip:doip-audit-tool:1.5.1'
|
||||||
implementation 'org.bdware.doip:doip-sdk:1.5.1'
|
implementation 'org.bdware.doip:doip-sdk:1.5.5'
|
||||||
|
implementation 'org.apache.logging.log4j:log4j-layout-template-json:2.17.2'
|
||||||
|
implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.3'
|
||||||
implementation fileTree(dir: 'lib', include: '*.jar')
|
implementation fileTree(dir: 'lib', include: '*.jar')
|
||||||
testImplementation 'junit:junit:4.13.2'
|
testImplementation 'junit:junit:4.13.2'
|
||||||
}
|
}
|
||||||
@ -70,8 +72,8 @@ jar {
|
|||||||
// uncomment this when publish,
|
// uncomment this when publish,
|
||||||
// while develop at local use "false"
|
// while develop at local use "false"
|
||||||
configurations.runtimeClasspath.filter {
|
configurations.runtimeClasspath.filter {
|
||||||
it.getAbsolutePath().contains("/lib/")
|
// it.getAbsolutePath().contains("/lib/")
|
||||||
// false
|
false
|
||||||
}.collect {
|
}.collect {
|
||||||
it.isDirectory() ? it : zipTree(it)
|
it.isDirectory() ? it : zipTree(it)
|
||||||
}
|
}
|
||||||
|
@ -88,22 +88,20 @@ public class DoipLocalSingleton {
|
|||||||
infos.clear();
|
infos.clear();
|
||||||
infos.add(new DoipListenerConfig(endpointInfo.getURI(), "2.1"));
|
infos.add(new DoipListenerConfig(endpointInfo.getURI(), "2.1"));
|
||||||
port = new URI(endpointInfo.getURI()).getPort();
|
port = new URI(endpointInfo.getURI()).getPort();
|
||||||
|
SharableVarManager.initSharableVarManager(repoID, config);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
DoipServiceInfo info = new DoipServiceInfo(repoID, owner, repoType, infos);
|
DoipServiceInfo info = new DoipServiceInfo(repoID, owner, repoType, infos);
|
||||||
server = new DoipServerImpl(info);
|
server = new DoipServerImpl(info);
|
||||||
DOOPRequestHandler handler = ContractProcess.instance.doopRequestHandler;
|
DOOPRequestHandler handler = ContractProcess.instance.doopRequestHandler;
|
||||||
server.setRequestCallback(handler);
|
server.setRequestCallback(handler);
|
||||||
if (config != null)
|
|
||||||
SharableVarManager.initSharableVarManager(info.id, config);
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
ResultChecker checker = new ResultChecker();
|
ResultChecker checker = new ResultChecker();
|
||||||
server.start(checker);
|
server.start(checker);
|
||||||
checker.waitForResult(1000);
|
checker.waitForResult(1000);
|
||||||
if (checker.port > 0)
|
if (checker.port > 0) return port;
|
||||||
return port;
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user