forked from zhichaoZhang/apk-releaser-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbintray.gradle
95 lines (95 loc) · 2.91 KB
/
bintray.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
//// 应用插件
//apply plugin: 'com.jfrog.bintray'
//apply plugin: 'maven-publish'
//
//
def baseUrl = 'https://github.com/YamLee/apk-releaser-plugin'
def siteUrl = baseUrl
def gitUrl = "[email protected]:YamLee/apk-releaser-plugin.git"
def issueUrl = "${baseUrl}/issues"
//
//
// install {
// repositories {
// mavenInstaller {
// // This generates POM.xml with proper paramters
// pom.project {
//
// //添加项目描述
// name 'apk-release-plugin'
// url siteUrl
//
// //设置开源证书信息
// licenses {
// license {
// name 'The Apache Software License, Version 2.0'
// url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
// }
// }
// //添加开发者信息
// developers {
// developer {
// name 'YamLee'
// email '[email protected]'
// }
// }
//
// scm {
// connection gitUrl
// developerConnection gitUrl
// url siteUrl
// }
// }
// }
//
// }
// }
//
// 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 javadocJar(type: Jar, dependsOn: Javadoc) {
// classifier = 'javadoc'
// from Javadoc.destinationDir
// exclude '**/R.html', '**/R.*.html', '**/index.html'
// }
//
// afterEvaluate {
// Javadoc.classpath += files(android.libraryVariants.collect { variant ->
// variant.javaCompile.classpath.files
// })
// }
//
// artifacts {
// archives javadocJar
// archives sourcesJar
// }
//
// //配置上传Bintray相关信息
// bintray {
// // user = project.property('bintray_user')
// // key = project.property('bintray_key')
//
// user = 'joye'
// key = '3408ba56a530f1cd34a1e8f85d993b9e17dd9a0a'
//
// configurations = ['archives']
// pkg {
// repo = 'maven' // 上传到中央仓库的名称
// name = 'apk-release-plugin' // 上传到jcenter 的项目名称
// desc = 'Android gradle plugin for release apk' // 项目描述
// websiteUrl = siteUrl
// issueTrackerUrl = issueUrl
// vcsUrl = gitUrl
// labels = ['gradle', 'plugin']
// licenses = ['Apache-2.0']
// publish = true
// }
// }