-
Notifications
You must be signed in to change notification settings - Fork 18
Closed
Labels
Milestone
Description
Hello,
Expected Behavior
When applying the 'eclipse' plugin in a project using Clojurephant, After running ./gradlew eclipse
I would like to be able to import the generated project into eclipse.
Current Behavior
I get build errors in Eclipse after importing the project.
Build path contains duplicate entry: 'src/test/resources' for project 'cljgradle'
Project 'cljgradle' is missing required library: '/home/mthl/src/cljgradle/build/clojure/test'
Project 'cljgradle' is missing required library: '/home/mthl/src/cljgradle/src/main/clojure'
Project 'cljgradle' is missing required source folder: 'src/main/clojure'
Project 'cljgradle' is missing required source folder: 'src/main/clojure'
The project cannot be built until build path errors are resolved
The first error concerning the presence of duplicates entries is the most critical since it blocks every project combining Clojurephan with the eclipse plugin. The others errors are not as important since they are just about handling the absence of files for empty projects.
Context
I rely on the eclipse
plugin to be able to edit Java on projects which are using complex source directories set up.
Steps to reproduce
add the following in a build.gradle
corresponding to a basic java application
plugins {
// Apply the java plugin to add support for Java
id 'java'
id 'dev.clojurephant.clojure' version '0.5.0-alpha.5'
// Apply the application plugin to add support for building an application
id 'application'
id 'eclipse'
}
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
Environment
- clojurephant version: 0.5.0-alpha.5
- Gradle version: 5.4.1
- Java version: 11
- OS version: Linux 5.1.3 amd64
Thanks