-
Notifications
You must be signed in to change notification settings - Fork 224
Build
Brida can be built with Gradle or with Maven.
Building with Gradle is easier and quicker. Gradle is integrated in most Java IDEs. Brida depends on a customized version of RSyntaxTextArea, available in this fork. The compiled version of RSyntaxTextArea has been included in Brida source tree, in the "libs" folder.
TO build simply run the task "jar", that will create the final Brida package (usually in folder "/build/libs"). You can run Gradle from IDE or from the command line as follows:
gradlew jarBuilding Brida with Maven is simple but it is necessary to manually install the RSyntaxTextArea local dependency before being able to build Brida correctly. In order to be able to build Brida you have to install the compiled version of RSyntaxTextArea library supplied in "libs" folder (or you can build it if you prefer) and then install it locally with Maven.
- Go to Brida main folder, that contains Maven pom.xml file
- Install the local dependency in Maven:
- mvn install:install-file –Dpackaging="jar" -Dfile="libs/rsyntaxtextarea-2.6.1.edited.jar" -DgroupId="com.fifesoft" -DartifactId="rsyntaxtextarea" -Dversion="2.6.1.edited"
- Build Brida:
- mvn package -Dmaven.test.skip=true
- Add Brida project to Eclipse
- Install the local RSyntaxTextArea dependency in Maven using Eclipse:
- Right click on Brida project -> Run As -> Run configurations
- Right click on the left on "Maven Build" -> New configuration
- Type "BridaInstallDependency" in Name field
- To fill Base directory click on the Workspace button and select Brida project
- Write "install:install-file" in Goals field
- Add the following 5 parameters using the Add button
- Name: file / Value: FULL_PATH_TO_BRIDA_SOURCES/libs/rsyntaxtextarea-2.6.1.edited.jar
- Name: groupId / Value: com.fifesoft
- Name: artifactId / Value: rsyntaxtextarea
- Name: version / Value: 2.6.1.edited
- Name: packaging / Value: jar
- Check Skip Tests option
- Run
- Build Brida (first time)
- Right click on Brida project -> Run As -> Run configurations
- Right click on the left on "Maven Build" -> New configuration
- Type "Brida" in Name field
- To fill Base directory click on the Workspace button and select Brida project
- Write "package" in Goals field
- Check Skip Tests option
- Run
- Build Brida (from the second time on)
- Right click on Brida project -> Run As -> Maven build