From 481a60fc1a149ad6725eca733099d669bbf6a136 Mon Sep 17 00:00:00 2001 From: Christian Torbidone Date: Fri, 2 Aug 2024 00:07:43 +0200 Subject: [PATCH] Some fixes --- build.gradle.kts | 20 ++++++++++++++++---- src/main/kotlin/{Main.kt => sitemap.kt} | 0 2 files changed, 16 insertions(+), 4 deletions(-) rename src/main/kotlin/{Main.kt => sitemap.kt} (100%) diff --git a/build.gradle.kts b/build.gradle.kts index b05e01a..cf60078 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -4,12 +4,20 @@ plugins { } group = "org.thundernetwork" -version = "1.0" +version = "1.0.0" repositories { maven("https://repository.thundernetwork.org/repository/maven-public") } +kotlin { + jvmToolchain(17) +} + +java { + withSourcesJar() +} + dependencies { // testImplementation(kotlin("test")) } @@ -17,9 +25,13 @@ dependencies { tasks.test { useJUnitPlatform() } -kotlin { - jvmToolchain(17) -} + +//tasks.jar { +// from(sourceSets.main) // Include all source code in the JAR +// manifest { +// attributes(mapOf("Main-Class" to "org.thundernetwork.sitemap")) +// } +//} publishing { repositories { diff --git a/src/main/kotlin/Main.kt b/src/main/kotlin/sitemap.kt similarity index 100% rename from src/main/kotlin/Main.kt rename to src/main/kotlin/sitemap.kt