Skip to content

Commit

Permalink
Maven Central - add an uploadArchives task, seems to work but are sig…
Browse files Browse the repository at this point in the history
…ned with sha1 not asc
  • Loading branch information
Duncan McGregor committed Mar 24, 2021
1 parent 7bce074 commit 52d2f3c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
17 changes: 17 additions & 0 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,23 @@ tasks {
withType<Jar> {
archiveBaseName.set("minutest")
}

named<Upload>("uploadArchives") {
repositories.withGroovyBuilder {
"mavenDeployer" {
"repository"(
"url" to "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
) {
"authentication"("userName" to "dmcg", "password" to System.getenv("OSS_PWD"))
}
"snapshotRepository"(
"url" to "https://oss.sonatype.org/content/repositories/snapshots/"
) {
"authentication"("userName" to "dmcg", "password" to System.getenv("OSS_PWD"))
}
}
}
}
}

project.sourceSets {
Expand Down
3 changes: 0 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,3 @@ org.gradle.caching=true
signing.keyId=DCDF7ED6
signing.secretKeyRingFile=/Users/duncan/.gnupg/secring.gpg
// Need to specify -Psigning.password=***** on command line

ossrhUsername=your-jira-id
ossrhPassword=your-jira-password

0 comments on commit 52d2f3c

Please sign in to comment.