Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eclipse.classpath.file.whenMerged requires the java plugin #1256

Open
Yay295 opened this issue Aug 16, 2023 · 0 comments
Open

eclipse.classpath.file.whenMerged requires the java plugin #1256

Yay295 opened this issue Aug 16, 2023 · 0 comments

Comments

@Yay295
Copy link

Yay295 commented Aug 16, 2023

I needed to modify Eclipse's classpath, so I was trying to use

apply plugin: 'eclipse'
eclipse.classpath.file.whenMerged {
    println 'is not printed'
    ...
}

but nothing was happening. After trying a lot of different things I happened to move that code after a apply plugin: 'java' statement I had in my script, and it started working.

apply plugin: 'java'
apply plugin: 'eclipse'
eclipse.classpath.file.whenMerged {
    println 'is printed'
    ...
}

Is it intentional that this only works with the Java plugin applied, and is there anywhere that Buildship's special handling of eclipse.classpath.file is documented?

Related:
https://discuss.gradle.org/t/how-does-buildship-create-the-classpath-file-for-eclipse/26252
#923
possibly #1133

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant