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

Gradle does not consider Maven profiles that are active when a property is not defined

    XMLWordPrintable

    Details

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

      Description

      I'm trying to set-up Pax-Exam in gradle:

      • [1]https://github.com/lburgazzoli/lb-axon
      • [2]https://github.com/lburgazzoli/lb-axo...

      But the test step fails to start because of the following error:

      • What went wrong:
        Could not resolve all dependencies for configuration ':axon-osgi:testCompile'.
        > Could not resolve org.ops4j.pax.exam:pax-exam-spi:3.4.0.
        Required by:
        com.github.lburgazzoli:axon-osgi:1.0.0.SNAPSHOT > org.ops4j.pax.exam:pax-exam-container-native:3.4.0
        com.github.lburgazzoli:axon-osgi:1.0.0.SNAPSHOT > org.ops4j.pax.exam:pax-exam-junit4:3.4.0
        > Could not parse POM [3]http://repo1.maven.org/maven2/org/ops...
        > Unable to resolve version for dependency 'com.google.guava:guava:jar'

      Looking at pax-exam-spi-3.4.0.pom, the version tag is effectively not provided but a very similar project builds without problem with Maven: any hint?
      ----------------------------------------------------------------------------------------
      [1] https://github.com/lburgazzoli/lb-axon
      [2] https://github.com/lburgazzoli/lb-axon/blob/master/axon-osgi/build.gradle
      [3] http://repo1.maven.org/maven2/org/ops4j/pax/exam/pax-exam-spi/3.4.0/pax-exam-spi-3.4.0.pom

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: