Gradle bom improvements

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Unknown
    • 5.5.0
    • Affects Version/s: None
    • Component/s: Build
    • None
    • Java Drivers
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      Missed from gradle upgrade:

      Use require rather than assert to ensure validation always run.

      It looks like the validation isn’t currently being executed, because pom.withXml {} runs during the configuration phase (before the POM file is written), placing it inside a doLast block causes it to be skipped.

      One alternative is to remove pom.WithXml block and parse the generated POM file directly using XmlParser, as we did previously:

      val pomXml: Node = XmlParser().parse(destination)

              Assignee:
              Ross Lawley
              Reporter:
              Ross Lawley
              Slav Babanin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: