-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathbuild.gradle
106 lines (87 loc) · 4.05 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 {
apply from: "buildscript-repositories.gradle", to: buildscript
apply from: 'https://raw.githubusercontent.com/blackducksoftware/integration-resources/master/gradle_common/buildscript-cgp-version.gradle'
dependencies {
classpath "com.synopsys.integration:common-gradle-plugin:${managedCgpVersion}"
}
}
plugins {
id 'org.jenkins-ci.jpi' version '0.43.0'
}
java {
registerFeature('workflowJob') {
usingSourceSet(sourceSets.main)
}
registerFeature('workflowJobDsl') {
usingSourceSet(sourceSets.main)
}
registerFeature('workflowCps') {
usingSourceSet(sourceSets.main)
}
registerFeature('workflowStepApi') {
usingSourceSet(sourceSets.main)
}
}
group = 'org.jenkins-ci.plugins'
version = '3.0.6-SNAPSHOT'
description = 'Allows users to run Coverity commands in their builds'
apply plugin: 'com.synopsys.integration.solution'
artifactory {
publish {
defaults { publications('mavenJpi') }
}
}
repositories {
//jcenter is going away,exclude any dependency search https://blog.gradle.org/jcenter-shutdown
maven { url "https://repo1.maven.org/maven2/" }
maven { url "https://artifacts-oss.talend.com/nexus/content/repositories/TalendOpenSourceRelease/" }
maven { url "https://repository.mulesoft.org/nexus/content/repositories/public/" }
maven { url "https://repo.jenkins-ci.org/releases/"}
maven { url "https://repo.jenkins-ci.org/plugin/"}
}
jenkinsPlugin {
// Must be compatible with the version declared in Jenkins Common
jenkinsVersion = '2.401.3' // as of version 0.40.0 of jpi, it's jenkinsVersion
displayName = 'Synopsys Coverity plugin'
url = 'https://github.com/jenkinsci/synopsys-coverity-plugin'
gitHubUrl = 'https://github.com/jenkinsci/synopsys-coverity-plugin'
compatibleSinceVersion = '2.0.0'
pluginFirstClassLoader = false
maskClasses = 'org.apache.commons.compress'
}
dependencies {
annotationProcessor 'com.synopsys.integration:jenkins-annotation-processor:0.0.7'
implementation ('com.synopsys.integration:coverity-common:0.8.2') {
exclude group: "com.fasterxml.jackson.core", module: "jackson-databind"
exclude group: "net.minidev", module: "json-smart"
exclude group: "org.springframework.security", module: "spring-security-web"
}
implementation 'org.apache.commons:commons-text:1.10.0'
implementation ('com.synopsys.integration:jenkins-common:0.4.0') {
exclude group: "org.jenkins-ci.main", module: "jenkins-core"
exclude group: "org.jenkins-ci.plugins", module: "credentials"
exclude group: "org.jenkins-ci.plugins", module: "plain-credentials"
exclude group: "org.jenkins-ci.plugins.workflow", module: "workflow-support"
exclude group: "org.jenkins-ci.plugins.workflow", module: "workflow-api"
exclude group: "org.apache.commons", module: "commons-text"
exclude group: "com.fasterxml.jackson.core", module: "jackson-databind"
exclude group: "net.minidev", module: "json-smart"
}
// Must be compatible with the versions declared in Jenkins Common
implementation 'org.jenkins-ci.plugins:credentials:1139.veb_9579fca_33b_'
implementation 'org.jenkins-ci.plugins:plain-credentials:1.8'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.6.2'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.6.2'
testImplementation 'org.mockito:mockito-junit-jupiter:3.3.3'
workflowJobDslApi 'org.jenkins-ci.plugins:job-dsl:1.83'
workflowJobApi 'org.jenkins-ci.plugins.workflow:workflow-job:1203.v7b_7023424efe'
workflowCpsApi 'org.jenkins-ci.plugins.workflow:workflow-cps:2729.2732.vda_e3f07b_5a_f8'
workflowStepApiApi 'org.jenkins-ci.plugins.workflow:workflow-step-api:622.vb_8e7c15b_c95a_'
testImplementation group: 'org.mockito', name: 'mockito-core', version: '2.23.4'
}
configurations.all {
resolutionStrategy {
force 'org.springframework.security:spring-security-web:5.8.10'
force 'org.jenkins-ci.main:jenkins-test-harness:2099.vc95b_86578f37'
}
}