Config publish library to jcenter

master
徐灿辉 5 years ago
parent 5c2d973b32
commit 8e4f76b2d3
  1. 1
      build.gradle
  2. 15
      library/build.gradle
  3. 8
      secret.gradle

@ -10,6 +10,7 @@ buildscript {
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:3.6.1' classpath 'com.android.tools.build:gradle:3.6.1'
classpath 'com.novoda:bintray-release:0.9.1'
// NOTE: Do not place your application dependencies here; they belong // NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files // in the individual module build.gradle files

@ -1,4 +1,7 @@
apply plugin: 'com.android.library' apply plugin: 'com.android.library'
apply plugin: 'com.novoda.bintray-release'
apply from: rootProject.file("secret.gradle")
android { android {
compileSdkVersion 29 compileSdkVersion 29
@ -50,3 +53,15 @@ dependencies {
androidTestImplementation 'androidx.test.ext:junit:1.1.1' androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
} }
publish {
userOrg = 'xch168' // bintray.com用户名
groupId = 'com.github.xch168' // jcenter上的路径
artifactId = 'FFmpeg-Invoker' //
publishVersion = '0.0.1' //
desc = 'Invoker ffmpeg on Android' //
website = 'https://github.com/xch168/FFmpeg-Invoker' //
bintrayUser = bintray_user // bintray.com的用户名
bintrayKey = bintray_key // bintray.com的API key
}

@ -0,0 +1,8 @@
//
Properties properties = new Properties()
InputStream inputStream = project.rootProject.file('local.properties').newDataInputStream()
properties.load( inputStream )
//
ext.bintray_key = properties.getProperty('bintray.key')
ext.bintray_user = properties.getProperty('bintray.user')
Loading…
Cancel
Save