ofbiz-notifications mailing list archives

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

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

Shi Jinghai commented on OFBIZ-10693:
-------------------------------------

I just tried to use 2.0.0 to ofbiz trunk in Fedora 29/openjdk 1.8.0_201-b09, it worked. Both
1.5.8.1 and 1.5.9.2 failed.

 
{code:java}
[workspace] $ /bin/sh -xe /tmp/jenkins2331645540419021206.sh
+ /usr/bin/java -version
openjdk version "1.8.0_201"
OpenJDK Runtime Environment (build 1.8.0_201-b09)
OpenJDK 64-Bit Server VM (build 25.201-b09, mixed mode)
+ /usr/bin/sed -i 's/id '\''org.asciidoctor.convert'\'' version '\''1.5.8.1'\''/id '\''org.asciidoctor.convert'\''
version '\''2.0.0'\''/g' build.gradle
+ /usr/bin/chmod +x gradlew
+ /usr/bin/sh gradlew generateOfbizDocumentation
Starting a Gradle Daemon (subsequent builds will be faster)

> Configure project :
You are using one or more deprecated Asciidoctor task or plugins. To help with migration run
with --warnings=all

> Task :deleteOfbizDocumentation

> Task :generateOfbizDocumentation
四月 13, 2019 1:55:30 上午 uri:classloader:/gems/asciidoctor-1.5.8/lib/asciidoctor/parser.rb
parse
警告: ../../framework/minilang/docs/asciidoc/minilang-to-groovy-manual.adoc: line 473: unterminated
listing block
unterminated listing block :: ../../framework/minilang/docs/asciidoc/minilang-to-groovy-manual.adoc
:: /var/lib/jenkins/jobs/OFBiz Document Generation/workspace/framework/minilang/docs/asciidoc//var/lib/jenkins/jobs/OFBiz
Document Generation/workspace/framework/minilang/docs/asciidoc/minilang-to-groovy-manual.adoc:473
(uri:classloader:/gems/asciidoctor-1.5.8/lib/asciidoctor/parser.rb:parse)
四月 13, 2019 1:55:30 上午 uri:classloader:/gems/asciidoctor-1.5.8/lib/asciidoctor/parser.rb
parse
警告: ../../framework/minilang/docs/asciidoc/minilang-to-groovy-manual.adoc: line 511: unterminated
listing block
unterminated listing block :: ../../framework/minilang/docs/asciidoc/minilang-to-groovy-manual.adoc
:: /var/lib/jenkins/jobs/OFBiz Document Generation/workspace/framework/minilang/docs/asciidoc//var/lib/jenkins/jobs/OFBiz
Document Generation/workspace/framework/minilang/docs/asciidoc/minilang-to-groovy-manual.adoc:511
(uri:classloader:/gems/asciidoctor-1.5.8/lib/asciidoctor/parser.rb:parse)

四月 13, 2019 1:55:50 上午 uri:classloader:/gems/asciidoctor-1.5.8/lib/asciidoctor/parser.rb
parse_table
警告: ../../framework/minilang/docs/asciidoc/minilang-to-groovy-manual.adoc: line 473: unterminated
listing block
unterminated listing block :: ../../framework/minilang/docs/asciidoc/minilang-to-groovy-manual.adoc
:: /var/lib/jenkins/jobs/OFBiz Document Generation/workspace/framework/minilang/docs/asciidoc//var/lib/jenkins/jobs/OFBiz
Document Generation/workspace/framework/minilang/docs/asciidoc/minilang-to-groovy-manual.adoc:473
(uri:classloader:/gems/asciidoctor-1.5.8/lib/asciidoctor/parser.rb:parse_table)
四月 13, 2019 1:55:50 上午 uri:classloader:/gems/asciidoctor-1.5.8/lib/asciidoctor/parser.rb
parse_table
警告: ../../framework/minilang/docs/asciidoc/minilang-to-groovy-manual.adoc: line 511: unterminated
listing block
unterminated listing block :: ../../framework/minilang/docs/asciidoc/minilang-to-groovy-manual.adoc
:: /var/lib/jenkins/jobs/OFBiz Document Generation/workspace/framework/minilang/docs/asciidoc//var/lib/jenkins/jobs/OFBiz
Document Generation/workspace/framework/minilang/docs/asciidoc/minilang-to-groovy-manual.adoc:511
(uri:classloader:/gems/asciidoctor-1.5.8/lib/asciidoctor/parser.rb:parse_table)

BUILD SUCCESSFUL in 55s
2 actionable tasks: 2 executed

Finished: SUCCESS
{code}
 

> ‘./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: 17.12.01
>
>         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