-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
128 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: release | ||
|
||
on: | ||
push: | ||
tags: | ||
- "*.*.*" | ||
|
||
jobs: | ||
release: | ||
name: Release main to Maven Central | ||
runs-on: ubuntu-latest | ||
if: github.repository == 'Thijsiez/panache-kotlin-dsl' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
- run: chmod +x gradlew | ||
- env: | ||
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USERNAME }} | ||
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }} | ||
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }} | ||
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }} | ||
run: ./gradlew publishToMavenCentral --no-configuration-cache --no-daemon | ||
- uses: softprops/action-gh-release@v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,13 +18,13 @@ import com.vanniktech.maven.publish.SonatypeHost | |
|
||
plugins { | ||
kotlin("jvm") | ||
id("org.jetbrains.dokka") | ||
id("org.jetbrains.kotlinx.kover") | ||
id("com.vanniktech.maven.publish") | ||
} | ||
|
||
val groupId: String by project | ||
setGroup(groupId) | ||
val artifactId: String by project | ||
val version: String by project | ||
setVersion(version) | ||
|
||
|
@@ -44,7 +44,10 @@ dependencies { | |
implementation("com.google.devtools.ksp:symbol-processing-api:$kspVersion") | ||
implementation("com.squareup:kotlinpoet-ksp:$kotlinPoetVersion") | ||
|
||
testImplementation("io.quarkus:quarkus-junit5") | ||
testImplementation("io.quarkus:quarkus-junit5") { | ||
//Because of https://osv.dev/vulnerability/GHSA-hfq9-hggm-c56q, unused anyway | ||
exclude(group = "com.thoughtworks.xstream", module = "xstream") | ||
} | ||
testImplementation("io.mockk:mockk:$mockkVersion") | ||
testImplementation("com.github.tschuchortdev:kotlin-compile-testing-ksp:$compileTestingVersion") | ||
} | ||
|
@@ -57,36 +60,9 @@ kotlin { | |
jvmToolchain(17) | ||
} | ||
mavenPublishing { | ||
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL, false) | ||
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL, automaticRelease = false) | ||
signAllPublications() | ||
|
||
coordinates(groupId, artifactId, version) | ||
pom { | ||
name = artifactId | ||
description = "A dynamic, type-safe way to write your queries" | ||
url = "https://icken.ch/panache-kotlin-dsl" | ||
|
||
licenses { | ||
license { | ||
name = "The Apache License, Version 2.0" | ||
url = "http://www.apache.org/licenses/LICENSE-2.0.txt" | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id = "Thijsiez" | ||
name = "Thijs Koppen" | ||
email = "[email protected]" | ||
} | ||
} | ||
|
||
scm { | ||
url = "https://github.com/Thijsiez/panache-kotlin-dsl" | ||
connection = "scm:git:https://github.com/Thijsiez/panache-kotlin-dsl" | ||
developerConnection = "scm:git:https://github.com/Thijsiez/panache-kotlin-dsl" | ||
} | ||
} | ||
coordinates(groupId, rootProject.name, version) | ||
} | ||
|
||
tasks { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,10 +14,30 @@ | |
# limitations under the License. | ||
# | ||
|
||
#region POM | ||
groupId=ch.icken | ||
artifactId=panache-kotlin-dsl | ||
version=0.0.3 | ||
|
||
POM_NAME=Panache Kotlin DSL | ||
POM_DESCRIPTION=A dynamic, type-safe way to write your queries | ||
POM_URL=https://github.com/Thijsiez/panache-kotlin-dsl | ||
|
||
POM_LICENSE_NAME=The Apache Software License, Version 2.0 | ||
POM_LICENSE_URL=https://www.apache.org/licenses/LICENSE-2.0.txt | ||
POM_LICENSE_DIST=repo | ||
|
||
POM_SCM_URL=https://github.com/Thijsiez/panache-kotlin-dsl | ||
POM_SCM_CONNECTION=scm:git:https://github.com/Thijsiez/panache-kotlin-dsl | ||
POM_SCM_DEV_CONNECTION=scm:git:https://github.com/Thijsiez/panache-kotlin-dsl | ||
|
||
POM_DEVELOPER_ID=Thijsiez | ||
POM_DEVELOPER_NAME=Thijs Koppen | ||
POM_DEVELOPER_EMAIL=[email protected] | ||
POM_DEVELOPER_URL=https://github.com/Thijsiez | ||
#endregion | ||
|
||
#region Dependencies | ||
#https://github.com/quarkusio/quarkus Pinned, do not change | ||
# Minimum, because of https://osv.dev/vulnerability/GHSA-f8h5-v2vg-46rr | ||
# Does not need to be upgraded since we only use the Panache API | ||
|
@@ -42,10 +62,17 @@ mockkVersion=1.13.11 | |
|
||
#https://github.com/tschuchortdev/kotlin-compile-testing | ||
compileTestingVersion=1.6.0 | ||
#endregion | ||
|
||
#region Plugins | ||
#https://github.com/Kotlin/dokka | ||
dokkaVersion=1.9.20 | ||
|
||
#https://github.com/Kotlin/kotlinx-kover | ||
koverVersion=0.8.3 | ||
|
||
#https://github.com/vanniktech/gradle-maven-publish-plugin | ||
mavenPublishVersion=0.30.0 | ||
#endregion | ||
|
||
kotlin.code.style=official |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters