Skip to content

Commit

Permalink
Added support for JitPack (#399)
Browse files Browse the repository at this point in the history
* Added support for JitPack
* added jitpack.yml to specify Java version
* Only sign jar when publishing to maven central
  • Loading branch information
oxisto committed Apr 17, 2021
1 parent abdfc89 commit 6ae403e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,13 @@ tasks.withType<GenerateModuleMetadata> {
signing {
val signingKey: String? by project
val signingPassword: String? by project

useInMemoryPgpKeys(signingKey, signingPassword)

setRequired({
gradle.taskGraph.hasTask("publish")
})

sign(publishing.publications["maven"])
}

Expand Down
2 changes: 2 additions & 0 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
jdk:
- openjdk11

0 comments on commit 6ae403e

Please sign in to comment.