[jira] [Commented] (LUCENE-9382) Lucene's gradle version can't cope with Java 14

2020-06-02 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/LUCENE-9382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17123681#comment-17123681
 ] 

ASF subversion and git services commented on LUCENE-9382:
-

Commit 3e8e5d8cf6477a60cd8019a41c657bcf313a174c in lucene-solr's branch 
refs/heads/master from Dawid Weiss
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=3e8e5d8 ]

LUCENE-9382: update gradle to 6.4.1. (#1549)

* LUCENE-9382: update gradle to 6.4.1. Requires minor changes around log call 
validation by restructuring the code around switches to a series of ifs. 
Piggybacking: apply log validation to :solr modules. Add inputs declaration so 
that task is not re-run on unmodified files.

> Lucene's gradle version can't cope with Java 14
> ---
>
> Key: LUCENE-9382
> URL: https://issues.apache.org/jira/browse/LUCENE-9382
> Project: Lucene - Core
>  Issue Type: Sub-task
>Reporter: Alan Woodward
>Assignee: Dawid Weiss
>Priority: Major
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> If you have JDK 14 installed as your default java, then attempting to use 
> gradle within the lucene-solr project can result in errors, particularly if 
> you have other projects that use more recent gradle versions on the same 
> machine.
> ```
> java.lang.NoClassDefFoundError: Could not initialize class 
> org.codehaus.groovy.vmplugin.v7.Java7
> at 
> org.codehaus.groovy.vmplugin.VMPluginFactory.(VMPluginFactory.java:43)
> at 
> org.codehaus.groovy.reflection.GroovyClassValueFactory.(GroovyClassValueFactory.java:35)
> ```



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org



[jira] [Commented] (LUCENE-9382) Lucene's gradle version can't cope with Java 14

2020-06-02 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/LUCENE-9382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17123680#comment-17123680
 ] 

ASF subversion and git services commented on LUCENE-9382:
-

Commit 3e8e5d8cf6477a60cd8019a41c657bcf313a174c in lucene-solr's branch 
refs/heads/master from Dawid Weiss
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=3e8e5d8 ]

