-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathbuild.gradle
76 lines (61 loc) · 1.77 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
apply plugin: 'groovy'
dependencies {
compile gradleApi()
compile localGroovy()
}
apply plugin: 'maven'
apply plugin: 'signing'
repositories {
mavenCentral()
}
group = 'com.github.Mindera'
version = '1.0.7'
sourceCompatibility = 1.7
targetCompatibility = 1.7
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives javadocJar, sourcesJar
}
// TODO signing the jar
//signing {
// sign configurations.archives
//}
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: uri('../repo'))
pom.project {
name 'gradle-slack-plugin'
packaging 'jar'
description 'Gradle plugin to send messages to Slack after each build '
url 'https://github.com/Mindera/gradle-slack-plugin'
scm {
connection 'scm:[email protected]:Mindera/gradle-slack-plugin.git'
developerConnection 'scm:[email protected]:Mindera/gradle-slack-plugin.git'
url 'https://github.com/Mindera/gradle-slack-plugin'
}
licenses {
license {
name 'The MIT License (MIT)'
url 'http://opensource.org/licenses/MIT'
}
}
developers {
developer {
id 'joaoprudencio'
name 'Joao Prudencio'
email '[email protected]'
}
}
}
}
}
}