Skip to content

Commit 3dae8cc

Browse files
committed
Better naming: apply suffix '-min' when publishing without video module
1 parent 2982fa1 commit 3dae8cc

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

library/build.gradle

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,19 @@ if (deployArtifacts()) {
120120
def siteUrl = 'https://github.com/wysaid/android-gpuimage-plus'
121121
def gitUrl = 'https://github.com/wysaid/android-gpuimage-plus.git'
122122
group = "org.wysaid"
123-
version = rootProject.ext.android.versionName
123+
124+
if (disableVideoModule()) {
125+
version = rootProject.ext.android.versionName + '-min'
126+
} else {
127+
version = rootProject.ext.android.versionName
128+
}
124129

125130
publishing {
126131
publications {
127132
release(MavenPublication) {
128133
artifactId = 'gpuimage-plus'
129134
groupId = 'org.wysaid'
130-
version = rootProject.ext.android.versionName
135+
version = version
131136

132137
afterEvaluate {
133138
from components.release

0 commit comments

Comments
 (0)