Skip to content

Support dependency exclusions #12

Open

Description

@holgerbrandl

ie. by prefixing dependencies with a minus

//DEPS org.apache.commons:commons-csv:1.3 -log4j:log4j:1.2.14

Activity

  1. self-assigned this
    on Aug 4, 2016
  2. changed the title [-]Support dependency exclusions in `expandcp.kts`[/-] [+]Support dependency exclusions[/+] on Oct 24, 2017
  3. holgerbrandl commented on Nov 14, 2017

    @holgerbrandl
    CollaboratorAuthor

    This might be tough, because it seems to be done on a per-dependency basis:

    <project>
      ...
      <dependencies>
        <dependency>
          <groupId>sample.ProjectA</groupId>
          <artifactId>Project-A</artifactId>
          <version>1.0</version>
          <scope>compile</scope>
          <exclusions>
            <exclusion>  <!-- declare the exclusion here -->
              <groupId>sample.ProjectB</groupId>
              <artifactId>Project-B</artifactId>
            </exclusion>
          </exclusions> 
        </dependency>
      </dependencies>
    </project>
    

    For details see https://maven.apache.org/guides/introduction/introduction-to-optional-and-excludes-dependencies.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions