From 9179cf6fb32415a46f147332e796585e2f5ad35d Mon Sep 17 00:00:00 2001 From: ChronosX88 Date: Tue, 5 Mar 2019 15:24:33 +0400 Subject: [PATCH] Added TomP2P to dependency. --- build.gradle | 5 ++++- .../java/io/github/chronosx88/dhtBootstrap/Main.java | 9 +++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/build.gradle b/build.gradle index 97fa783..d981c38 100644 --- a/build.gradle +++ b/build.gradle @@ -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 { diff --git a/src/main/java/io/github/chronosx88/dhtBootstrap/Main.java b/src/main/java/io/github/chronosx88/dhtBootstrap/Main.java index 190336c..17b0ba5 100644 --- a/src/main/java/io/github/chronosx88/dhtBootstrap/Main.java +++ b/src/main/java/io/github/chronosx88/dhtBootstrap/Main.java @@ -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(); } + */ } }