Skip to content

Commit 432e115

Browse files
authored
Feature/update 2 (#26)
* Update Gradle * Update Kotlin * Update Libraries * Fix publishing * Fix Actions * Update version
1 parent 98f292b commit 432e115

File tree

19 files changed

+95
-137
lines changed

19 files changed

+95
-137
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99
build-and-publish:
1010
runs-on: macos-latest
1111
steps:
12-
- uses: actions/checkout@v4
12+
- uses: actions/checkout@v6
1313

1414
- name: "Set Up JDK"
15-
uses: actions/setup-java@v4
15+
uses: actions/setup-java@v5
1616
with:
1717
distribution: corretto
1818
java-version: 17
@@ -26,13 +26,17 @@ jobs:
2626
shell: bash
2727

2828
- name: "Decode GPG Key"
29+
env:
30+
RING_FILE: ${{ secrets.SIGNING_SECRET_KEY_RING_FILE }}
2931
run: |
30-
echo "${{ secrets.SIGNING_SECRET_KEY_RING_FILE }}" > ~/.gradle/secring.gpg.b64
32+
echo "$RING_FILE" > ~/.gradle/secring.gpg.b64
3133
base64 --decode -i ~/.gradle/secring.gpg.b64 -o ~/.gradle/secring.gpg
3234
shell: bash
3335

3436
- name: "Publish"
35-
run: ./gradlew publishAllPublicationsToMavenCentralRepository -Psigning.keyId=${{ secrets.SIGNING_KEY_ID }} -Psigning.password=${{ secrets.SIGNING_PASSWORD }} -Psigning.secretKeyRingFile=$(echo ~/.gradle/secring.gpg)
37+
run: ./gradlew publishToMavenCentral -Psigning.keyId=$KEY_ID -Psigning.password=$PASSWORD -Psigning.secretKeyRingFile=$(echo ~/.gradle/secring.gpg)
3638
env:
37-
MAVEN_TOKEN_USERNAME: ${{ secrets.MAVEN_TOKEN_USERNAME }}
38-
MAVEN_TOKEN_PASSWORD: ${{ secrets.MAVEN_TOKEN_PASSWORD }}
39+
KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
40+
PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
41+
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_TOKEN_USERNAME }}
42+
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_TOKEN_PASSWORD }}

.github/workflows/tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
checks: write
1212
pull-requests: write
1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v6
1515

1616
- name: "Set Up JDK"
17-
uses: actions/setup-java@v4
17+
uses: actions/setup-java@v5
1818
with:
1919
distribution: corretto
2020
java-version: 17
@@ -32,7 +32,7 @@ jobs:
3232
shell: bash
3333

3434
- name: "Tests Report"
35-
uses: dorny/test-reporter@v2
35+
uses: dorny/test-reporter@ee446707ff3bdadb3c039ff1af4286a09acb79c6
3636
if: success() || failure()
3737
with:
3838
name: jUnit Tests
@@ -45,7 +45,7 @@ jobs:
4545
shell: bash
4646

4747
- name: "Coverage Report"
48-
uses: mi-kas/kover-report@v1
48+
uses: mi-kas/kover-report@624c610e0c054a270ce07a40972c643261c513bb
4949
if: ${{ github.event_name == 'pull_request' }}
5050
with:
5151
path: |

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
tasks.wrapper {
2-
gradleVersion = "8.14.2"
2+
gradleVersion = "9.2.1"
33
}
44

55
allprojects {
66

77
group = "com.ucasoft.ktor"
88

9-
version = "0.55.3"
9+
version = "0.57.7"
1010

1111
repositories {
1212
mavenCentral()
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
import org.gradle.api.Project
22

3-
const val ktorVersion = "3.2.0"
4-
const val kotestVersion = "5.9.1"
3+
const val ktorVersion = "3.3.3"
4+
const val kotestVersion = "6.0.7"
55

66
fun Project.ktor(module: String) = "io.ktor:ktor-$module:$ktorVersion"
77

88
fun Project.ktorClient(module: String) = ktor("client-$module")
99

1010
fun Project.ktorServer(module: String) = ktor("server-$module")
1111

12-
fun Project.kotest(module: String, version: String = kotestVersion) = "io.kotest:kotest-$module:$version"
13-
14-
fun Project.kotestEx(module: String, version: String) = "io.kotest.extensions:kotest-$module:$version"
12+
fun Project.kotest(module: String, version: String = kotestVersion) = "io.kotest:kotest-$module:$version"
Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,26 @@
1-
import org.gradle.api.model.ObjectFactory
2-
import org.gradle.kotlin.dsl.property
1+
import org.gradle.api.publish.maven.MavenPom
32

4-
open class PublishingExtension(factory: ObjectFactory) {
5-
val name = factory.property<String>()
6-
val description = factory.property<String>()
3+
4+
fun configurePom(name: String, description: String, pom: MavenPom) {
5+
pom.name.set(name)
6+
pom.description.set(description)
7+
pom.url.set("https://github.com/Scogun/ktor-simple-cache")
8+
pom.licenses {
9+
license {
10+
this.name.set("The Apache License, Version 2.0")
11+
url.set("https://www.apache.org/licenses/LICENSE-2.0.txt")
12+
}
13+
}
14+
pom.developers {
15+
developer {
16+
id.set("Scogun")
17+
this.name.set("Sergey Antonov")
18+
email.set("SAntonov@ucasoft.com")
19+
}
20+
}
21+
pom.scm {
22+
connection.set("scm:git:git://github.com/Scogun/ktor-simple-cache.git")
23+
developerConnection.set("scm:git:ssh://github.com:Scogun/ktor-simple-cache.git")
24+
url.set("https://github.com/Scogun/ktor-simple-cache")
25+
}
726
}

buildSrc/src/main/kotlin/publish.gradle.kts

Lines changed: 0 additions & 62 deletions
This file was deleted.

gradle/wrapper/gradle-wrapper.jar

181 Bytes
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.1-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)