This repository has been archived by the owner on Jul 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.gradle
113 lines (100 loc) · 3.03 KB
/
build.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
plugins {
id 'java-gradle-plugin'
id 'groovy'
id 'maven-publish'
id 'com.jfrog.bintray' version '1.7.1'
id 'com.gradle.plugin-publish' version '0.9.4'
}
gradlePlugin {
plugins {
findbugsAndroidPlugin {
id = 'com.chaitanyapramod.findbugs-android'
implementationClass = 'com.chaitanyapramod.gradle.android.findbugs.FindBugsAndroidPlugin'
}
}
}
group 'com.chaitanyapramod.gradle'
version '1.1'
task sourceJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: groovydoc) {
classifier = 'javadoc'
from groovydoc.destinationDir
artifacts {
archives javadocJar
}
}
def pomConfig = {
licenses {
license {
name 'MIT License'
url 'https://opensource.org/licenses/mit-license.php'
}
}
developers {
developer {
id 'ChaitanyaPramod'
name 'Chaitanya Pramod'
email 'me@chaitanyapramod.com'
}
}
scm {
url 'https://github.com/ChaitanyaPramod/findbugs-android.git'
}
}
publishing {
publications {
plugin(MavenPublication) {
from components.java
artifact sourceJar
artifact javadocJar
pom.withXml {
def root = asNode()
root.appendNode('description', 'Gradle plugin that creates FindBugs reports for android projects')
root.appendNode('name', 'findbugs-android-gradle-plugin')
root.appendNode('url', 'https://findbugs-android.chaitanyapramod.com/')
root.children().last() + pomConfig
}
}
}
}
bintray {
user = property('bintray.user')
key = property('bintray.key')
pkg {
publications = ['plugin']
repo = 'maven'
name = 'findbugs-android-gradle-plugin'
licenses = ['MIT']
vcsUrl = 'https://github.com/ChaitanyaPramod/findbugs-android.git'
websiteUrl = 'https://github.com/ChaitanyaPramod/findbugs-android'
issueTrackerUrl = 'https://github.com/ChaitanyaPramod/findbugs-android/issues'
githubRepo = 'ChaitanyaPramod/findbugs-android'
githubReleaseNotesFile = 'CHANGELOG.md'
labels = ['gradle', 'findbugs', 'plugin', 'android']
version {
gpg {
sign = true
}
}
}
}
pluginBundle {
website = 'https://github.com/ChaitanyaPramod/findbugs-android'
vcsUrl = 'https://github.com/ChaitanyaPramod/findbugs-android.git'
description = 'Gradle plugin that creates FindBugs tasks for each variant of android application or library project'
tags = ['android', 'findbugs']
plugins {
findbugsAndroidPlugin {
id = 'com.chaitanyapramod.findbugs-android'
displayName = 'Findbugs Android plugin'
}
}
mavenCoordinates {
groupId = 'com.chaitanyapramod.gradle'
artifactId = 'findbugs-android'
version = project.version
}
}