Improve publishing to Bintray
- Update bintray-release version - Publish to exoplayer-test unless -PpublicRepo=true - Publish GVR extension - Minimize duplication with new publish.gradle ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=150185740
This commit is contained in:
parent
a9617af29c
commit
d6db5066cd
10
build.gradle
10
build.gradle
@ -17,7 +17,7 @@ buildscript {
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:2.3.0'
|
||||
classpath 'com.novoda:bintray-release:0.3.4'
|
||||
classpath 'com.novoda:bintray-release:0.4.0'
|
||||
}
|
||||
}
|
||||
|
||||
@ -34,10 +34,16 @@ allprojects {
|
||||
compileSdkVersion=25
|
||||
targetSdkVersion=25
|
||||
buildToolsVersion='25'
|
||||
releaseRepoName = 'exoplayer'
|
||||
releaseRepoName = getBintrayRepo()
|
||||
releaseUserOrg = 'google'
|
||||
releaseGroupId = 'com.google.android.exoplayer'
|
||||
releaseVersion = 'r2.2.0'
|
||||
releaseWebsite = 'https://github.com/google/ExoPlayer'
|
||||
}
|
||||
}
|
||||
|
||||
def getBintrayRepo() {
|
||||
boolean publicRepo = hasProperty('publicRepo') &&
|
||||
property('publicRepo').toBoolean()
|
||||
return publicRepo ? 'exoplayer' : 'exoplayer-test'
|
||||
}
|
||||
|
@ -27,3 +27,9 @@ dependencies {
|
||||
compile project(':library')
|
||||
compile 'com.google.vr:sdk-audio:1.30.0'
|
||||
}
|
||||
|
||||
ext {
|
||||
releaseArtifact = 'extension-gvr'
|
||||
releaseDescription = 'Google VR extension for ExoPlayer.'
|
||||
}
|
||||
apply from: '../../publish.gradle'
|
||||
|
@ -12,7 +12,6 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
apply plugin: 'com.android.library'
|
||||
apply plugin: 'bintray-release'
|
||||
|
||||
android {
|
||||
compileSdkVersion project.ext.compileSdkVersion
|
||||
@ -36,12 +35,8 @@ dependencies {
|
||||
}
|
||||
}
|
||||
|
||||
publish {
|
||||
artifactId = 'extension-okhttp'
|
||||
description = 'An OkHttp extension for ExoPlayer.'
|
||||
repoName = releaseRepoName
|
||||
userOrg = releaseUserOrg
|
||||
groupId = releaseGroupId
|
||||
version = releaseVersion
|
||||
website = releaseWebsite
|
||||
ext {
|
||||
releaseArtifact = 'extension-okhttp'
|
||||
releaseDescription = 'OkHttp extension for ExoPlayer.'
|
||||
}
|
||||
apply from: '../../publish.gradle'
|
||||
|
@ -14,7 +14,6 @@
|
||||
import com.android.builder.core.BuilderConstants
|
||||
|
||||
apply plugin: 'com.android.library'
|
||||
apply plugin: 'bintray-release'
|
||||
|
||||
android {
|
||||
compileSdkVersion project.ext.compileSdkVersion
|
||||
@ -81,12 +80,8 @@ android.libraryVariants.all { variant ->
|
||||
}
|
||||
}
|
||||
|
||||
publish {
|
||||
artifactId = 'exoplayer'
|
||||
description = 'The ExoPlayer library.'
|
||||
repoName = releaseRepoName
|
||||
userOrg = releaseUserOrg
|
||||
groupId = releaseGroupId
|
||||
version = releaseVersion
|
||||
website = releaseWebsite
|
||||
ext {
|
||||
releaseArtifact = 'exoplayer'
|
||||
releaseDescription = 'The ExoPlayer library.'
|
||||
}
|
||||
apply from: '../publish.gradle'
|
||||
|
24
publish.gradle
Normal file
24
publish.gradle
Normal file
@ -0,0 +1,24 @@
|
||||
// Copyright (C) 2017 The Android Open Source Project
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// 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.
|
||||
apply plugin: 'bintray-release'
|
||||
|
||||
publish {
|
||||
artifactId = releaseArtifact
|
||||
description = releaseDescription
|
||||
repoName = releaseRepoName
|
||||
userOrg = releaseUserOrg
|
||||
groupId = releaseGroupId
|
||||
version = releaseVersion
|
||||
website = releaseWebsite
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user