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-02-14 12:25:35 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
10f7b6ad5ee06111ddb3e71634b8edcc1db02b48
10f7b6ad
1 parent
275c3ba8
new gradle fixes
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
8 deletions
scripts/publish-module.gradle
warply_android_sdk/build.gradle
scripts/publish-module.gradle
View file @
10f7b6a
...
...
@@ -32,13 +32,12 @@ afterEvaluate {
// Two artifacts, the `aar` (or `jar`) and the sources
if
(
project
.
plugins
.
findPlugin
(
"com.android.library"
))
{
// from components.release
from
components
.
findByName
(
'release'
)
from
(
project
.
components
.
findByName
(
"release"
))
}
else
{
from
components
.
java
}
artifact
androidSourcesJar
// Sources are now handled by the android block's singleVariant
// artifact javadocJar
// Mostly self-explanatory metadata
...
...
warply_android_sdk/build.gradle
View file @
10f7b6a
apply
plugin:
'com.android.library'
apply
plugin:
'maven-publish'
android
.
buildFeatures
.
buildConfig
=
true
ext
{
PUBLISH_GROUP_ID
=
'ly.warp'
PUBLISH_VERSION
=
'4.5.5.4r4
5
'
PUBLISH_VERSION
=
'4.5.5.4r4
6
'
PUBLISH_ARTIFACT_ID
=
'warply-android-sdk'
}
...
...
@@ -14,6 +17,14 @@ android {
useLibrary
'org.apache.http.legacy'
publishing
{
// Configure all components to be published
singleVariant
(
'release'
)
{
// Publish the release variant with sources
withSourcesJar
()
}
}
defaultConfig
{
minSdkVersion
23
targetSdkVersion
34
...
...
@@ -102,12 +113,17 @@ dependencies {
}
// In every export please update the version number
task
deleteJarLibrary
(
type:
Delete
)
{
task
s
.
register
(
'deleteJarLibrary'
,
Delete
)
{
delete
'jar/warply_android_sdk_v4.5.0.jar'
}
task
createJarLibrary
(
type:
Jar
,
dependsOn:
'assembleRelease'
)
{
from
fileTree
(
'build/intermediates/bundles/release/'
)
tasks
.
register
(
'createJarLibrary'
,
Jar
)
{
dependsOn
(
'assembleRelease'
)
from
(
fileTree
(
'build/intermediates/aar/release/'
))
destinationDirectory
=
file
(
'jar'
)
archiveFileName
=
"warply_android_sdk_v${PUBLISH_VERSION}.jar"
}
createJarLibrary
.
dependsOn
(
deleteJarLibrary
,
build
)
tasks
.
named
(
'createJarLibrary'
)
{
dependsOn
(
'deleteJarLibrary'
,
'build'
)
}
...
...
Please
register
or
login
to post a comment