ofbiz-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mathieu Lirzin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OFBIZ-10693) ‘./gradlew generateOfbizDocumentation’ fails with Gradle 5.0
Date Sat, 13 Apr 2019 08:14:00 GMT

    [ https://issues.apache.org/jira/browse/OFBIZ-10693?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16816864#comment-16816864
] 

Mathieu Lirzin commented on OFBIZ-10693:
----------------------------------------

 {quote}
BTW it works on trunk for both R17 and R18 but not locally. Weirdly Gradle downloads

    Download https://jcenter.bintray.com/org/asciidoctor/asciidoctorj/1.5.7/asciidoctorj-1.5.7.pom
{quote}

Dependency resolution in Java build systems is hard. Every time you add/remove/upgrade a package
you can end up with a different combinaison of package versions. Even some *OFBiz plugins*
“installed” locally will influence the version selected by Gradle, have you tried with
and without your plugins?

> ‘./gradlew generateOfbizDocumentation’ fails with Gradle 5.0
> ------------------------------------------------------------
>
>                 Key: OFBIZ-10693
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-10693
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Mathieu Lirzin
>            Assignee: Jacques Le Roux
>            Priority: Major
>             Fix For: Upcoming Branch
>
>         Attachments: OFBIZ-10693_Fix-AsciiDoctor-tasks-by-downgrading-corresponding-G.patch
>
>
> We recently upgraded Gradle 3.2.1 → 5.0. The {{./gradlew generateOfbizDocumentation}}
command fails with the following stacktrace
> {code:java}
> > Task :deleteOfbizDocumentation
> > Task :generateOfbizDocumentation FAILED
> Exception in thread "main" java.lang.ExceptionInInitializerError
> 	at org.codehaus.groovy.runtime.InvokerHelper.<clinit>(InvokerHelper.java:86)
> 	at groovy.lang.GroovyObjectSupport.getDefaultMetaClass(GroovyObjectSupport.java:59)
> 	at groovy.lang.GroovyObjectSupport.<init>(GroovyObjectSupport.java:32)
> 	at groovy.lang.Reference.<init>(Reference.java:38)
> 	at org.asciidoctor.gradle.backported.AsciidoctorJavaExec.main(AsciidoctorJavaExec.groovy:188)
> Caused by: groovy.lang.GroovyRuntimeException: Conflicting module versions. Module [groovy-all
is loaded in version 2.5.4 and you are trying to load version 2.4.7
> 	at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl$DefaultModuleListener.onModule(MetaClassRegistryImpl.java:523)
> 	at org.codehaus.groovy.runtime.m12n.ExtensionModuleScanner.scanExtensionModuleFromProperties(ExtensionModuleScanner.java:87)
> 	at org.codehaus.groovy.runtime.m12n.ExtensionModuleScanner.scanExtensionModuleFromMetaInf(ExtensionModuleScanner.java:81)
> 	at org.codehaus.groovy.runtime.m12n.ExtensionModuleScanner.scanClasspathModulesFrom(ExtensionModuleScanner.java:63)
> 	at org.codehaus.groovy.runtime.m12n.ExtensionModuleScanner.scanClasspathModules(ExtensionModuleScanner.java:55)
> 	at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.<init>(MetaClassRegistryImpl.java:124)
> 	at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.<init>(MetaClassRegistryImpl.java:85)
> 	at groovy.lang.GroovySystem.<clinit>(GroovySystem.java:36)
> 	... 5 more
> FAILURE: Build failed with an exception.
> * What went wrong:
> Execution failed for task ':generateOfbizDocumentation'.
> > Process 'command '/gnu/store/w41g4n182c7qxaaq77jyrgdqifzzpvsp-icedtea-3.7.0-jdk/bin/java''
finished with non-zero exit value 1
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or --debug option
to get more log output. Run with --scan to get full insights.
> * Get more help at https://help.gradle.org
> BUILD FAILED in 1s
> 2 actionable tasks: 2 executed
> {code}
> It seems that the [AsciiDoctor Gradle Plugin|https://asciidoctor.org/docs/asciidoctor-gradle-plugin/]
is failing because Groovy 2.5.4 is now used by Gradle instead of Groovy 2.4.7
> I would be nice to work around this issue instead of downgrading Gradle.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message