You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ma...@apache.org on 2019/05/12 01:47:17 UTC
[lucene-solr] branch jira/SOLR-13452_gradle updated: SOLR-13452:
Resolve issue where Eclipse would start complaining that java.naming.*
could not be found.
This is an automated email from the ASF dual-hosted git repository.
markrmiller pushed a commit to branch jira/SOLR-13452_gradle
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/jira/SOLR-13452_gradle by this push:
new d40f415 SOLR-13452: Resolve issue where Eclipse would start complaining that java.naming.* could not be found.
d40f415 is described below
commit d40f4159a849f1a700236e4c9d0d14a1a25018d2
Author: markrmiller <ma...@apache.org>
AuthorDate: Sat May 11 20:47:05 2019 -0500
SOLR-13452: Resolve issue where Eclipse would start complaining that java.naming.* could not be found.
---
build.gradle | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/build.gradle b/build.gradle
index 6dbd6dc..34ae3f1 100644
--- a/build.gradle
+++ b/build.gradle
@@ -195,16 +195,16 @@ configure(subprojects - project(":buildSrc")) { pj ->
}
}
+ // add JRE_CONTAINER
+ classpath.entries.removeAll { entry -> entry.kind == 'con' && entry.toString().startsWith('org.eclipse.jdt.launching.JRE_CONTAINER') }
+ classpath.entries.add(new org.gradle.plugins.ide.eclipse.model.Container('org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11'))
+
classpath.entries.each { entry ->
- if ( entry.kind == 'lib') {
+ if ( entry.kind == 'lib' || entry.kind == 'con') {
entry.exported = true
}
}
- // add JRE_CONTAINER
- classpath.entries.removeAll { entry -> entry.kind == 'con' }
- classpath.entries.add(new org.gradle.plugins.ide.eclipse.model.Container('org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11'))
-
// Jetty mod files make eclipse sad
new File("${projectDir}/.settings/org.eclipse.wst.validation.prefs").text = """
eclipse.preferences.version=1