Uploaded image for project: 'Gradle'
  1. Gradle
  2. GRADLE-1997

Dependencies declared as part of a POM profile marked with activeByDefault are not parsed and resolved

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.12-rc-1

      Description

      It seems to me that gradle does not download per default the transitive dependencies from a maven repo when they are defined in a profile section of a pom. Am I missing a configuration? Or can I somehow define which profile should be taken?
      An example is

      group: 'com.sun.jersey.jersey-test-framework', name: 'jersey-test-framework-grizzly2', version: '1.10'

      which has a default profile section with two dependencies:

      <profile>
      <id>default</id>
      <activation>
      <activeByDefault>true</activeByDefault>
      </activation>
      <dependencies>
      <dependency>
      <groupId>com.sun.jersey.jersey-test-framework</groupId>
      <artifactId>jersey-test-framework-core</artifactId>
      <version>${project.version}</version>
      </dependency>
      <dependency>
      <groupId>com.sun.jersey</groupId>
      <artifactId>jersey-grizzly2-servlet</artifactId>
      <version>${project.version}</version>
      </dependency>
      </dependencies>
      </profile>

      Both of them I don't see in the dependency tree.

        Attachments

          Activity

            People

            Assignee:
            bmuschko Benjamin Muschko
            Reporter:
            forums Gradle Forums
            Votes:
            12 Vote for this issue
            Watchers:
            12 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: