Skip to content

Commit

Permalink
Merge pull request #7 from VamaSingapore/fix/maven-publishing
Browse files Browse the repository at this point in the history
Fix: Edit maven publishing to use Github packages
  • Loading branch information
NohaSamir1 authored Nov 14, 2024
2 parents 6df47ef + cbac28a commit 304ee3b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 18 deletions.
28 changes: 16 additions & 12 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,29 @@ kotlin.code.style=official

###############################################################

GROUP=io.livekit
VERSION_NAME=2.9.7
GROUP=io.vama.livekit
VERSION_NAME=2.9.8

POM_DESCRIPTION=LiveKit Android SDK, WebRTC Rooms
POM_DESCRIPTION=Vama LiveKit Android SDK, WebRTC Rooms

POM_URL=https://github.com/livekit/client-sdk-android
POM_SCM_URL=https://github.com/livekit/client-sdk-android
POM_SCM_CONNECTION=scm:git:git://github.com/livekit/client-sdk-android.git
POM_SCM_DEV_CONNECTION=scm:git:ssh://[email protected]/livekit/client-sdk-android.git
POM_URL=https://github.com/VamaSingapore/client-sdk-android
POM_SCM_URL=https://github.com/VamaSingapore/client-sdk-android
POM_SCM_CONNECTION=scm:git:git://github.com/VamaSingapore/client-sdk-android.git
POM_SCM_DEV_CONNECTION=scm:git:ssh://[email protected]/VamaSingapore/client-sdk-android.git

POM_LICENCE_NAME=The Apache Software License, Version 2.0
POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt
POM_LICENCE_DIST=repo

POM_DEVELOPER_ID=livekit
POM_DEVELOPER_NAME=LiveKit
POM_DEVELOPER_ID=vama_livekit
POM_DEVELOPER_NAME=Vama_LiveKit

RELEASE_REPOSITORY_URL=https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/
SNAPSHOT_REPOSITORY_URL=https://s01.oss.sonatype.org/content/repositories/snapshots/
RELEASE_REPOSITORY_URL=https://maven.pkg.github.com/VamaSingapore/client-sdk-android/releases/
SNAPSHOT_REPOSITORY_URL=https://maven.pkg.github.com/VamaSingapore/client-sdk-android/snapshots/

# WARNING: Do not edit this and potentially commit to repo.
githubUsername=
githubToken=

# Variables required to allow build.gradle to parse for publishing.
# WARNING: Do not edit this and potentially commit to repo.
Expand All @@ -53,7 +57,7 @@ signing.secretKeyRingFile=

STAGING_PROFILE_ID=

RELEASE_SIGNING_ENABLED=true
RELEASE_SIGNING_ENABLED=false

# For instrumented tests.
# WARNING: Do not edit this and potentially commit to repo.
Expand Down
10 changes: 4 additions & 6 deletions gradle/gradle-mvn-push.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,19 @@ def isReleaseBuild() {
}

def getReleaseRepositoryUrl() {
return hasProperty('RELEASE_REPOSITORY_URL') ? RELEASE_REPOSITORY_URL
: "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
return RELEASE_REPOSITORY_URL
}

def getSnapshotRepositoryUrl() {
return hasProperty('SNAPSHOT_REPOSITORY_URL') ? SNAPSHOT_REPOSITORY_URL
: "https://oss.sonatype.org/content/repositories/snapshots/"
return SNAPSHOT_REPOSITORY_URL
}

def getRepositoryUsername() {
return hasProperty('nexusUsername') ? nexusUsername : ""
return githubUsername
}

def getRepositoryPassword() {
return hasProperty('nexusPassword') ? nexusPassword : ""
return githubToken
}

boolean getReleaseSigningEnabled() {
Expand Down

0 comments on commit 304ee3b

Please sign in to comment.