Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-46237

Jenkins POM: Add option to ban dependencies in lib which are supposed to be used in Jenkins JVM only

    Details

    • Similar Issues:

      Description

      See the discussion https://github.com/jenkinsci/pom/pull/14/files#r132010310

      Currently libs like EnvInject Lib may declare dependencies, which collide with the Jenkins core one. It would be useful to optionally prevent it somehow.

        Attachments

          Activity

          Hide
          jglick Jesse Glick added a comment -

          Can you give an example? And what would not be used “in the Jenkins JVM”?

          Show
          jglick Jesse Glick added a comment - Can you give an example? And what would not be used “in the Jenkins JVM”?
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Sorry for a vague description. I mean "Ban dependencies, which may conflict with Jenkins core" when a library is supposed to be used within Jenkins only.

          Technically it's similar to what we do in Plugin POM:

          <bannedDependencies>
            <excludes>
              <exclude>org.sonatype.sisu:sisu-guice</exclude>
              <exclude>log4j:log4j:*:jar:compile</exclude>
              <exclude>log4j:log4j:*:jar:runtime</exclude>
              <exclude>commons-logging:commons-logging:*:jar:compile</exclude>
              <exclude>commons-logging:commons-logging:*:jar:runtime</exclude>
            </excludes>
          </bannedDependencies>
          
          Show
          oleg_nenashev Oleg Nenashev added a comment - Sorry for a vague description. I mean "Ban dependencies, which may conflict with Jenkins core" when a library is supposed to be used within Jenkins only. Technically it's similar to what we do in Plugin POM: <bannedDependencies> <excludes> <exclude>org.sonatype.sisu:sisu-guice</exclude> <exclude>log4j:log4j:*:jar:compile</exclude> <exclude>log4j:log4j:*:jar:runtime</exclude> <exclude>commons-logging:commons-logging:*:jar:compile</exclude> <exclude>commons-logging:commons-logging:*:jar:runtime</exclude> </excludes> </bannedDependencies>

            People

            • Assignee:
              Unassigned
              Reporter:
              oleg_nenashev Oleg Nenashev
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: