Gradle cleanup #3

Tweak the way directories are passed

PiperOrigin-RevId: 374912886
This commit is contained in:
olly 2021-05-20 19:24:23 +01:00 committed by Oliver Woodman
parent 2c2197d12c
commit 8c9c0f8d3f
2 changed files with 3 additions and 1 deletions

View File

@ -15,6 +15,7 @@ def rootDir = file(gradle.ext.exoplayerRoot)
if (!gradle.ext.has('exoplayerSettingsDir')) { if (!gradle.ext.has('exoplayerSettingsDir')) {
gradle.ext.exoplayerSettingsDir = rootDir.getCanonicalPath() gradle.ext.exoplayerSettingsDir = rootDir.getCanonicalPath()
} }
def modulePrefix = ':' def modulePrefix = ':'
if (gradle.ext.has('exoplayerModulePrefix')) { if (gradle.ext.has('exoplayerModulePrefix')) {
modulePrefix += gradle.ext.exoplayerModulePrefix modulePrefix += gradle.ext.exoplayerModulePrefix

View File

@ -11,7 +11,8 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
gradle.ext.exoplayerRoot = settingsDir gradle.ext.exoplayerRoot = rootDir
gradle.ext.exoplayerModulePrefix = ''
def modulePrefix = ':' def modulePrefix = ':'
if (gradle.ext.has('exoplayerModulePrefix')) { if (gradle.ext.has('exoplayerModulePrefix')) {