LUCENE-9382: update gradle to 6.4.1. (#1549)

* LUCENE-9382: update gradle to 6.4.1. Requires minor changes around log call 
validation by restructuring the code around switches to a series of ifs. 
Piggybacking: apply log validation to :solr modules. Add inputs declaration so 
that task is not re-run on unmodified files.

> Lucene's gradle version can't cope with Java 14
> ---
>
> Key: LUCENE-9382
> URL: https://issues.apache.org/jira/browse/LUCENE-9382
> Project: Lucene - Core
>  Issue Type: Sub-task
>Reporter: Alan Woodward
>Assignee: Dawid Weiss
>Priority: Major
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> If you have JDK 14 installed as your default java, then attempting to use 
> gradle within the lucene-solr project can result in errors, particularly if 
> you have other projects that use more recent gradle versions on the same 
> machine.
> ```
> java.lang.NoClassDefFoundError: Could not initialize class 
> org.codehaus.groovy.vmplugin.v7.Java7
> at 
> org.codehaus.groovy.vmplugin.VMPluginFactory.(VMPluginFactory.java:43)
> at 
> org.codehaus.groovy.reflection.GroovyClassValueFactory.(GroovyClassValueFactory.java:35)
> ```



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org



[jira] [Commented] (LUCENE-9382) Lucene's gradle version can't cope with Java 14

2020-06-02 Thread Dawid Weiss (Jira)


[ 
https://issues.apache.org/jira/browse/LUCENE-9382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17123653#comment-17123653
 ] 

Dawid Weiss commented on LUCENE-9382:
-

{quote}bq. Am I correct that this change makes the script work and there's 
nothing for me to do except say thanks?
{quote}
Yes - I just reorganized the structure a bit and it passes. Seems like a groovy 
problem rather than gradle's. I'll limit this to solr-modules only and commit.

> Lucene's gradle version can't cope with Java 14
> ---
>
> Key: LUCENE-9382
> URL: https://issues.apache.org/jira/browse/LUCENE-9382
> Project: Lucene - Core
>  Issue Type: Sub-task
>Reporter: Alan Woodward
>Assignee: Dawid Weiss
>Priority: Major
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> If you have JDK 14 installed as your default java, then attempting to use 
> gradle within the lucene-solr project can result in errors, particularly if 
> you have other projects that use more recent gradle versions on the same 
> machine.
> ```
> java.lang.NoClassDefFoundError: Could not initialize class 
> org.codehaus.groovy.vmplugin.v7.Java7
> at 
> org.codehaus.groovy.vmplugin.VMPluginFactory.(VMPluginFactory.java:43)
> at 
> org.codehaus.groovy.reflection.GroovyClassValueFactory.(GroovyClassValueFactory.java:35)
> ```



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org



[jira] [Commented] (LUCENE-9382) Lucene's gradle version can't cope with Java 14

2020-06-01 Thread David Smiley (Jira)


[ 
https://issues.apache.org/jira/browse/LUCENE-9382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17121364#comment-17121364
 ] 

David Smiley commented on LUCENE-9382:
--

My preference is not to burden Lucene source checking with checking it doesn't 
need, thus no log checks IMO.

> Lucene's gradle version can't cope with Java 14
> ---
>
> Key: LUCENE-9382
> URL: https://issues.apache.org/jira/browse/LUCENE-9382
> Project: Lucene - Core
>  Issue Type: Sub-task
>Reporter: Alan Woodward
>Assignee: Dawid Weiss
>Priority: Major
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> If you have JDK 14 installed as your default java, then attempting to use 
> gradle within the lucene-solr project can result in errors, particularly if 
> you have other projects that use more recent gradle versions on the same 
> machine.
> ```
> java.lang.NoClassDefFoundError: Could not initialize class 
> org.codehaus.groovy.vmplugin.v7.Java7
> at 
> org.codehaus.groovy.vmplugin.VMPluginFactory.(VMPluginFactory.java:43)
> at 
> org.codehaus.groovy.reflection.GroovyClassValueFactory.(GroovyClassValueFactory.java:35)
> ```



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org



[jira] [Commented] (LUCENE-9382) Lucene's gradle version can't cope with Java 14

2020-06-01 Thread Erick Erickson (Jira)


[ 
https://issues.apache.org/jira/browse/LUCENE-9382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17121063#comment-17121063
 ] 

Erick Erickson commented on LUCENE-9382:


[~dweiss]  Your changes look good to me. I haven't a clue why switches would 
barf. Am I correct that this change makes the script work and there's nothing 
for me to do except say thanks?

There are ~40 un-commented logging calls in Lucene, all in lucene/luke, as well 
as some commented-out logging calls elsewhere. I dithered over whether to 
include Lucene or not. On the one hand the logging calls in the Luke module are 
entirely irrelevant to the intent of looking at inefficiencies in the use of 
logging messages, Luke doesn't count in that respect. OTOH, it adds maybe 2-3 
seconds to the check.

I'd have no objection to restricting the check to Solr. David Smiley also had 
the same question FWIW.

What probably makes the most sense for Lucene is to either  would be a 
different check, one that just failed on _any_ logging call except in Luke. Or 
just not checking at all given the dearth of real calls.

> Lucene's gradle version can't cope with Java 14
> ---
>
> Key: LUCENE-9382
> URL: https://issues.apache.org/jira/browse/LUCENE-9382
> Project: Lucene - Core
>  Issue Type: Sub-task
>Reporter: Alan Woodward
>Assignee: Dawid Weiss
>Priority: Major
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> If you have JDK 14 installed as your default java, then attempting to use 
> gradle within the lucene-solr project can result in errors, particularly if 
> you have other projects that use more recent gradle versions on the same 
> machine.
> ```
> java.lang.NoClassDefFoundError: Could not initialize class 
> org.codehaus.groovy.vmplugin.v7.Java7
> at 
> org.codehaus.groovy.vmplugin.VMPluginFactory.(VMPluginFactory.java:43)
> at 
> org.codehaus.groovy.reflection.GroovyClassValueFactory.(GroovyClassValueFactory.java:35)
> ```



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org



[jira] [Commented] (LUCENE-9382) Lucene's gradle version can't cope with Java 14

2020-06-01 Thread Dawid Weiss (Jira)


[ 
https://issues.apache.org/jira/browse/LUCENE-9382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17121007#comment-17121007
 ] 

Dawid Weiss commented on LUCENE-9382:
-

I corrected the script a bit - switches somehow didn't digest well.

I also wonder if this log verification needs to be applied to all projects or 
just limited to Solr (we don't do any logging in Lucene, do we?).

> Lucene's gradle version can't cope with Java 14
> ---
>
> Key: LUCENE-9382
> URL: https://issues.apache.org/jira/browse/LUCENE-9382
> Project: Lucene - Core
>  Issue Type: Sub-task
>Reporter: Alan Woodward
>Assignee: Dawid Weiss
>Priority: Major
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> If you have JDK 14 installed as your default java, then attempting to use 
> gradle within the lucene-solr project can result in errors, particularly if 
> you have other projects that use more recent gradle versions on the same 
> machine.
> ```
> java.lang.NoClassDefFoundError: Could not initialize class 
> org.codehaus.groovy.vmplugin.v7.Java7
> at 
> org.codehaus.groovy.vmplugin.VMPluginFactory.(VMPluginFactory.java:43)
> at 
> org.codehaus.groovy.reflection.GroovyClassValueFactory.(GroovyClassValueFactory.java:35)
> ```



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org



[jira] [Commented] (LUCENE-9382) Lucene's gradle version can't cope with Java 14

2020-06-01 Thread Dawid Weiss (Jira)


[ 
https://issues.apache.org/jira/browse/LUCENE-9382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17120995#comment-17120995
 ] 

Dawid Weiss commented on LUCENE-9382:
-

This github PR brings Java 14 support. I had to disable Erick's log checker 
script because it breaks compilation AST somehow (internal to gradle). Erick - 
would you be able to take a look at this?

[https://github.com/apache/lucene-solr/pull/1549]

> Lucene's gradle version can't cope with Java 14
> ---
>
> Key: LUCENE-9382
> URL: https://issues.apache.org/jira/browse/LUCENE-9382
> Project: Lucene - Core
>  Issue Type: Sub-task
>Reporter: Alan Woodward
>Assignee: Dawid Weiss
>Priority: Major
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> If you have JDK 14 installed as your default java, then attempting to use 
> gradle within the lucene-solr project can result in errors, particularly if 
> you have other projects that use more recent gradle versions on the same 
> machine.
> ```
> java.lang.NoClassDefFoundError: Could not initialize class 
> org.codehaus.groovy.vmplugin.v7.Java7
> at 
> org.codehaus.groovy.vmplugin.VMPluginFactory.(VMPluginFactory.java:43)
> at 
> org.codehaus.groovy.reflection.GroovyClassValueFactory.(GroovyClassValueFactory.java:35)
> ```



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org



[jira] [Commented] (LUCENE-9382) Lucene's gradle version can't cope with Java 14

2020-05-26 Thread Dawid Weiss (Jira)


[ 
https://issues.apache.org/jira/browse/LUCENE-9382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17117022#comment-17117022
 ] 

Dawid Weiss commented on LUCENE-9382:
-

Upgrading to newer gradle isn't always trivial (in fact, it almost never 
is...). 

> Lucene's gradle version can't cope with Java 14
> ---
>
> Key: LUCENE-9382
> URL: https://issues.apache.org/jira/browse/LUCENE-9382
> Project: Lucene - Core
>  Issue Type: Improvement
>Reporter: Alan Woodward
>Priority: Major
>
> If you have JDK 14 installed as your default java, then attempting to use 
> gradle within the lucene-solr project can result in errors, particularly if 
> you have other projects that use more recent gradle versions on the same 
> machine.
> ```
> java.lang.NoClassDefFoundError: Could not initialize class 
> org.codehaus.groovy.vmplugin.v7.Java7
> at 
> org.codehaus.groovy.vmplugin.VMPluginFactory.(VMPluginFactory.java:43)
> at 
> org.codehaus.groovy.reflection.GroovyClassValueFactory.(GroovyClassValueFactory.java:35)
> ```



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org



[jira] [Commented] (LUCENE-9382) Lucene's gradle version can't cope with Java 14

2020-05-26 Thread Erick Erickson (Jira)


[ 
https://issues.apache.org/jira/browse/LUCENE-9382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17116683#comment-17116683
 ] 

Erick Erickson commented on LUCENE-9382:


Looks like https://github.com/gradle/gradle/issues/10248?

Should be fixed if we upgrade Gradle to 6.3 or later: 
https://docs.gradle.org/6.3/release-notes.html#support-for-java-14

> Lucene's gradle version can't cope with Java 14
> ---
>
> Key: LUCENE-9382
> URL: https://issues.apache.org/jira/browse/LUCENE-9382
> Project: Lucene - Core
>  Issue Type: Improvement
>Reporter: Alan Woodward
>Priority: Major
>
> If you have JDK 14 installed as your default java, then attempting to use 
> gradle within the lucene-solr project can result in errors, particularly if 
> you have other projects that use more recent gradle versions on the same 
> machine.
> ```
> java.lang.NoClassDefFoundError: Could not initialize class 
> org.codehaus.groovy.vmplugin.v7.Java7
> at 
> org.codehaus.groovy.vmplugin.VMPluginFactory.(VMPluginFactory.java:43)
> at 
> org.codehaus.groovy.reflection.GroovyClassValueFactory.(GroovyClassValueFactory.java:35)
> ```



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org