Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-5822

Gradle bom improvements

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown 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@mongodb.com Ross Lawley
            Reporter:
            ross@mongodb.com Ross Lawley
            Slav Babanin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: