GROOVY-11871: Support Maven Resolver based version of Grapes#2140
GROOVY-11871: Support Maven Resolver based version of Grapes#2140paulk-asert merged 1 commit intoapache:masterfrom
Conversation
d2a22cf to
e1ab08e
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #2140 +/- ##
==================================================
- Coverage 66.6787% 66.4334% -0.2453%
- Complexity 29858 29861 +3
==================================================
Files 1382 1386 +4
Lines 116145 116595 +450
Branches 20481 20631 +150
==================================================
+ Hits 77444 77458 +14
- Misses 32358 32796 +438
+ Partials 6343 6341 -2
🚀 New features to boost your workflow:
|
202953e to
eb032c8
Compare
89c2a9b to
6537392
Compare
40b4096 to
39ca48b
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 32 out of 34 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
ca4c840 to
bb86131
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 37 out of 39 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
| * def pretty= writer.toString() | ||
| * .replaceAll(/<\?xml[^>]*>/, '') // remove XML declaration | ||
| * assert pretty in ['<root1 a="5" b="7"><elem1>hello1</elem1><elem2>hello2</elem2><elem3 x="7"></elem3></root1>', | ||
| * '<root1 a="5" b="7"><elem1>hello1</elem1><elem2>hello2</elem2><elem3 x="7"/></root1>'] |
| } catch (ReflectiveOperationException ignore) { | ||
| if (DEBUG_GRAPE) { | ||
| System.err.println "Ignoring attempt to load ConsoleIvyPlugin: ${ignore.message}" | ||
| } | ||
| } | ||
|
|
||
| // listen for Maven resolver events if the Maven console plugin is on the classpath | ||
| try { | ||
| def mavenPluginClass = Class.forName('groovy.console.ui.ConsoleMavenPlugin') | ||
| mavenPluginClass.getConstructor().newInstance().addListener(this) | ||
| } catch (ReflectiveOperationException ignore) { | ||
| if (DEBUG_GRAPE) { | ||
| System.err.println "Ignoring attempt to load ConsoleMavenPlugin: ${ignore.message}" | ||
| } |
| def originalErr = System.err | ||
| def errBytes = new ByteArrayOutputStream() | ||
| try { | ||
| System.setErr(new PrintStream(errBytes, true, 'UTF-8')) | ||
| action.call() | ||
| return errBytes.toString('UTF-8') | ||
| } finally { | ||
| System.setErr(originalErr) | ||
| } |
| def pretty= writer.toString() | ||
| .replaceAll(/<\?xml[^>]*>/, '') // remove XML declaration | ||
| assert pretty == '<root attribute="1"><elem1>hello</elem1><elem2>world</elem2></root>' |
01caa5e to
74bd2f2
Compare
Provide an Apache Maven Resolver alternative backend implementation for Groovy Grapes.