id 'com.diffplug.gradle.oomph.ide' version '3.18.1'
id 'com.diffplug.gradle.equinoxlaunch' version '3.18.1'
- id 'com.diffplug.gradle.spotless' version '3.24.2'
-
//id 'com.diffplug.gradle.p2.asmaven' version '3.18.1'
//id 'org.eclipse.osgi' version '3.15.0'
*/
-spotless {
- java {
- eclipse(spotless_eclipse_version).configFile eclipse_extra_jdt_prefs_file
- }
-}
-
repositories {
jcenter()
}
cp.entries.removeAll(removeTheseToo)
- cp.entries += new Output(eclipse_bin_dir+"/main")
- cp.entries += new Library(fileReference(helpParentDir))
- cp.entries += new Library(fileReference(resourceDir))
+ if (file(eclipse_bin_dir+"/main").isDirectory()) {
+ cp.entries += new Output(eclipse_bin_dir+"/main")
+ }
+ if (file(helpParentDir).isDirectory()) {
+ cp.entries += new Library(fileReference(helpParentDir))
+ }
+ if (file(resourceDir).isDirectory()) {
+ cp.entries += new Library(fileReference(resourceDir))
+ }
HashMap<String, Boolean> addedLibPath = new HashMap<>();
}
+ide.dependsOn eclipseProject
+ide.dependsOn eclipseClasspath
+ide.dependsOn eclipseJdt
ide.dependsOn ideCopyDropins
ideJalviewjsBuild.dependsOn ideSetupWorkspace
ideJalviewjsBuild.dependsOn ideCopyDropins
}
}
*/
+
+project.afterEvaluate {
+ tasks.findByName('ideJalviewjsBuild').dependsOn eclipseProject
+ tasks.findByName('ideJalviewjsBuild').dependsOn eclipseClasspath
+ tasks.findByName('ideJalviewjsBuild').dependsOn eclipseJdt
+}
+
+
+