Skip to content

Commit

Permalink
fix: maven publishing, bump version to 4.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
kkostov committed Jan 27, 2025
1 parent 9fa15be commit c19c039
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 36 deletions.
66 changes: 33 additions & 33 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
name: Publish to Maven Central

on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+*"

jobs:
publish:
name: Publish to Sonatype
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Configure JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

- name: Upload Artifacts
# gradle.properties must be set with SONATYPE_HOST=CENTRAL_PORTAL and RELEASE_SIGNING_ENABLED=true
run: ./gradlew publishAndReleaseToMavenCentral --no-configuration-cache
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.ORG_GRADLE_PROJECT_mavenCentralUsername }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.ORG_GRADLE_PROJECT_mavenCentralPassword }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKey }}
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKeyId }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKeyPassword }}
#name: Publish to Maven Central
#
#on:
# push:
# tags:
# - "[0-9]+.[0-9]+.[0-9]+*"
#
#jobs:
# publish:
# name: Publish to Sonatype
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4
#
# - name: Configure JDK
# uses: actions/setup-java@v4
# with:
# distribution: 'temurin'
# java-version: '17'
#
# - name: Setup Gradle
# uses: gradle/actions/setup-gradle@v4
#
# - name: Upload Artifacts
# # gradle.properties must be set with SONATYPE_HOST=CENTRAL_PORTAL and RELEASE_SIGNING_ENABLED=true
# run: ./gradlew publishAndReleaseToMavenCentral --no-configuration-cache
# env:
# ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.ORG_GRADLE_PROJECT_mavenCentralUsername }}
# ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.ORG_GRADLE_PROJECT_mavenCentralPassword }}
# ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKey }}
# ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKeyId }}
# ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKeyPassword }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The Kotlin SDK for TelemetryDeck is available from Maven Central and can be used

```groovy
dependencies {
implementation 'com.telemetrydeck:kotlin-sdk:4.0.2'
implementation 'com.telemetrydeck:kotlin-sdk:4.0.5'
}
```

Expand Down
2 changes: 1 addition & 1 deletion lib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ dependencies {
}

mavenPublishing {
coordinates("com.telemetrydeck", "kotlin-sdk", "4.0.3")
coordinates("com.telemetrydeck", "kotlin-sdk", "4.0.5")

pom {
name = "TelemetryDeck SDK"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class EnvironmentParameterProvider : TelemetryDeckProvider, TelemetryProviderFal
private val platform: String = "Android"
private val os: String = "Android"
private val sdkName: String = "KotlinSDK"
private val sdkVersion: String = "4.0.3"
private val sdkVersion: String = "4.0.5"

override fun fallbackRegister(ctx: Application?, client: TelemetryDeckSignalProcessor) {
register(ctx, client)
Expand Down

0 comments on commit c19c039

Please sign in to comment.