Skip to content

Commit

Permalink
Gradle cleanup #3
Browse files Browse the repository at this point in the history
Tweak the way directories are passed

PiperOrigin-RevId: 374912886
  • Loading branch information
ojw28 committed May 21, 2021
1 parent 2c2197d commit 8c9c0f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions core_settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ def rootDir = file(gradle.ext.exoplayerRoot)
if (!gradle.ext.has('exoplayerSettingsDir')) {
gradle.ext.exoplayerSettingsDir = rootDir.getCanonicalPath()
}

def modulePrefix = ':'
if (gradle.ext.has('exoplayerModulePrefix')) {
modulePrefix += gradle.ext.exoplayerModulePrefix
Expand Down
3 changes: 2 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
gradle.ext.exoplayerRoot = settingsDir
gradle.ext.exoplayerRoot = rootDir
gradle.ext.exoplayerModulePrefix = ''

def modulePrefix = ':'
if (gradle.ext.has('exoplayerModulePrefix')) {
Expand Down

0 comments on commit 8c9c0f8

Please sign in to comment.