-
-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy pathbuild.gradle
More file actions
215 lines (183 loc) · 9.38 KB
/
Copy pathbuild.gradle
File metadata and controls
215 lines (183 loc) · 9.38 KB
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
buildscript {
repositories {
mavenCentral()
maven { url 'https://repo.jenkins-ci.org/public/' }
gradlePluginPortal()
}
dependencies {
classpath 'org.jenkins-ci.tools:gradle-jpi-plugin:0.50.0'
}
}
apply plugin: 'java'
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'project-report'
apply plugin: 'org.jenkins-ci.jpi'
repositories {
mavenCentral()
mavenLocal() // Use this to load a custom build of Common Client from a local Maven repo.
maven { url 'https://repo.jenkins-ci.org/public/' }
maven { url 'http://cx-artifactory:8081/artifactory/libs-release/'; allowInsecureProtocol = true }
maven { url 'http://cx-artifactory:8081/artifactory/libs-snapshot'; allowInsecureProtocol = true }
maven { url 'http://cx-artifactory:8081/artifactory/plugins-release-local/'; allowInsecureProtocol = true }
maven { url 'http://cx-artifactory:8081/artifactory/libs-snapshot-local'; allowInsecureProtocol = true }
}
test {
maxParallelForks = Runtime.getRuntime().availableProcessors()
useJUnitPlatform()
}
//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 {
compileOnly 'com.intellij:annotations:12.0'
implementation ('com.checkmarx:cx-config-provider:1.0.14') {
exclude group: 'org.slf4j', module: 'slf4j-api'
exclude group: 'org.apache.logging.log4j', module: 'log4j-slf4j-impl'
exclude group: 'org.apache.logging.log4j', module: 'log4j-api'
exclude group: 'org.apache.logging.log4j', module: 'log4j-core'
exclude group: 'org.eclipse.jgit', module: 'org.eclipse.jgit'
exclude group: 'com.google.guava', module: 'guava'
exclude group: 'commons-io', module: 'commons-io'
exclude group: 'org.apache.commons', module: 'commons-lang3'
}
implementation ('com.checkmarx:cx-client-common:2026.2.32') {
exclude group: 'org.yaml' , module: 'snakeyaml'
exclude group: 'com.google.code.gson', module: 'gson'
exclude group: 'org.json', module: 'json'
exclude group: 'commons-beanutils', module: 'commons-beanutils'
exclude group: 'com.google.guava', module: 'guava'
exclude group: 'commons-collections', module: 'commons-collections'
exclude group: 'io.netty', module: 'netty-codec-http'
exclude group: 'org.apache.commons', module: 'commons-compress'
exclude group: 'io.vertx', module: 'vertx-core'
exclude group: 'org.mozilla', module: 'rhino'
exclude group: 'io.netty', module: 'netty-common'
exclude group: 'io.netty', module: 'netty-buffer'
exclude group: 'io.netty', module: 'netty-transport'
exclude group: 'io.netty', module: 'netty-resolver'
exclude group: 'io.netty', module: 'netty-handler'
exclude group: 'io.netty', module: 'netty-transport-native-unix-common'
exclude group: 'io.netty', module: 'netty-codec'
exclude group: 'io.netty', module: 'netty-handler-proxy'
exclude group: 'io.netty', module: 'netty-codec-socks'
exclude group: 'io.netty', module: 'netty-codec-http2'
exclude group: 'io.netty', module: 'netty-resolver-dns'
exclude group: 'io.netty', module: 'netty-codec-dns'
exclude group: 'org.iq80.snappy', module: 'snappy'
exclude group: 'org.apache.velocity', module: 'velocity-engine-core'
exclude group: 'org.codehaus.plexus', module: 'plexus-utils'
}
implementation ('org.apache.velocity:velocity-engine-core:2.4') {
exclude group: 'commons-io', module: 'commons-io'
}
implementation 'com.fasterxml.jackson.core:jackson-core:2.11.3',
'com.fasterxml.jackson.core:jackson-annotations:2.11.3',
'com.fasterxml.jackson.core:jackson-databind:2.14.1',
'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.11.3',
'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.10.5',
'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.10.5',
'org.apache.logging.log4j:log4j-slf4j-impl:2.17.1',
'org.apache.logging.log4j:log4j-api:2.17.1',
'org.apache.logging.log4j:log4j-core:2.17.1',
'org.apache.commons:commons-compress:1.27.0',
'com.google.code.gson:gson:2.8.9',
'org.yaml:snakeyaml:2.2',
'org.json:json:20231013',
'org.eclipse.jgit:org.eclipse.jgit:6.10.1.202505221210-r',
'com.google.guava:guava:32.1.1-jre',
'io.vertx:vertx-core:4.5.9',
'org.mozilla:rhino:1.7.15',
'javax.annotation:javax.annotation-api:1.3.2',
'io.netty:netty-common:4.1.122.Final',
'io.netty:netty-buffer:4.1.122.Final',
'io.netty:netty-transport:4.1.122.Final',
'io.netty:netty-resolver:4.1.122.Final',
'io.netty:netty-handler:4.1.122.Final',
'io.netty:netty-transport-native-unix-common:4.1.122.Final',
'io.netty:netty-codec:4.1.122.Final',
'io.netty:netty-handler-proxy:4.1.122.Final',
'io.netty:netty-codec-socks:4.1.122.Final',
'io.netty:netty-codec-http2:4.1.122.Final',
'io.netty:netty-resolver-dns:4.1.122.Final',
'io.netty:netty-codec-dns:4.1.122.Final',
'org.codehaus.plexus:plexus-utils:3.5.1',
'org.iq80.snappy:snappy:0.5',
'org.apache.commons:commons-lang3:3.18.0',
'commons-io:commons-io:2.19.0'
constraints {
implementation('io.vertx:vertx-web:3.9.7') {
because 'previous versions have a bug impacting this application'
}
implementation('commons-beanutils:commons-beanutils:1.11.0') {
because 'previous versions have a bug impacting this application'
}
implementation('io.netty:netty-codec-http:4.1.101.Final') {
because 'previous versions have a bug impacting this application'
}
implementation('org.apache.httpcomponents:httpclient:4.5.13') {
because 'previous versions have a bug impacting this application'
}
implementation('commons-io:commons-io:2.7') {
because 'previous versions have a bug impacting this application'
}
}
compileOnly 'org.jenkins-ci.main:maven-plugin:1.509.4@jar'
compileOnly 'org.jenkins-ci.plugins:credentials:2.1.19@jar'
testImplementation 'org.jenkins-ci.plugins:credentials:2.1.19@jar'
optionalJenkinsPlugins 'org.jenkins-ci.main:maven-plugin:1.509.4@jar'
// credentials is a required plugin dependency - declared as implementation so JPI 0.55.2
// generates Plugin-Dependencies in MANIFEST.MF (jenkinsPlugins config removed in JPI 0.50+)
implementation 'org.jenkins-ci.plugins:credentials:2.1.19'
testImplementation 'junit:junit:4.13.1',
'org.eclipse.sisu:org.eclipse.sisu.plexus:0.0.0.M5',
'org.jmockit:jmockit:1.16'
// 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.32.1@jar',
'org.jenkins-ci.plugins:matrix-project:1.18@jar'
testImplementation('org.junit.jupiter:junit-jupiter-api:5.10.2',
'org.mockito:mockito-junit-jupiter:4.11.0')
testRuntimeOnly('org.junit.jupiter:junit-jupiter-engine:5.10.2')
testRuntimeOnly('org.junit.platform:junit-platform-launcher:1.10.2')
}
// Gradle 8 requires explicit duplicate handling strategy for War/JPI packaging.
// Old Gradle silently excluded duplicates; this maintains the same behavior.
tasks.named('jpi') {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
jenkinsPlugin {
// version of Jenkins core this plugin depends on
coreVersion = '2.164.1'
// 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 'iland'
name 'Ilan Dayan'
}
}
}