Skip to content
This repository has been archived by the owner on Oct 7, 2022. It is now read-only.

Add dependency to groovy-xml #114

Merged
merged 1 commit into from
Mar 17, 2021

Conversation

martin-g
Copy link
Contributor

Without it I face this error while building Apache Dubbo:

[ERROR] testAvailable  Time elapsed: 6.882 s  <<< ERROR!
    java.lang.NoClassDefFoundError: groovy/util/slurpersupport/GPathResult
    at org.apache.dubbo.registry.consul.ConsulRegistryTest.setUp(ConsulRegistryTest.java:55)

Updates:

  • Groovy to 2.5.14
  • JUnit4 to 4.13.2
  • JUnit5 to 5.7.1

Without it I face this error while building Apache Dubbo:

[ERROR] testAvailable  Time elapsed: 6.882 s  <<< ERROR!
    java.lang.NoClassDefFoundError: groovy/util/slurpersupport/GPathResult
    at org.apache.dubbo.registry.consul.ConsulRegistryTest.setUp(ConsulRegistryTest.java:55)

Updates:
- Groovy to 2.5.14
- JUnit4 to 4.13.2
- JUnit5 to 5.7.1
@szpak
Copy link
Collaborator

szpak commented Mar 16, 2021

groovy-xml is not needed by embedded-consul. Unless I missed something important in your case, please just add it to your project as your tests need that dependency.

See #102 for explanation.

@szpak szpak closed this Mar 16, 2021
@martin-g
Copy link
Contributor Author

Thanks for explaining!
I still don't see how Dubbo depends on GPathResult but I guess you are right!

@martin-g martin-g deleted the fix/add-dependency-to-groovy-xml branch March 17, 2021 07:03
@martin-g
Copy link
Contributor Author

I've figured it!
You use compile 'org.codehaus.groovy.modules.http-builder:http-builder:0.7.1' as a dependency and it uses the XML related classes: https://github.com/jgritman/httpbuilder/blob/72fb50a94cbd85f7cde17be0ea6b8e8375bc573e/src/main/java/groovyx/net/http/ParserRegistry.java#L26-L27
So, Embedded Consul does depend on groovy-xml!

@martin-g martin-g restored the fix/add-dependency-to-groovy-xml branch March 17, 2021 13:41
@martin-g
Copy link
Contributor Author

@szpak Do you agree with me that this PR should be reconsidered ?

@szpak
Copy link
Collaborator

szpak commented Mar 17, 2021

I didn't expect that, but you seem to be right :-). groovy-xml was a part of groovy.jar in the past, so it is not a transitive dependency after we enforce groovy-2.5.

Btw, seeing:

        <dependency>
            <groupId>org.codehaus.groovy</groupId>
            <artifactId>groovy</artifactId>
            <version>1.8.8</version>

in the httpbuilder's pom.xml, I'm glad it still works with Groovy 2.5...

Thanks for your PR. And thanks for Apache Wicket ;-).

@szpak szpak reopened this Mar 17, 2021
@szpak szpak merged commit d0b0f62 into pszymczyk:master Mar 17, 2021
@martin-g
Copy link
Contributor Author

in the httpbuilder's pom.xml, I'm glad it still works with Groovy 2.5...

If you feel adventurous you may want to replace it with https://http-builder-ng.github.io/http-builder-ng/ ;-)

@martin-g
Copy link
Contributor Author

Thanks for your PR. And thanks for Apache Wicket ;-).

Hehe :-)
Thank you too!

@martin-g martin-g deleted the fix/add-dependency-to-groovy-xml branch March 18, 2021 07:54
martin-g added a commit to martin-g/dubbo that referenced this pull request Mar 18, 2021
…gement section

Inline the version so that it is not forgotten to be removed when the dependency is removed with the upgrade to embedded-consul:2.2.1

See pszymczyk/embedded-consul#114
@szpak
Copy link
Collaborator

szpak commented Mar 18, 2021

If you feel adventurous you may want to replace it with https://http-builder-ng.github.io/http-builder-ng/ ;-)

Unfortunately:

Dormant - The HttpBuilder-NG project is going dormant. Neither of us use the project any longer nor do we have the extra time to properly maintain it.

okhttp is some alternative, however rather 3.x as 4.x migrated to Kotlin, which introduces extra dependency. Nevertheless, it would probably need to be done by some external contribution :-).

martin-g added a commit to martin-g/dubbo that referenced this pull request Apr 6, 2021
…gement section

Inline the version so that it is not forgotten to be removed when the dependency is removed with the upgrade to embedded-consul:2.2.1

See pszymczyk/embedded-consul#114
martin-g added a commit to martin-g/dubbo that referenced this pull request Apr 12, 2021
…gement section

Inline the version so that it is not forgotten to be removed when the dependency is removed with the upgrade to embedded-consul:2.2.1

See pszymczyk/embedded-consul#114
AlbumenJ pushed a commit to apache/dubbo that referenced this pull request Apr 15, 2021
* Issue #7349 - Fix the build on ARM64 CPU architecture

Update embedded-redis and embedded-consul to newer versions which have native binaries for aarch64
Re-introduce TravisCI as a build tool only for ARM64. It will run as a cron job every night

* Issue #7408 - Set the scope of groovy-xml in the dependencyManagement section

Inline the version so that it is not forgotten to be removed when the dependency is removed with the upgrade to embedded-consul:2.2.1

See pszymczyk/embedded-consul#114

* Update embedded-redis to 0.10.0

* DUBBO-7349 Upgrade Embedded-Consul to 2.2.1

* DUBBO-7349 Add scope=test to all occurrences of embedded-[redis|consul]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants