Skip to content

Commit b16aaae

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 06dadaa commit b16aaae

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
@@ -78,6 +78,8 @@ THE SOFTWARE.
7878
<jenkins.baseline>2.479</jenkins.baseline>
7979
<jenkins.version>${jenkins.baseline}.3</jenkins.version>
8080
<gitHubRepo>jenkinsci/${project.artifactId}-plugin</gitHubRepo>
81+
<hpi.bundledArtifacts>asn-one,mbassador,smbj</hpi.bundledArtifacts>
82+
<hpi.strictBundledArtifacts>true</hpi.strictBundledArtifacts>
8183
<hpi.compatibleSinceVersion>1885</hpi.compatibleSinceVersion>
8284
<spotless.check.skip>false</spotless.check.skip>
8385
<ban-junit4-imports.skip>false</ban-junit4-imports.skip>

0 commit comments

Comments
 (0)