From a26957bc6d7a9a6c0464cb9a6557f0dcd194116c Mon Sep 17 00:00:00 2001 From: usbharu <64310155+usbharu@users.noreply.github.com> Date: Thu, 19 Oct 2023 09:51:29 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=E3=83=A9=E3=82=A4=E3=83=96=E3=83=A9?= =?UTF-8?q?=E3=83=AA=E3=82=92=E5=85=AC=E9=96=8B=E3=81=A7=E3=81=8D=E3=82=8B?= =?UTF-8?q?=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle.kts | 18 ++++++++++++++---- src/main/kotlin/Main.kt | 7 ------- 2 files changed, 14 insertions(+), 11 deletions(-) delete mode 100644 src/main/kotlin/Main.kt diff --git a/build.gradle.kts b/build.gradle.kts index 1bcc1a3..bd9d8c3 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,10 +1,10 @@ plugins { kotlin("jvm") version "1.9.0" - application + id("maven-publish") } group = "dev.usbharu" -version = "1.0-SNAPSHOT" +version = "1.0.0" repositories { mavenCentral() @@ -23,6 +23,16 @@ kotlin { jvmToolchain(11) } -application { - mainClass.set("MainKt") + +publishing{ + repositories{ + maven{ + name = "GitHubPackages" + url = uri("https://maven.pkg.github.com/usbharu/http-signature") + credentials { + username = project.findProperty("gpr.user") as String? ?: System.getenv("USERNAME") + password = project.findProperty("gpr.key") as String? ?: System.getenv("TOKEN") + } + } + } } diff --git a/src/main/kotlin/Main.kt b/src/main/kotlin/Main.kt deleted file mode 100644 index f2a59b6..0000000 --- a/src/main/kotlin/Main.kt +++ /dev/null @@ -1,7 +0,0 @@ -fun main(args: Array) { - println("Hello World!") - - // Try adding program arguments via Run/Debug configuration. - // Learn more about running applications: https://www.jetbrains.com/help/idea/running-applications.html. - println("Program arguments: ${args.joinToString()}") -} \ No newline at end of file