Skip to content

Commit e9d2e63

Browse files
authored
Explicitly declare dependencies (#1583)
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 cfd9679 commit e9d2e63

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
@@ -58,6 +58,8 @@ THE SOFTWARE.
5858
<properties>
5959
<changelist>999999-SNAPSHOT</changelist>
6060
<gitHubRepo>jenkinsci/${project.artifactId}-plugin</gitHubRepo>
61+
<hpi.bundledArtifacts>antlr-runtime,jsch.agentproxy.connector-factory,jsch.agentproxy.core,jsch.agentproxy.pageant,jsch.agentproxy.sshagent,jsch.agentproxy.svnkit-trilead-ssh2,jsch.agentproxy.usocket-jna,jsch.agentproxy.usocket-nc,lz4-java,sequence-library,sqljet,svnkit</hpi.bundledArtifacts>
62+
<hpi.strictBundledArtifacts>true</hpi.strictBundledArtifacts>
6163
<!-- https://www.jenkins.io/doc/developer/plugin-development/choosing-jenkins-baseline/ -->
6264
<jenkins.baseline>2.504</jenkins.baseline>
6365
<jenkins.version>${jenkins.baseline}.3</jenkins.version>

0 commit comments

Comments
 (0)