forked from jenkinsci/build-flow-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
86 lines (72 loc) · 3.09 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
plugins {
id 'org.jenkins-ci.jpi' version '0.18.0'
id 'groovy'
}
version = '0.7-SNAPSHOT'
description = 'Allows multiple SCM plugins to be used in a job.'
group = 'org.jenkins-ci.plugins'
sourceCompatibility = '1.6'
targetCompatibility = '1.6'
// Remove all directories from sourceSets.main.java.srcDirs
// so that everything compiles with the Groovy compiler.
// Some Java files inherit from classes in Groovy files.
sourceSets.main.java.srcDirs = [ "" ]
sourceSets.main.groovy.srcDirs += ["src/main/java"]
// Only compile properties with with Java compiler.
// This is for Messages.properties
sourceSets.main.java.srcDirs = [ "src/main/resources/*.properties" ]
// Make sure that generated Java files get compiled by the Java compiler
// This is for Messages.java
sourceSets.main.java.srcDirs += [ "build/generated-src/localizer" ]
//license {
// header = file('LICENSE')
//}
jenkinsPlugin {
// version of Jenkins core this plugin depends on, must be 1.420 or later
coreVersion = '1.609.1'
shortName = 'build-flow-plugin'
displayName = 'Build Flow plugin'
url = 'https://wiki.jenkins-ci.org/display/JENKINS/Build+Flow+Plugin'
gitHubUrl = 'https://github.com/jenkinsci/build-flow-plugin.git'
// use the plugin class loader before the core class loader
pluginFirstClassLoader = true
// the developers section is optional, and corresponds to the POM developers section
developers {
developer {
id 'rodrigc'
name 'Craig Rodrigues'
email '[email protected]'
}
}
}
allprojects {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:deprecation" << "-Xlint:unchecked"
}
tasks.withType(GroovyCompile) {
options.compilerArgs << "-Xlint:deprecation" << "-Xlint:unchecked"
}
}
dependencies {
compile "org.jgrapht:jgrapht-jdk1.5:0.7.3"
compile 'com.cloudbees:groovy-cps:1.7@jar'
jenkinsPlugins 'org.jenkins-ci.plugins:matrix-project:1.7@jar'
jenkinsPlugins 'org.jenkins-ci.plugins:junit:1.13@jar'
// Test dependencies
jenkinsTest "org.jenkins-ci.plugins:ant:1.3@jar"
jenkinsTest "org.mockito:mockito-all:1.8.5@jar"
jenkinsTest 'org.jenkins-ci.plugins:script-security:1.19@jar'
jenkinsTest 'org.jenkins-ci.main:maven-plugin:2.12.1@jar'
jenkinsTest 'org.jenkins-ci.plugins:javadoc:1.3@jar'
jenkinsTest 'org.jenkins-ci.plugins:mailer:1.17@jar'
// Test dependencies for pipeline plugin
jenkinsTest "org.jenkins-ci.plugins:durable-task:1.10@jar"
jenkinsTest "org.jenkins-ci.plugins.workflow:workflow-api:1.13@jar"
jenkinsTest "org.jenkins-ci.plugins.workflow:workflow-basic-steps:1.13@jar"
jenkinsTest "org.jenkins-ci.plugins.workflow:workflow-cps:1.13@jar"
jenkinsTest "org.jenkins-ci.plugins.workflow:workflow-durable-task-step:1.13@jar"
jenkinsTest "org.jenkins-ci.plugins.workflow:workflow-job:1.13@jar"
jenkinsTest "org.jenkins-ci.plugins.workflow:workflow-scm-step:1.13@jar"
jenkinsTest "org.jenkins-ci.plugins.workflow:workflow-step-api:1.13@jar"
jenkinsTest "org.jenkins-ci.plugins.workflow:workflow-support:1.13@jar"
}