From 7341ead2aade10ea1b833e94275277658741883a Mon Sep 17 00:00:00 2001 From: Edoardo La Greca Date: Mon, 18 Aug 2025 21:09:11 +0200 Subject: switch to multi-module project structure --- demo/build.gradle.kts | 21 +++++++++++++++++++++ demo/src/main/kotlin/Main.kt | 20 ++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 demo/build.gradle.kts create mode 100644 demo/src/main/kotlin/Main.kt (limited to 'demo') diff --git a/demo/build.gradle.kts b/demo/build.gradle.kts new file mode 100644 index 0000000..dd40ae5 --- /dev/null +++ b/demo/build.gradle.kts @@ -0,0 +1,21 @@ +plugins { + kotlin("jvm") +} + +group = "net.edolg.ninekt" +version = "unspecified" + +repositories { + mavenCentral() +} + +dependencies { + testImplementation(kotlin("test")) +} + +tasks.test { + useJUnitPlatform() +} +kotlin { + jvmToolchain(21) +} \ No newline at end of file diff --git a/demo/src/main/kotlin/Main.kt b/demo/src/main/kotlin/Main.kt new file mode 100644 index 0000000..d04b135 --- /dev/null +++ b/demo/src/main/kotlin/Main.kt @@ -0,0 +1,20 @@ +import except.UnresolvableHostException +import net.TransportLayerJavaNet +import kotlin.system.exitProcess + +fun main(args: Array) { + val myUsername = "" + val myPassword = "" + val npconn: Connection + + try { + npconn = Connection(TransportLayerJavaNet("net!9p.mydomain.com!564")) + } catch (uhe: UnresolvableHostException) { + println("failed to connect :(") + exitProcess(1) + } + + // TODO: add walk and stat + + npconn.disconnect() +} \ No newline at end of file -- cgit v1.2.3