lucene-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Varun Thacker (Jira)" <j...@apache.org>
Subject [jira] [Comment Edited] (SOLR-13452) Update the lucene-solr build from Ivy+Ant+Maven (shadow build) to Gradle.
Date Mon, 04 Nov 2019 22:44:00 GMT

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

Varun Thacker edited comment on SOLR-13452 at 11/4/19 10:43 PM:
----------------------------------------------------------------

What do others get when they try running {{gradlew test}}?

 

I am running into this

 
{noformat}
 ~/apache-work/lucene-solr (jira/SOLR-13452_gradle_8) $ gradlew test
....
Task :lucene:lucene-backward-codecs:test FAILED
java.security.AccessControlException: access denied ("java.util.logging.LoggingPermission"
"control")
        at java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
        at java.base/java.security.AccessController.checkPermission(AccessController.java:897)
        at java.base/java.lang.SecurityManager.checkPermission(SecurityManager.java:322)
        at java.logging/java.util.logging.LogManager.checkPermission(LogManager.java:2432)
        at java.logging/java.util.logging.LogManager.reset(LogManager.java:1415)
        at org.gradle.internal.logging.source.JavaUtilLoggingSystem.install(JavaUtilLoggingSystem.java:113)
        at org.gradle.internal.logging.source.JavaUtilLoggingSystem.startCapture(JavaUtilLoggingSystem.java:78)
        at org.gradle.internal.logging.services.DefaultLoggingManager$StartableLoggingSystem.start(DefaultLoggingManager.java:330)
        at org.gradle.internal.logging.services.DefaultLoggingManager.start(DefaultLoggingManager.java:81)
        at org.gradle.internal.logging.services.DefaultLoggingManager.start(DefaultLoggingManager.java:38)
        at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:127)
        at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:70)
        at worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:68)
        at worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:73)
java.security.AccessControlException: access denied ("java.util.logging.LoggingPermission"
"control")
{noformat}
Uncommenting this line from tests.policy and solr-tests.policy didn't help

 
{noformat}
permission java.util.logging.LoggingPermission "control";{noformat}
 

And just got kicks I removed this line from the build.gradle file and the tests started running
{noformat}
ext.testsPolicy = "${rootDir}/lucene/tools/junit4/tests.policy"{noformat}
I'm going to look into it but curious if others ran into similar issues?

 

 


was (Author: varunthacker):
What do others get when they try running {{gradle test}}?

 

I am running into this

 
{noformat}
 ~/apache-work/lucene-solr (jira/SOLR-13452_gradle_8) $ gradle test
....
Task :lucene:lucene-backward-codecs:test FAILED
java.security.AccessControlException: access denied ("java.util.logging.LoggingPermission"
"control")
        at java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
        at java.base/java.security.AccessController.checkPermission(AccessController.java:897)
        at java.base/java.lang.SecurityManager.checkPermission(SecurityManager.java:322)
        at java.logging/java.util.logging.LogManager.checkPermission(LogManager.java:2432)
        at java.logging/java.util.logging.LogManager.reset(LogManager.java:1415)
        at org.gradle.internal.logging.source.JavaUtilLoggingSystem.install(JavaUtilLoggingSystem.java:113)
        at org.gradle.internal.logging.source.JavaUtilLoggingSystem.startCapture(JavaUtilLoggingSystem.java:78)
        at org.gradle.internal.logging.services.DefaultLoggingManager$StartableLoggingSystem.start(DefaultLoggingManager.java:330)
        at org.gradle.internal.logging.services.DefaultLoggingManager.start(DefaultLoggingManager.java:81)
        at org.gradle.internal.logging.services.DefaultLoggingManager.start(DefaultLoggingManager.java:38)
        at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:127)
        at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:70)
        at worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:68)
        at worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:73)
java.security.AccessControlException: access denied ("java.util.logging.LoggingPermission"
"control")
{noformat}
Uncommenting this line from tests.policy and solr-tests.policy didn't help

 
{noformat}
permission java.util.logging.LoggingPermission "control";{noformat}
 

And just got kicks I removed this line from the build.gradle file and the tests started running
{noformat}
ext.testsPolicy = "${rootDir}/lucene/tools/junit4/tests.policy"{noformat}
I'm going to look into it but curious if others ran into similar issues?

 

 

> Update the lucene-solr build from Ivy+Ant+Maven (shadow build) to Gradle.
> -------------------------------------------------------------------------
>
>                 Key: SOLR-13452
>                 URL: https://issues.apache.org/jira/browse/SOLR-13452
>             Project: Solr
>          Issue Type: Improvement
>          Components: Build
>            Reporter: Mark Miller
>            Assignee: Mark Miller
>            Priority: Major
>             Fix For: master (9.0)
>
>         Attachments: gradle-build.pdf
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> I took some things from the great work that Dat did in [https://github.com/apache/lucene-solr/tree/jira/gradle]
and took the ball a little further.
>  
> When working with gradle in sub modules directly, I recommend [https://github.com/dougborg/gdub]
> This gradle branch uses the following plugin for version locking, version configuration
and version consistency across modules: [https://github.com/palantir/gradle-consistent-versions]
>  
> https://github.com/apache/lucene-solr/tree/jira/SOLR-13452_gradle_8



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

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


Mime
View raw message