Skip to content
This repository has been archived by the owner on Jun 22, 2024. It is now read-only.

Commit

Permalink
chore: Fix publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
sya-ri committed Aug 14, 2022
1 parent d48759e commit d18b541
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ plugins {
id("org.jetbrains.kotlinx.kover") version "0.6.0-Beta"
id("org.jetbrains.dokka") version "1.7.10"
`maven-publish`
signing
}

group = "dev.s7a"
Expand Down Expand Up @@ -109,14 +110,18 @@ tasks.named("dokkaHtml") {
}
}

val javadocJar by tasks.registering(Jar::class) {
archiveClassifier.set("javadoc")
}

publishing {
repositories {
maven {
url = uri(
if (version.toString().endsWith("SNAPSHOT")) {
"https://s01.oss.sonatype.org/content/repositories/snapshots/"
} else {
"https://s01.oss.sonatype.org/content/groups/staging/"
"https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
}
)
credentials {
Expand All @@ -125,4 +130,33 @@ publishing {
}
}
}
publications.withType<MavenPublication> {
artifact(javadocJar.get())
pom {
name.set("Gofile.kt")
description.set("A kotlin wrapper for the Gofile.io API")
url.set("https://github.com/sya-ri/Gofile.kt")

licenses {
license {
name.set("Apache License 2.0")
url.set("https://www.apache.org/licenses/LICENSE-2.0")
}
}
developers {
developer {
id.set("sya-ri")
name.set("sya-ri")
email.set("[email protected]")
}
}
scm {
url.set("https://github.com/sya-ri/Gofile.kt")
}
}
}
}

signing {
sign(publishing.publications)
}

0 comments on commit d18b541

Please sign in to comment.