Skip to content

Commit

Permalink
Workaround for buildSrc:jar issue (#8792)
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor authored May 13, 2022
1 parent b938f18 commit 065b05f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
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>.

0 comments on commit 065b05f

Please sign in to comment.