Skip to content

Commit 7cc7234

Browse files
committed
update release process
1 parent 13aed03 commit 7cc7234

File tree

2 files changed

+19
-17
lines changed

2 files changed

+19
-17
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,16 @@ jobs:
1818
java-version: '21'
1919
cache: gradle
2020

21-
- name: Build
22-
run: ./gradlew --no-daemon clean build
21+
- name: Extract Version
22+
run: echo "RELEASE_VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV
23+
24+
- name: Build and Test
25+
run: ./gradlew --no-daemon clean build -PciVersion=${{ env.RELEASE_VERSION }}
2326

2427
- name: Publish to Maven Central (Portal)
2528
env:
2629
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.CENTRAL_PORTAL_USER }}
2730
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.CENTRAL_PORTAL_PASSWORD }}
2831
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
2932
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}
30-
run: ./gradlew --no-daemon publishToMavenCentral
33+
run: ./gradlew --no-daemon publishToMavenCentral -PciVersion=${{ env.RELEASE_VERSION }}

build.gradle.kts

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,37 @@
1-
import org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_21
1+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
22

33
plugins {
4-
kotlin("jvm") version "2.2.21"
5-
kotlin("plugin.serialization") version "2.2.21"
4+
kotlin("jvm") version "2.3.0"
5+
kotlin("plugin.serialization") version "2.3.0"
66
id("org.jetbrains.dokka") version "2.1.0"
7-
id("org.jetbrains.kotlinx.kover") version "0.9.3"
7+
id("org.jetbrains.kotlinx.kover") version "0.9.5"
88
`maven-publish`
99
signing
1010

1111
id("io.github.sgtsilvio.gradle.maven-central-publishing") version "0.4.1"
1212
}
1313

1414
group = "com.eignex"
15-
version = "1.0.0"
15+
version = findProperty("ciVersion") as String? ?: "SNAPSHOT"
1616

1717
repositories { mavenCentral() }
1818

1919
kotlin {
2020
jvmToolchain(21)
21-
compilerOptions { jvmTarget.set(JVM_21) }
21+
compilerOptions { jvmTarget.set(JvmTarget.JVM_21) }
2222
}
2323

2424
java {
25-
toolchain { languageVersion.set(JavaLanguageVersion.of(21)) }
2625
withSourcesJar()
2726
withJavadocJar()
2827
}
2928

3029
dependencies {
3130
testImplementation(kotlin("test"))
32-
compileOnly("org.jetbrains.kotlinx:kotlinx-serialization-core:1.9.0")
33-
testImplementation("org.jetbrains.kotlinx:kotlinx-serialization-core:1.9.0")
34-
testImplementation("org.jetbrains.kotlinx:kotlinx-serialization-protobuf:1.9.0")
35-
testImplementation("org.bouncycastle:bcprov-jdk18on:1.80")
31+
compileOnly("org.jetbrains.kotlinx:kotlinx-serialization-core:1.10.0")
32+
testImplementation("org.jetbrains.kotlinx:kotlinx-serialization-core:1.10.0")
33+
testImplementation("org.jetbrains.kotlinx:kotlinx-serialization-protobuf:1.10.0")
34+
testImplementation("org.bouncycastle:bcprov-jdk18on:1.83")
3635
}
3736

3837
tasks.test { useJUnitPlatform() }
@@ -57,9 +56,9 @@ publishing {
5756
}
5857
}
5958
scm {
60-
url.set("https://github.com/Eignex/kencode")
61-
connection.set("scm:git:https://github.com/Eignex/kencode.git")
62-
developerConnection.set("scm:git:ssh://git@github.com/Eignex/kencode.git")
59+
url.set("https://github.com/Eignex/kpermute")
60+
connection.set("scm:git:https://github.com/Eignex/kpermute.git")
61+
developerConnection.set("scm:git:ssh://git@github.com/Eignex/kpermute.git")
6362
}
6463
developers {
6564
developer {

0 commit comments

Comments
 (0)