Skip to content

Commit d7b522e

Browse files
committed
adding repo
1 parent a123d36 commit d7b522e

File tree

2 files changed

+25
-18
lines changed

2 files changed

+25
-18
lines changed

libraries/sdk/build.gradle.kts

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
plugins {
22
id("com.android.library")
33
id("maven-publish")
4-
id("signing")
54
}
65

76
android {
@@ -104,25 +103,15 @@ publishing {
104103

105104
repositories {
106105
maven {
107-
name = "sonatype"
108-
url = uri(
109-
if (releaseVersion.endsWith("SNAPSHOT")) {
110-
"https://s01.oss.sonatype.org/content/repositories/snapshots/"
111-
} else {
112-
"https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
113-
}
114-
)
106+
name = "repsy"
107+
val releasesRepoUrl = "https://repo.repsy.io/mvn/winrid/fastcomments"
108+
val snapshotsRepoUrl = "https://repo.repsy.io/mvn/winrid/fastcomments"
109+
url = uri(if (releaseVersion.endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl)
110+
115111
credentials {
116-
username = findProperty("ossrhUsername") as String? ?: System.getenv("OSSRH_USERNAME")
117-
password = findProperty("ossrhPassword") as String? ?: System.getenv("OSSRH_PASSWORD")
112+
username = findProperty("repsyUsername") as String? ?: System.getenv("REPSY_USERNAME")
113+
password = findProperty("repsyPassword") as String? ?: System.getenv("REPSY_PASSWORD")
118114
}
119115
}
120116
}
121117
}
122-
123-
signing {
124-
val signingKey: String? = findProperty("signingKey") as String? ?: System.getenv("SIGNING_KEY")
125-
val signingPassword: String? = findProperty("signingPassword") as String? ?: System.getenv("SIGNING_PASSWORD")
126-
useInMemoryPgpKeys(signingKey, signingPassword)
127-
sign(publishing.publications["release"])
128-
}

publish_to_repsy.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
3+
# This script publishes the FastComments Android SDK to Repsy.io
4+
# It requires Repsy credentials
5+
6+
# Exit on error
7+
set -e
8+
9+
# Extract version from command line or use a default
10+
VERSION=${1:-0.0.1}
11+
12+
echo "Publishing version $VERSION to Repsy.io"
13+
14+
# Publish Android SDK
15+
echo "Publishing Android SDK..."
16+
cd ./libraries/sdk && ../../gradlew publish -PreleaseVersion=$VERSION && cd -
17+
18+
echo "Android SDK published successfully to Repsy.io"

0 commit comments

Comments
 (0)