diff --git a/build.gradle b/build.gradle index c7866ef..e5dfc3c 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,9 @@ plugins { } mainClassName = 'org.bdware.sc.ContractProcess' - +repositories { + mavenCentral() +} sourceSets { main { java { @@ -37,6 +39,7 @@ dependencies { implementation 'org.jsoup:jsoup:1.14.2' implementation 'com.sun.mail:javax.mail:1.6.2' implementation 'com.squareup.okhttp3:okhttp:4.9.1' + implementation 'org.bdware.doip:doip-sdk:1.1.0' api fileTree(dir: 'lib', include: '*.jar') testImplementation 'junit:junit:4.13.2' diff --git a/lib/doipsdk-v1.0.5.jar b/lib/doipsdk-v1.0.5.jar deleted file mode 100644 index 55d2aa1..0000000 Binary files a/lib/doipsdk-v1.0.5.jar and /dev/null differ diff --git a/src/main/java/org/bdware/sc/boundry/utils/DOIPUtil.java b/src/main/java/org/bdware/sc/boundry/utils/DOIPUtil.java index f440778..d6738fd 100644 --- a/src/main/java/org/bdware/sc/boundry/utils/DOIPUtil.java +++ b/src/main/java/org/bdware/sc/boundry/utils/DOIPUtil.java @@ -8,8 +8,9 @@ import org.bdware.doip.codec.digitalObject.Element; import org.bdware.doip.codec.doipMessage.DoipMessage; import org.bdware.doip.codec.doipMessage.DoipMessageFactory; import org.bdware.doip.codec.operations.BasicOperations; -import org.bdware.doip.endpoint.doipClient.DoipClientImpl; -import org.bdware.doip.endpoint.doipClient.DoipMessageCallback; +import org.bdware.doip.endpoint.client.ClientConfig; +import org.bdware.doip.endpoint.client.DoipClientImpl; +import org.bdware.doip.endpoint.client.DoipMessageCallback; import org.bdware.sc.compiler.PermissionStub; import org.bdware.sc.node.Permission; import org.bdware.sc.util.JsonUtil; @@ -27,7 +28,7 @@ public class DOIPUtil { private DOIPUtil(String url) { this.url = url; this.doipClient = new DoipClientImpl(); - doipClient.connect(url); + doipClient.connect(ClientConfig.fromUrl(url)); } public static DOIPUtil createClient(String url) {