Yes, I have the same issues with vendoring. These are the things that I
have tried without success to get Intellij to import the vendored modules
* attempted to modify the idea.module.scopes to only include the vendored
artifacts (for some reason this is ignored and Intellij is relying on the
output of its own internal module, nothing I add to the scopes seems to
* modify the generated iml beforehand to add the vendored jar file as the
top dependency (jar never appears in the modules dependencies)
On Mon, Aug 20, 2018 at 8:36 AM Maximilian Michels <mxm@xxxxxxxxxx
Thank you Etienne for opening the issue.
Anyone else having problems with the shaded Protobuf dependency?
On 20.08.18 16:14, Etienne Chauchot wrote:
> Hi Max,
> I experienced the same, I had first opened a general ticket
> (https://issues.apache.org/jira/browse/BEAM-4418) about gradle
> improvements and I just split it in several tickets. Here is the
> concerning the same issue:
> Le lundi 20 août 2018 à 15:51 +0200, Maximilian Michels a écrit :
>> Hi Beamers,
>> It's great to see the Beam build system overhauled. Thank you
>> the hard work.
>> That said, I've just started contributing to Beam again and I feel
>> really stupid for not having a fully-functional IDE. I've closely
>> followed the IntelliJ/Gradle instructions . In the terminal
>> everything works fine.
>> First of all, I get warnings like the following and the build
>> warning: [deprecation] NonNull in
>> been deprecated
>> error: warnings found and -Werror specified
>> 1 error
>> 89 warnings
>> Somehow the "-Xlint:-deprecation" compiler flag does not get
>> "-Werror" does. I can get it to compile by removing the
>> from BeamModulePlugin but that's obviously not the solution.
>> Further, once the build succeeds I still have to add the relocated
>> Protobuf library manually because the one in "vendor" does not get
>> picked up. I've tried clearing caches / re-adding the project /
>> upgrading IntelliJ / changing Gradle configs.
>> Is this just me or do you also have similar problems? If so, I
>> like to compile a list of possible fixes to help other
>> Tested with
>> - IntelliJ 2018.1.6 and 2018.2.1.
>> - MacOS
>> - java version "1.8.0_112"
>>  https://beam.apache.org/contribute/intellij/