mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Update the root project name check in publish.gradle
The name was changed in 25581384e9
and this check wasn't updated, meaning publishing no longer worked
(it didn't publish anything, just printed lots of warnings like
`Skipping task ':test-utils-robolectric:publish' as it has no
actions.`). This change means the check is now using the same
source-of-truth as the root project name, so it shouldn't go out of
sync again.
PiperOrigin-RevId: 531457952
(cherry picked from commit 4c1eb8aec7258324134913db521cd0a005ece31b)
This commit is contained in:
parent
f71370af75
commit
0888dfbd05
@ -21,6 +21,8 @@ if (gradle.ext.has('androidxMediaModulePrefix')) {
|
|||||||
modulePrefix += gradle.ext.androidxMediaModulePrefix
|
modulePrefix += gradle.ext.androidxMediaModulePrefix
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rootProject.name = gradle.ext.androidxMediaProjectName
|
||||||
|
|
||||||
include modulePrefix + 'lib-common'
|
include modulePrefix + 'lib-common'
|
||||||
project(modulePrefix + 'lib-common').projectDir = new File(rootDir, 'libraries/common')
|
project(modulePrefix + 'lib-common').projectDir = new File(rootDir, 'libraries/common')
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ apply plugin: 'maven-publish'
|
|||||||
apply from: "$gradle.ext.androidxMediaSettingsDir/missing_aar_type_workaround.gradle"
|
apply from: "$gradle.ext.androidxMediaSettingsDir/missing_aar_type_workaround.gradle"
|
||||||
|
|
||||||
afterEvaluate {
|
afterEvaluate {
|
||||||
if (rootProject.name == "media3") {
|
if (rootProject.name == gradle.ext.androidxMediaProjectName) {
|
||||||
publishing {
|
publishing {
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
|
@ -18,7 +18,7 @@ if (gradle.ext.has('androidxMediaModulePrefix')) {
|
|||||||
modulePrefix += gradle.ext.androidxMediaModulePrefix
|
modulePrefix += gradle.ext.androidxMediaModulePrefix
|
||||||
}
|
}
|
||||||
|
|
||||||
rootProject.name = 'media3'
|
gradle.ext.androidxMediaProjectName = 'media3'
|
||||||
|
|
||||||
include modulePrefix + 'demo'
|
include modulePrefix + 'demo'
|
||||||
project(modulePrefix + 'demo').projectDir = new File(rootDir, 'demos/main')
|
project(modulePrefix + 'demo').projectDir = new File(rootDir, 'demos/main')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user