Skip to content

Commit

Permalink
Update build to add maven central publishing plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmattking committed Jun 27, 2024
1 parent c6d98e0 commit 1fa8c6d
Showing 1 changed file with 36 additions and 2 deletions.
38 changes: 36 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import com.vanniktech.maven.publish.SonatypeHost

plugins {
kotlin("jvm") version "1.9.23"
id("maven-publish")
id("signing")
id("com.vanniktech.maven.publish") version "0.29.0"
}

group = "info.mking"
version = "1.0-SNAPSHOT"
group = "info.mking.k2zpl"
version = "0.1"

repositories {
mavenCentral()
Expand All @@ -17,4 +20,35 @@ dependencies {

tasks.test {
useJUnitPlatform()
}

mavenPublishing {
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
signAllPublications()
coordinates("info.mking.k2zpl", "k2zpl", "0.0.1")
pom {
name.set("k2zpl")
description.set("Kotlin DSL for ZPL (Zebra Programming Language)")
inceptionYear.set("2024")
url.set("https://github.com/itsmattking/k2zpl/")
licenses {
license {
name.set("The Apache License, Version 2.0")
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
distribution.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
}
}
developers {
developer {
id.set("itsmattking")
name.set("Matt King")
url.set("https://github.com/itsmattking/")
}
}
scm {
url.set("https://github.com/itsmattking/k2zpl/")
connection.set("scm:git:git://github.com/itsmattking/k2zpl.git")
developerConnection.set("scm:git:ssh://[email protected]/itsmattking/k2zpl.git")
}
}
}

0 comments on commit 1fa8c6d

Please sign in to comment.