Skip to content

Commit dd91e39

Browse files
authored
Add pom file to improve Code Insight scan results (#499)
* Add pom file to improve Code Insight scan results Signed-off-by: JirkaAichler <jiri.aichler@broadcom.com>
1 parent 373a408 commit dd91e39

File tree

4 files changed

+27
-2
lines changed

4 files changed

+27
-2
lines changed

Jenkinsfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ pipeline {
202202
*
203203
* DESCRIPTION
204204
* -----------
205-
* Runs the sonar-scanner analysis tool, which submits the source, test resutls,
205+
* Runs the sonar-scanner analysis tool, which submits the source, test results,
206206
* and coverage results for analysis in our SonarQube server.
207207
* TODO: This step does not yet support branch or PR submissions properly.
208208
***********************************************************************/
@@ -307,9 +307,12 @@ pipeline {
307307

308308
success {
309309
archiveArtifacts artifacts: 'api-catalog-services/build/libs/**/*.jar'
310+
archiveArtifacts artifacts: 'api-catalog-services/build/pom.xml'
310311
archiveArtifacts artifacts: 'discoverable-client/build/libs/**/*.jar'
311312
archiveArtifacts artifacts: 'discovery-service/build/libs/**/*.jar'
313+
archiveArtifacts artifacts: 'discovery-service/build/pom.xml'
312314
archiveArtifacts artifacts: 'gateway-service/build/libs/**/*.jar'
315+
archiveArtifacts artifacts: 'gateway-service/build/pom.xml'
313316
archiveArtifacts artifacts: 'integration-enabler-spring-v1/build/libs/**/*.jar'
314317
archiveArtifacts artifacts: 'integration-enabler-spring-v2/build/libs/**/*.jar'
315318
archiveArtifacts artifacts: 'integration-enabler-spring-v1-sample-app/build/libs/**/*.jar'

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ apply from: 'gradle/sonar.gradle'
4343
apply from: 'gradle/coverage.gradle'
4444
apply from: 'gradle/versions.gradle'
4545
apply from: 'gradle/code-quality.gradle'
46+
apply from: 'gradle/generate-pom.gradle'
4647

4748
allprojects {
4849
apply plugin: 'java'

gradle/generate-pom.gradle

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
allprojects {
2+
apply plugin: 'java'
3+
4+
task generatePom {
5+
doLast {
6+
pom {
7+
project {
8+
inceptionYear '2020'
9+
licenses {
10+
license {
11+
name 'Eclipse Public License, v2.0'
12+
url 'https://www.eclipse.org/legal/epl-2.0/'
13+
distribution 'repo'
14+
}
15+
}
16+
}
17+
}.writeTo("$buildDir/pom.xml")
18+
}
19+
}
20+
21+
build.dependsOn generatePom
22+
}

gradle/versions.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ ext {
1515
cucumberVersion = '1.2.5'
1616
hamcrestVersion = '1.3'
1717
javaxServletApiVersion = '3.1.0'
18-
jacksonVersion = '2.9.2'
1918
restAssuredVersion = '3.0.7'
2019
commonsValidatorVersion = "1.6"
2120
powerMockVersion = "2.0.4"

0 commit comments

Comments
 (0)