https://github.com/LuckyJayce/ViewPagerIndicator
下载下来之后,用到bintray的地方删掉
com.novoda:bintray-release:0.9
build.gradle(library)
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}
task javadoc(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
}
task androidJavadocsJar(type: Jar) {
classifier = 'javadoc'
}
artifacts {
archives androidJavadocsJar
archives sourcesJar
}
上传到jcenter 执行
gradlew clean build bintrayUpload -PbintrayUser=用户名 -PbintrayKey=apiKey -PdryRun=false
添加
添加
publish {
userOrg = 'luckyjayce'//bintray.com用户名
groupId = 'com.shizhefei'//jcenter上的路径
artifactId = 'ViewPagerIndicator'//项目名称
publishVersion = '1.1.9'//版本号
desc = '实现滑动tab,引导页等效果'//描述,不重要
website = 'https://github.com/LuckyJayce/ViewPagerIndicator'//网站,不重要;尽量模拟github上的地址,例如我这样的;当然你有地址最好了
}
红色地方删掉,用来上传到jctener