Added TomP2P to dependency.

This commit is contained in:
ChronosX88 2019-03-05 15:24:33 +04:00
parent 39669a6ebf
commit 9179cf6fb3
Signed by: ChronosXYZ
GPG Key ID: 085A69A82C8C511A
2 changed files with 7 additions and 7 deletions

View File

@ -8,11 +8,14 @@ sourceCompatibility = 1.8
repositories {
mavenCentral()
maven {
url "http://tomp2p.net/dev/mvn/"
}
}
dependencies {
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'io.github.chronosx88:kademliadht:1.0'
implementation 'net.tomp2p:tomp2p-all:5.0-Beta8'
}
jar {

View File

@ -1,16 +1,12 @@
package io.github.chronosx88.dhtBootstrap;
import io.github.chronosx88.kademliadht.DefaultConfiguration;
import io.github.chronosx88.kademliadht.JKademliaNode;
import io.github.chronosx88.kademliadht.node.KademliaId;
import io.github.chronosx88.kademliadht.node.Node;
import java.io.IOException;
import java.net.Inet4Address;
public class Main {
private static JKademliaNode node;
//private static JKademliaNode node;
public static void main(String[] args) {
/*
try {
KademliaId kadID = new KademliaId("sgCZ+fg49g4N8FU43kW84cNVPTw=");
node = new JKademliaNode("Main Bootstrap Node", new Node(kadID, Inet4Address.getLocalHost(), 7243), 7243, new DefaultConfiguration());
@ -18,5 +14,6 @@ public class Main {
} catch (IOException e) {
e.printStackTrace();
}
*/
}
}