forked from vigidroid/fat-aar-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
publish.gradle
71 lines (62 loc) · 2.05 KB
/
publish.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
apply plugin: 'maven'
apply plugin: 'com.jfrog.bintray'
def projectDesc = 'This is a gradle plugin that helps to output fat aar from android library.'
def projectGitUrl = 'https://github.com/Vigi0303/fat-aar-plugin'
def projectScmConnection = 'scm:[email protected]:Vigi0303/fat-aar-plugin.git'
def projectIssueUrl = 'https://github.com/Vigi0303/fat-aar-plugin/issues'
install {
repositories.mavenInstaller {
pom.groupId = GROUP
pom.artifactId = ARTIFACT_ID
pom.version = VERSION_NAME
pom.project {
name 'fat aar plugin'
description projectDesc
url projectGitUrl
scm {
url projectGitUrl
connection projectScmConnection
developerConnection projectScmConnection
}
developers {
developer {
id 'vigidroid'
name 'Vigi'
email '[email protected]'
}
}
}
}
}
task sourcesJar(type: Jar) {
classifier = 'sources'
group BasePlugin.BUILD_GROUP
description = 'Assembles a jar archive containing the main sources of this project.'
from sourceSets.main.allSource
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
group BasePlugin.BUILD_GROUP
description = 'Assembles a jar archive containing the generated Javadoc API documentation of this project.'
from groovydoc
}
artifacts {
archives sourcesJar
// archives javadocJar
}
bintray {
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
publish = true
configurations = ['archives']
pkg {
repo = 'maven'
name = project.name
desc = projectDesc
websiteUrl = projectGitUrl
vcsUrl = projectGitUrl
issueTrackerUrl = projectIssueUrl
licenses = ['MIT']
labels = ['gradle-plugin', 'android']
}
}