- Run
./gradlew clean && ./gradlew && ./gradlew run
-
./gradlewWill run with default tasksbuildJarsandbuildBundleJars -
./gradlew cleanwill cleanup the build (can be run for subproject) -
./gradlew runwill run the build inside Gradle (use theneptusandneptus.baton the root folder to run on the shell) -
./gradlew buildJarswill build main jar and plugin jars (and tasks of type jar) -
./gradlew classeswill compile the classes -
./gradlew jarwill create the jars
./gradlew <dist-name>DistZipand./gradlew <dist-name>DistTarwhere<dist-name>is the distribution name (it will not have the JRE)full- for full versionseacon- for seacon versionle- for light edition
./gradlew installer<Dist-name>LinuxDistwith<Dist-name>the same as above but capitalized, creates a sh installer for Linux../gradlew installer<Dist-name>WindowsDistwith<Dist-name>the same as above but capitalized, creates an exe installer for Windows.- NOTE: In Linux will fail but after running the Gradle task search on the output
for a note to run manually (but always run the Gradle task first because it will
prepare the folders for NSIS to run into). The note reads
!!INFO!! If error on Linux run >>. (This needswineandwine-binfmtinstalled.)
- NOTE: In Linux will fail but after running the Gradle task search on the output
for a note to run manually (but always run the Gradle task first because it will
prepare the folders for NSIS to run into). The note reads
./gradlew buildBundleJarstask to generate the bundle Jars./gradlew generateI18Ntask to generate I18N files (needs gettext installed)
Just import the Gradle project to Idea. To run or debug be sure to use the classpath from
neptus.main. At the moment you need to not delegate the Gradle tasks run to Gradle but
to IntelliJ.
./gradlew cleanIdeaBuildto delete the project and build folders
To debug run the Gradle task run in debug mode.
To use in Eclipse don't create the project but import the Gradle project into Eclipse.
./gradlew eclipseto create the project (can be used, but configure the debug runs still WIP)./gradlew cleanEclipseBuildto delete the project build folders./gradlew cleanEclipseto delete the project
This is sometimes not stable. If problems with building do:
- If problem with duplicated resource on neptus project do:
**
./gradlew cleanEclipseBuild createEclipseBuild
The plugins are expected to reside on folders with names plugins-dev<*>. On the 'plugins-dev'
are the plugins offer by Neptus. The extra plugins-dev* folders if exist are read and
instrumented for Gradle (should be on separated Git repositories).
Each plugins is instrumented by Gradle in its jar task for its output to be placed on the
plugins folder. The Jar will be a fat jar with all libs in it. The folder structure is
expected to be the following:
src/java(Java src files)src/resources(resource files, optional)lib(for libs that are not able to be added through Maven, they will be added to dependencies automatically, optional)build.gradle(to add dependencies, optional)
One very important rule is that a plugin is self-contained, only dependent on the main src and jars and not on any other plugin.