-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
56 lines (47 loc) · 1.79 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
buildscript {
repositories {
jcenter()
maven {
url 'http://repo.jenkins-ci.org/releases/'
}
}
dependencies {
classpath 'org.jenkins-ci.tools:gradle-jpi-plugin:0.12.1'
}
}
apply plugin: 'org.jenkins-ci.jpi'
group = "org.jenkins-ci.plugins"
version = "0.0.1-SNAPSHOT"
description = "Build Publisher Plugin. Publish notifications about all completed builds to RabbitMQ."
// Jenkins 1.580+ still uses Java 7, not Java 8.
sourceCompatibility = 1.7
targetCompatibility = 1.7
dependencies {
// for RabbitMQ Publisher
compile('com.rabbitmq:amqp-client:3.5.3',
// note: newer version of "json" library (like 20141113) require Java 8+,
// which we can't use in Jenkins.
'org.json:json:20140107')
// need AbstractTestResultAction class from JUnit Plugin to load "published" Test Results
jenkinsPlugins 'org.jenkins-ci.plugins:junit:1.6@jar'
testCompile(
'junit:junit:4.12',
// can't use AssertJ because it requires Java 8, which is not supported for Jenkins Plugins
'org.assertj:assertj-core:2.1.0'
)
}
jenkinsPlugin {
// Version of Jenkins core this plugin depends on.
coreVersion = '1.580.3'
displayName = 'Build Publisher Plugin' // Human-readable name of plugin.
url = 'https://github.com/alexeyOnGitHub/jenkins-publisher-plugin' // URL for plugin on Jenkins wiki or elsewhere.
gitHubUrl = 'https://github.com/alexeyOnGitHub/jenkins-publisher-plugin' // Plugin URL on GitHub. Optional.
// The developers section is optional, and corresponds to the POM developers section.
developers {
developer {
id 'askorokhodov'
name 'Alexey Skorokhodov'
email 'alskor@gmail.com'
}
}
}