diff --git a/.gitmodules b/.gitmodules index b37b24cf6d9..28a38913ff8 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,3 @@ -[submodule "src/main/resources/csl-styles"] - path = src/main/resources/csl-styles - url = https://github.com/citation-style-language/styles.git [submodule "src/main/resources/csl-locales"] path = src/main/resources/csl-locales url = https://github.com/citation-style-language/locales.git diff --git a/eclipse.gradle b/eclipse.gradle index 6fa381b3fe7..8f3aaa17d00 100644 --- a/eclipse.gradle +++ b/eclipse.gradle @@ -11,17 +11,39 @@ eclipseJdt.doLast { f.append('encoding/=UTF-8') } eclipse { -//add libraries to module path: https://github.com/eclipse/buildship/issues/620#issuecomment-390469550 - classpath { + project { + natures 'org.eclipse.buildship.core.gradleprojectnature' + } + + classpath { file { whenMerged { - entries.findAll { - it.kind == 'src' || it.kind == 'lib' - }.each { it.entryAttributes['module'] = 'true' } + entries.findAll { isModule(it) }.each { //(1) + it.entryAttributes['module'] = 'true' + } + + entries.findAll { isSource(it) && isTestScope(it) }.each { + it.entryAttributes['test'] = 'true' + } + + entries.findAll { isLibrary(it) && isTestScope(it) }.each { + it.entryAttributes['test'] = 'true' + } } } + + defaultOutputDir = file('build') + downloadSources = true + downloadJavadoc = true } } + +boolean isLibrary(entry) { return entry.properties.kind.equals('lib') } +boolean isTestScope(entry) { return entry.entryAttributes.get('gradle_used_by_scope').equals('test'); } +boolean isModule(entry) { isLibrary(entry) && !isTestScope(entry); } +boolean isSource(entry) { return entry.properties.kind.equals('src'); } + + // add formatter and cleanup settings to Eclipse settings // see http://stackoverflow.com/a/27461890/873282 diff --git a/src/main/java/org/jabref/JabRefMain.java b/src/main/java/org/jabref/JabRefMain.java index 72051540247..93a16422b46 100644 --- a/src/main/java/org/jabref/JabRefMain.java +++ b/src/main/java/org/jabref/JabRefMain.java @@ -48,7 +48,7 @@ public static void main(String[] args) { public void start(Stage mainStage) throws Exception { try { // Fail on unsupported Java versions - ensureCorrectJavaVersion(); + // ensureCorrectJavaVersion(); FallbackExceptionHandler.installExceptionHandler(); // Init preferences diff --git a/src/main/resources/csl-locales b/src/main/resources/csl-locales index e89e6b08b5c..29ed2ff4328 160000 --- a/src/main/resources/csl-locales +++ b/src/main/resources/csl-locales @@ -1 +1 @@ -Subproject commit e89e6b08b5c621a414fc7114f2129efac5f8c7d5 +Subproject commit 29ed2ff43284f726f9f583981650a86ffb9b236f diff --git a/src/main/resources/csl-styles b/src/main/resources/csl-styles deleted file mode 160000 index fa125ec03c6..00000000000 --- a/src/main/resources/csl-styles +++ /dev/null @@ -1 +0,0 @@ -Subproject commit fa125ec03c6270dea5881ec1623f1b741da6e759