chore: ライブラリを公開できるように

This commit is contained in:
usbharu 2023-10-19 09:51:29 +09:00
parent 94376f8eff
commit a26957bc6d
Signed by: usbharu
GPG Key ID: 6556747BF94EEBC8
2 changed files with 14 additions and 11 deletions

View File

@ -1,10 +1,10 @@
plugins { plugins {
kotlin("jvm") version "1.9.0" kotlin("jvm") version "1.9.0"
application id("maven-publish")
} }
group = "dev.usbharu" group = "dev.usbharu"
version = "1.0-SNAPSHOT" version = "1.0.0"
repositories { repositories {
mavenCentral() mavenCentral()
@ -23,6 +23,16 @@ kotlin {
jvmToolchain(11) 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")
}
}
}
} }

View File

@ -1,7 +0,0 @@
fun main(args: Array<String>) {
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()}")
}