forked from jenkinsci/checkmarx-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
106 lines (80 loc) · 3.12 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
buildscript {
repositories {
jcenter()
maven { url 'http://repo.jenkins-ci.org/releases/' }
maven { url 'http://cx-artifactory:8081/artifactory/libs-release/' }
}
dependencies {
classpath 'org.jenkins-ci.tools:gradle-jpi-plugin:0.18.1',
'com.netflix.nebula:gradle-extra-configurations-plugin:2.2.+'
}
}
plugins { id "no.nils.wsdl2java" version "0.8" }
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'project-report'
apply plugin: 'org.jenkins-ci.jpi'
apply plugin: 'provided-base'
repositories {
jcenter()
maven { url 'http://repo.jenkins-ci.org/releases/' }
maven { url 'http://cx-artifactory:8081/artifactory/libs-release/' }
maven { url 'http://cx-artifactory:8081/artifactory/libs-snapshot' }
}
test {
maxParallelForks = Runtime.getRuntime().availableProcessors()
}
//currently there is an issue with Java8 and javadocs,
// Java 8 seems to be really strict with the JavaDoc. This is due to the new doclint for Javadoc
//for now we disable it so we can build the project properly
allprojects {
tasks.withType(Javadoc).all { enabled = false }
}
dependencies {
provided 'com.intellij:annotations:12.0',
'org.slf4j:slf4j-api:1.6.1'
compile 'com.checkmarx.client:checkmarx-client:8.80.0-20180620.095732-30'
optionalJenkinsPlugins 'org.jenkins-ci.main:maven-plugin:1.509.3@jar',
'org.jenkins-ci.plugins:credentials:1.23@jar'
testCompile 'junit:junit:4.12',
'org.eclipse.sisu:org.eclipse.sisu.plexus:0.0.0.M5',
'org.jmockit:jmockit:1.16',
'com.google.guava:guava:21.0'
// Fails with Gradle 2.12 and up without it. Related to https://issues.jenkins-ci.org/browse/JENKINS-17129
jenkinsTest 'org.jenkins-ci.plugins:ant:1.2@jar',
'org.jenkins-ci.plugins:mailer:1.1@jar',
'org.jenkins-ci.plugins:matrix-project:1.4@jar'
}
jenkinsPlugin {
// version of Jenkins core this plugin depends on
coreVersion = '1.579'
// short name of the plugin, defaults to the project name without trailing '-plugin'
shortName = 'checkmarx'
// human-readable name of plugin
displayName = 'Jenkins Checkmarx Plugin'
// URL for plugin on Jenkins wiki or elsewhere
url = 'https://wiki.jenkins-ci.org/display/JENKINS/Checkmarx+CxSAST+Plugin'
// plugin URL on GitHub, optional
gitHubUrl = 'https://github.com/jenkinsci/checkmarx-plugin.git'
// use the plugin class loader before the core class loader, defaults to false
pluginFirstClassLoader = true
// URL used to deploy the plugin, defaults to the value shown
// repoUrl = 'http://maven.jenkins-ci.org:8081/content/repositories/releases'
// URL used to deploy snapshots of the plugin, defaults to the value shown
// snapshotRepoUrl = 'http://maven.jenkins-ci.org:8081/content/repositories/snapshots'
// enable injection of additional tests for checking the syntax of Jelly and other things
disabledTestInjection = false
// the output directory for the localizer task relative to the project root, defaults to the value shown
localizerOutputDir = "${project.buildDir}/generated-src/localizer"
developers {
developer {
id 'checkmarxsupport'
name 'Checkmarx Support'
}
developer {
id 'galdor'
name 'Gal Dor'
}
}
}