Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
circles-android
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Circles
circles-android
Commits
2bcaa495
Commit
2bcaa495
authored
10 months ago
by
Taras
Browse files
Options
Downloads
Patches
Plain Diff
Update script
parent
2dd74bff
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules_release.sh
+8
-1
8 additions, 1 deletion
modules_release.sh
modules_release_clean.sh
+3
-1
3 additions, 1 deletion
modules_release_clean.sh
with
11 additions
and
2 deletions
modules_release.sh
+
8
−
1
View file @
2bcaa495
...
...
@@ -19,6 +19,7 @@ awk -v version="$version_name" '/-Dversion=/ {gsub(/-Dversion=[^ ]+/, "-Dversion
./gradlew :core:assembleRelease
./gradlew :gallery:assembleRelease
./gradlew :auth:assembleRelease
./gradlew :settings:assembleRelease
# Generate POM file for release publication
./gradlew :core:generatePomFileForGplayReleasePublication
...
...
@@ -26,6 +27,8 @@ awk -v version="$version_name" '/-Dversion=/ {gsub(/-Dversion=[^ ]+/, "-Dversion
./gradlew :gallery:generatePomFileForReleasePublication
./gradlew :auth:generatePomFileForGplayReleasePublication
./gradlew :auth:generatePomFileForFdroidReleasePublication
./gradlew :settings:generatePomFileForReleasePublication
# Move .aar to the root directory
mv
core/build/outputs/aar/core-fdroid-release.aar core-fdroid-release.aar
...
...
@@ -33,6 +36,7 @@ mv core/build/outputs/aar/core-gplay-release.aar core-gplay-release.aar
mv
gallery/build/outputs/aar/gallery-release.aar gallery-release.aar
mv
auth/build/outputs/aar/auth-fdroid-release.aar auth-fdroid-release.aar
mv
auth/build/outputs/aar/auth-gplay-release.aar auth-gplay-release.aar
mv
settings/build/outputs/aar/settings-release.aar settings-release.aar
# Move poms to the root directory and rename
mv
core/build/publications/gplayRelease/pom-default.xml pom_core_gplay.xml
...
...
@@ -40,10 +44,13 @@ mv core/build/publications/fdroidRelease/pom-default.xml pom_core_fdroid.xml
mv
gallery/build/publications/release/pom-default.xml pom_gallery.xml
mv
auth/build/publications/gplayRelease/pom-default.xml pom_auth_gplay.xml
mv
auth/build/publications/fdroidRelease/pom-default.xml pom_auth_fdroid.xml
mv
settings/build/publications/release/pom-default.xml pom_settings.xml
# Remove <packaging>aar</packaging> from pom
awk
'!/<packaging>aar<\/packaging>/'
pom_core_fdroid.xml
>
tmp
&&
mv
tmp pom_core_fdroid.xml
awk
'!/<packaging>aar<\/packaging>/'
pom_core_gplay.xml
>
tmp
&&
mv
tmp pom_core_gplay.xml
awk
'!/<packaging>aar<\/packaging>/'
pom_gallery.xml
>
tmp
&&
mv
tmp pom_gallery.xml
awk
'!/<packaging>aar<\/packaging>/'
pom_auth_fdroid.xml
>
tmp
&&
mv
tmp pom_auth_fdroid.xml
awk
'!/<packaging>aar<\/packaging>/'
pom_auth_gplay.xml
>
tmp
&&
mv
tmp pom_auth_gplay.xml
\ No newline at end of file
awk
'!/<packaging>aar<\/packaging>/'
pom_auth_gplay.xml
>
tmp
&&
mv
tmp pom_auth_gplay.xml
awk
'!/<packaging>aar<\/packaging>/'
pom_settings.xml
>
tmp
&&
mv
tmp pom_settings.xml
\ No newline at end of file
This diff is collapsed.
Click to expand it.
modules_release_clean.sh
+
3
−
1
View file @
2bcaa495
...
...
@@ -5,9 +5,11 @@ rm -f auth-fdroid-release.aar
rm
-f
core-gplay-release.aar
rm
-f
core-fdroid-release.aar
rm
-f
gallery-release.aar
rm
-f
settings-release.aar
rm
-f
pom_auth_gplay.xml
rm
-f
pom_auth_fdroid.xml
rm
-f
pom_core_gplay.xml
rm
-f
pom_core_fdroid.xml
rm
-f
pom_gallery.xml
\ No newline at end of file
rm
-f
pom_gallery.xml
rm
-f
pom_settings.xml
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment