Skip to content

Commit 51dd9ea

Browse files
committed
Explicitly declare dependencies
Reduce the risk that new dependencies will be injected accidentally from a dependency update. The developer documentation provides more details at https://www.jenkins.io/doc/developer/plugin-development/dependencies-and-class-loading/#build-time-validation-of-bundled-artifacts Originally added to Maven hpi plugin in pull request: * jenkinsci/maven-hpi-plugin#771 Testing done * Confirmed that automated tests pass
1 parent c3c3fa8 commit 51dd9ea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@
5050
<revision>3.22</revision>
5151
<changelist>-SNAPSHOT</changelist>
5252
<gitHubRepo>jenkinsci/${project.artifactId}-plugin</gitHubRepo>
53+
<hpi.bundledArtifacts>atlassian-event,atlassian-httpclient-api,atlassian-util-concurrent,fugue,jira-rest-java-client-api,jira-rest-java-client-core,maven-artifact,plexus-utils,sal-api</hpi.bundledArtifacts>
54+
<hpi.strictBundledArtifacts>true</hpi.strictBundledArtifacts>
5355
<jira-rest-client.version>6.0.2</jira-rest-client.version>
5456
<fugue.version>4.7.2</fugue.version>
5557
<!-- https://www.jenkins.io/doc/developer/plugin-development/choosing-jenkins-baseline/ -->

0 commit comments

Comments
 (0)