-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Contributors set-up advices (which IDE to use, how to configure it ?) #2147
-
Hi,
I try to edit some Bouncy Castle code (java).
For now I just want to experiment a little bit some idea but maybe that will lead to some code contribution.
To code the project for which I need bc-java, I use Eclipse (and more generally I use Eclipse for java coding).
So my first try was to try to import bc-java in eclipse.
(Each try, I start with fresh git clone : git clone git@github.com:bcgit/bc-java.git)
First try : Use Eclipse Gradle support (Buildship plugin)
Then I install Buildship in eclipse.
Then build with gradle
gradlew clean build # ==> test failed because of java.io.FileNotFoundException, so I did gradlew clean assemble -x test
The I try to import that in eclipse with Import Existing Gradle project but project doesn't compile. (mainly about symbol which can not be resolved, e.g : Arrays cannot be resolved to a type)
Second Try : Generate Eclipse project files via Gradle
This seems to be a deprecated way but I try it anyway :
gradlew eclipse
.project, .classpath and other eclipse files are generated but when I tried to import it in eclipse I get again compilation errors. (same kind of compilation issue)
Third Try : Code in Eclipse with compilation problem (or a text editor) then publish to maven locally
This is clearly a not so convenient solution but the only one I succeed to make it works for now.
To publish to maven
gradle -Pjava8 publishToMavenLocal -x test
Then add the SNAPSHOT dependencies to your project.
Strangely I need to add bcprov-jdk18on and bctls-jdk18on dependency where with maven central release I only need bctls-jdk18on
So even with that not to convenient method, there is maybe something which smell not so good.
Any recommendation ?
Beta Was this translation helpful? Give feedback.