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

Gradle bom improvements

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: Build
    • None
    • Java Drivers
    • Not Needed
    • 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
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              None
              None
              None
              None