chore: ライブラリを公開できるように
This commit is contained in:
parent
94376f8eff
commit
a26957bc6d
|
@ -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")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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()}")
|
|
||||||
}
|
|
Loading…
Reference in New Issue