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

Workaround for buildSrc:jar issue #8792

Merged
merged 1 commit into from
May 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions buildSrc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,10 @@ sourceSets{
}
}
}

/**
* This is a workaround for Entry org/jabref/build/JournalAbbreviationConverter$_convert_closure1$_closure2.class is a duplicate but no duplicate handling strategy has been set.
*
* Source: https://github.com/gradle/gradle/issues/17236#issuecomment-923074298
*/
tasks.getByName("jar").setProperty("duplicatesStrategy", DuplicatesStrategy.EXCLUDE);
Original file line number Diff line number Diff line change
Expand Up @@ -351,10 +351,11 @@ If that does not help:
4. Execute `./gradlew run`
5. Start IntelliJ and try again.

### Issue with org/jabref/build/JournalAbbreviationConverter$\_convert\_closure1$\_closure2.class is a duplicate but no duplicate handling strategy has been set
### Issue with `_closure2.class is a duplicate but no duplicate handling strategy has been set`

After changing the contents of `build.gradle`, on might get following error:

`Entry org/jabref/build/JournalAbbreviationConverter$_convert_closure1$_closure2.class is a duplicate but no duplicate handling strategy has been set.`
Entry org/jabref/build/JournalAbbreviationConverter$_convert_closure1$_closure2.class is a duplicate but no duplicate handling strategy has been set.

Currently, no "real" solution is known. One has to start from scratch (`git clean -xdf`, ...).
Please update to the latest development code.
We applied the workaround from <https://github.com/gradle/gradle/issues/17236#issuecomment-923074298>.