Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_android_sdk_maven_plugin
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Panagiotis Triantafyllou
2025-06-30 16:53:37 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e29d6801d93ffc7298d3e30dd474936010b56372
e29d6801
1 parent
718dd745
migrate to maven central
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
26 deletions
build.gradle
scripts/publish-module.gradle
scripts/publish-root.gradle
warply_android_sdk/build.gradle
build.gradle
View file @
e29d680
...
...
@@ -11,13 +11,16 @@ buildscript {
classpath
'com.android.tools.build:gradle:8.8.0'
classpath
'com.google.gms:google-services:4.3.10'
classpath
'com.huawei.agconnect:agcp:1.9.1.300'
classpath
'io.github.gradle-nexus:publish-plugin:1.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
plugins
{
id
'maven-publish'
}
allprojects
{
repositories
{
mavenCentral
()
...
...
@@ -27,5 +30,4 @@ allprojects {
}
}
apply
plugin:
'io.github.gradle-nexus.publish-plugin'
apply
from:
"${rootDir}/scripts/publish-root.gradle"
\ No newline at end of file
apply
from:
"${rootDir}/scripts/publish-root.gradle"
...
...
scripts/publish-module.gradle
View file @
e29d680
This diff is collapsed. Click to expand it.
scripts/publish-root.gradle
View file @
e29d680
// Create variables with empty default values
// Central Portal credentials
ext
[
"centralPortalUsername"
]
=
''
ext
[
"centralPortalPassword"
]
=
''
// keyId is the last 8 characters of the GPG key
ext
[
"signing.keyId"
]
=
''
// password is the passphrase of the GPG key
ext
[
"signing.password"
]
=
''
// key is the base64 private GPG key
ext
[
"signing.key"
]
=
''
// osshrUsername and ossrhPassword are the account details for MavenCentral
// which we’ve chosen at the Jira registration step (Sonatype site))
ext
[
"ossrhUsername"
]
=
''
ext
[
"ossrhPassword"
]
=
''
ext
[
"sonatypeStagingProfileId"
]
=
''
File
secretPropsFile
=
project
.
rootProject
.
file
(
'local.properties'
)
if
(
secretPropsFile
.
exists
())
{
...
...
@@ -19,24 +18,11 @@ if (secretPropsFile.exists()) {
new
FileInputStream
(
secretPropsFile
).
withCloseable
{
is
->
p
.
load
(
is
)
}
p
.
each
{
name
,
value
->
ext
[
name
]
=
value
}
}
else
{
// Use system environment variables
ext
[
"ossrhUsername"
]
=
System
.
getenv
(
'OSSRH_USERNAME'
)
ext
[
"ossrhPassword"
]
=
System
.
getenv
(
'OSSRH_PASSWORD'
)
ext
[
"sonatypeStagingProfileId"
]
=
System
.
getenv
(
'SONATYPE_STAGING_PROFILE_ID'
)
// Use system environment variables for signing
ext
[
"signing.keyId"
]
=
System
.
getenv
(
'SIGNING_KEY_ID'
)
ext
[
"signing.password"
]
=
System
.
getenv
(
'SIGNING_PASSWORD'
)
ext
[
"signing.key"
]
=
System
.
getenv
(
'SIGNING_KEY'
)
// Central Portal credentials can also come from environment
ext
[
"centralPortalUsername"
]
=
System
.
getenv
(
'CENTRAL_PORTAL_USERNAME'
)
ext
[
"centralPortalPassword"
]
=
System
.
getenv
(
'CENTRAL_PORTAL_PASSWORD'
)
}
// Set up Sonatype repository
nexusPublishing
{
repositories
{
sonatype
{
stagingProfileId
=
sonatypeStagingProfileId
username
=
ossrhUsername
password
=
ossrhPassword
nexusUrl
.
set
(
uri
(
"https://s01.oss.sonatype.org/service/local/"
))
snapshotRepositoryUrl
.
set
(
uri
(
"https://s01.oss.sonatype.org/content/repositories/snapshots/"
))
}
}
}
\ No newline at end of file
...
...
warply_android_sdk/build.gradle
View file @
e29d680
...
...
@@ -5,7 +5,7 @@ android.buildFeatures.buildConfig = true
ext
{
PUBLISH_GROUP_ID
=
'ly.warp'
PUBLISH_VERSION
=
'4.5.5.4m
6
'
PUBLISH_VERSION
=
'4.5.5.4m
7
'
PUBLISH_ARTIFACT_ID
=
'warply-android-sdk'
}
...
...
Please
register
or
login
to post a comment