Skip to content

Commit

Permalink
setup publish workflow and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ofarukdogancay committed Apr 18, 2024
1 parent 0ad22e4 commit b6257f2
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
File renamed without changes.
File renamed without changes.
42 changes: 42 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ plugins {
id("org.jmailen.kotlinter") version "4.2.0"
id("io.spring.dependency-management") version "1.1.4"
id("org.graalvm.buildtools.native") version "0.9.28"

id("maven-publish")
id("java-library")
id("net.thebugmc.gradle.sonatype-central-portal-publisher") version "1.2.3"

kotlin("jvm") version "1.9.23"
kotlin("plugin.spring") version "1.9.23"
}
Expand Down Expand Up @@ -49,3 +54,40 @@ tasks.withType<KotlinCompile> {
tasks.named("processAot") {
enabled = false
}

signing {
val keyId = System.getenv("SIGNING_KEYID")
val secretKey = System.getenv("SIGNING_SECRETKEY")
val passphrase = System.getenv("SIGNING_PASSPHRASE")

useInMemoryPgpKeys(keyId, secretKey, passphrase)
}

centralPortal {
username = System.getenv("SONATYPE_USERNAME")
password = System.getenv("SONATYPE_PASSWORD")

pom {
name = "Simply Quartz"
description = "An utility library that simplifies task scheduling process while keeping powerful features of Quartz Scheduler."
url = "https://valensas.com/"
scm {
url = "https://github.com/Valensas/simply-quartz"
}

licenses {
license {
name.set("MIT License")
url.set("https://mit-license.org")
}
}

developers {
developer {
id.set("0")
name.set("Valensas")
email.set("[email protected]")
}
}
}
}

0 comments on commit b6257f2

Please sign in to comment.