Skip to content

Commit

Permalink
fix(build): sign publications
Browse files Browse the repository at this point in the history
  • Loading branch information
kdubb committed May 24, 2021
1 parent 5fdb8a3 commit cf52e71
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -85,18 +85,14 @@ java {
withJavadocJar()
}

tasks {

withType<KotlinCompile> {
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
kotlinOptions {
kotlinOptions {
languageVersion = "1.4"
apiVersion = "1.4"
}
jvmTarget = "11"
languageVersion = "1.4"
apiVersion = "1.4"
}
jvmTarget = "11"
}

}


Expand Down Expand Up @@ -171,7 +167,7 @@ publishing {

publications {

create<MavenPublication>("mavenJava") {
create<MavenPublication>("library") {
from(components["java"])

pom {
Expand Down Expand Up @@ -233,11 +229,12 @@ publishing {
}


configure<SigningExtension> {
signing {
val signingKeyId: String? by project
val signingKey: String? by project
val signingPassword: String? by project
useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword)
sign(publishing.publications["library"])
}

tasks.withType<Sign>().configureEach {
Expand All @@ -252,7 +249,7 @@ tasks.withType<Sign>().configureEach {
githubRelease {
owner("outfoxx")
repo("sunday-kt")
tagName("${releaseVersion}")
tagName(releaseVersion)
targetCommitish("main")
releaseName("v${releaseVersion}")
draft(true)
Expand Down

0 comments on commit cf52e71

Please sign in to comment.