Skip to content

Commit

Permalink
Add Maven Publish Plugin to Ruler CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan3d committed Mar 21, 2023
1 parent d62282f commit 419981c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions ruler-cli/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,13 @@ plugins {
id("org.jetbrains.kotlin.plugin.serialization")
id("io.gitlab.arturbosch.detekt")
id("com.github.johnrengelman.shadow")
id("maven-publish")
id("signing")
}

extra[EXT_POM_NAME] = "Ruler CLI"
extra[EXT_POM_DESCRIPTION] = "Command line interface for Ruler"

java {
withSourcesJar()

Expand All @@ -47,3 +52,16 @@ application {
tasks.withType<Test> {
useJUnitPlatform()
}

publishing {
publications {
create<MavenPublication>("maven") {
artifact(tasks["shadowJar"])
}
}
configurePublications(project)
}

signing {
configureSigning(publishing.publications)
}

0 comments on commit 419981c

Please sign in to comment.