Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Clojurephant does not work well with the eclipse plugin. #127

@mthl

Description

@mthl

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions