-
Notifications
You must be signed in to change notification settings - Fork 16
/
build.gradle
111 lines (89 loc) · 4.33 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
107
108
109
110
111
buildscript {
apply from: "https://raw.githubusercontent.com/blackducksoftware/integration-resources/master/gradle_common/buildscript-repositories.gradle", to: buildscript
apply from: 'https://raw.githubusercontent.com/blackducksoftware/integration-resources/master/gradle_common/buildscript-cgp-version.gradle'
repositories {
maven { url "https://repo.jenkins-ci.org/releases/" }
}
ext {
javaTargetCompatibility = 8
javaSourceCompatibility = 8
}
dependencies { classpath "com.blackduck.integration:common-gradle-plugin:${managedCgpVersion}" }
configurations {
all {
exclude group: 'org.checkerframework', module:'checker-qual'
resolutionStrategy.force 'org.jenkins-ci.main:jenkins-test-harness:2110.v71145c2d8157'
resolutionStrategy.force 'org.apache.ant:ant:1.10.4'
resolutionStrategy.force 'org.codehaus.plexus:plexus-archiver:4.8.0'
}
}
}
plugins {
// this version (0.43.0 and up) , uses a later version of test-harness eliminating the
// dependency on a compromised version of apache commons-text. Shows as a red-herring in scans
id 'org.jenkins-ci.jpi' version '0.46.0'
}
def internalRepoHost = System.getenv("SNPS_INTERNAL_ARTIFACTORY")
apply from: "https://raw.githubusercontent.com/blackducksoftware/integration-resources/master/gradle_common/buildscript-repositories.gradle"
repositories {
maven { url "${internalRepoHost}/artifactory/jcenter" }
}
java {
registerFeature('workflowJob') {
usingSourceSet(sourceSets.main)
}
registerFeature('workflowJobDsl') {
usingSourceSet(sourceSets.main)
}
registerFeature('workflowCps') {
usingSourceSet(sourceSets.main)
}
registerFeature('workflowStepApi') {
usingSourceSet(sourceSets.main)
}
}
project.ext.excludesFromTestCoverage = ['**/DetectDownloadStrategy.java', '**/DetectPipelineStep.java', '**/DetectPostBuildStep.java', '**/DetectAirGapInstallation.java']
group = 'com.blackducksoftware.integration'
version = '10.0.0-SIGQA3-SNAPSHOT'
description = 'Black Duck Detect for Jenkins'
apply plugin: 'com.blackduck.integration.solution'
artifactory {
publish {
defaults { publications('mavenJpi') }
}
}
jenkinsPlugin {
jenkinsVersion = '2.426.3' // as of version 0.40.0 of jpi, it's jenkinsVersion...
displayName = 'Black Duck Detect'
compatibleSinceVersion = '10.0.0'
url = 'https://github.com/jenkinsci/blackduck-detect-plugin'
gitHubUrl = 'https://github.com/jenkinsci/blackduck-detect-plugin'
pluginFirstClassLoader = false
}
dependencies {
implementation 'org.springframework.security:spring-security-web:5.8.15'
annotationProcessor 'com.blackduck.integration:jenkins-annotation-processor:1.0.0'
implementation('org.jenkins-ci.main:jenkins-core:2.426.3') {
exclude group: 'org.eclipse.jgit', module: 'org.eclipse.jgit'
}
implementation 'org.checkerframework:checker-qual:3.33.0'
implementation 'com.google.j2objc:j2objc-annotations:2.8'
implementation 'com.blackduck.integration:blackduck-common:67.0.1'
implementation('com.blackduck.integration:jenkins-common:1.0.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"
}
implementation 'org.jvnet.localizer:localizer:1.31'
implementation 'org.jenkins-ci.plugins:credentials:1139.veb_9579fca_33b_'
implementation 'org.jenkins-ci.plugins:plain-credentials:1.8'
workflowJobDslApi 'org.jenkins-ci.plugins:job-dsl:1.83'
workflowJobApi 'org.jenkins-ci.plugins.workflow:workflow-job:1207.ve6191ff089f8'
workflowCpsApi 'org.jenkins-ci.plugins.workflow:workflow-cps:2746.v0da_83a_332669'
workflowStepApiApi 'org.jenkins-ci.plugins.workflow:workflow-step-api:639.v6eca_cd8c04a_a_'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.6.2'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-params', version: '5.6.2'
testImplementation group: 'org.mockito', name: 'mockito-core', version: '2.23.4'
}