-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.gradle
108 lines (92 loc) · 2.58 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
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.gradle.publish:plugin-publish-plugin:0.9.3"
}
}
plugins {
id "com.jfrog.bintray" version "1.6"
}
apply plugin: 'groovy'
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'signing'
apply plugin: "com.gradle.plugin-publish"
def GradleGithubPluginGroupId = 'co.riiid'
def GradleGithubPluginVersion = '0.4.2'
def GradleGithubPluginArtifact = 'gradle-github-plugin'
def GradleGithubPluginUrl = 'https://github.com/riiid/gradle-github-plugin'
pluginBundle {
website = GradleGithubPluginUrl
vcsUrl = GradleGithubPluginUrl
description = 'Gradle plugin for Github releases'
tags = ['github', 'gradle', 'release', 'releases']
plugins {
greetingsPlugin {
id = 'co.riiid.gradle'
displayName = 'Gradle plugin for Github releases'
}
}
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from 'build/docs/groovydoc'
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives javadocJar
archives sourcesJar
}
publishing {
publications {
GradleGithubPluginPublish(MavenPublication) {
from components.java
groupId GradleGithubPluginGroupId
artifactId GradleGithubPluginArtifact
version GradleGithubPluginVersion
artifact sourcesJar
artifact javadocJar
}
}
}
bintray {
user = project.hasProperty("user") ? project.user : ""
key = project.hasProperty("key") ? project.key : ""
publications = ['GradleGithubPluginPublish']
publish = true
dryRun = project.hasProperty("dryRun") ? project.dryRun : true
pkg {
repo = 'maven'
name = GradleGithubPluginArtifact
licenses = ['Apache-2.0']
vcsUrl = "${GradleGithubPluginUrl}.git"
publicDownloadNumbers = true
version {
name = GradleGithubPluginVersion
vcsTag = GradleGithubPluginVersion
gpg {
sign = true
passphrase = project.hasProperty("passphrase") ? project.passphrase : ""
}
}
}
}
group GradleGithubPluginGroupId
version GradleGithubPluginVersion
repositories {
jcenter()
}
dependencies {
compile gradleApi()
compile localGroovy()
compile 'org.codehaus.groovy.modules.http-builder:http-builder:0.7.1'
compile 'org.zeroturnaround:zt-zip:1.8'
testCompile group: 'junit', name: 'junit', version: '4.11'
}