paulk-asert opened a new pull request, #3384:
URL: https://github.com/apache/groovy/pull/3384
Brings the Maven Grape engine closer to the Ivy engine, as groundwork for
making GrapeMaven the default.
**Commit 1: local repository, `autoDownload=false`, JVM proxies**
- `~/.m2/repository` is searched after the grape cache
(`~/.groovy/grapesM2`), as a read-only local repository, so artifacts installed
with `mvn install` can be grabbed. They are used in place, not copied.
- `@GrabConfig(autoDownload=false)` and `-Dgroovy.grape.autoDownload=false`
resolve offline, from the local repositories only. They were ignored before.
- The JVM proxy properties (`-Dhttps.proxyHost` etc.) are used. They were
ignored before, because the Apache HttpClient transport does not read them.
**Commit 2: `~/.m2/settings.xml`**
- Mirrors, active proxies (falling back to the JVM properties), server
credentials, `localRepository` and `offline` apply to grabs. A server's
credentials go to the repository or mirror with the same id, such as a
`@GrabResolver` name.
- Values may use `${env.NAME}` and system properties.
- Not supported: encrypted passwords (the server is skipped with a warning),
profiles, the global settings file, a server's `<configuration>`. The
insecure-protocol policy is not applied to mirrors from the settings, as with
Ivy's `grapeConfig.xml`.
Tests: new tests in `GrapeMavenTest` cover each behaviour without network
access, using `file:` repositories and a loopback HTTP server that also acts as
the proxy; each test uses its own `user.home`. They live under `groovy/grape/`,
so they run with `-Djunit.network=true`. Docs in `grape.adoc` and two Groovy 7
entries in `COMPATIBILITY.md`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]