This topic provides an overview of LabKey's Gradle-based build system.
In the steps below, we use LABKEY_ROOT to refer to the directory into which you checked out your SVN enlistment (i.e., the parent of the server directory).
1. Execute a gradle command to show you the set of currently configured projects (modules). You do not need to install gradle and should resist the urge to do so. We use the gradle wrapper to make updating version numbers easier. The gradle wrapper script (either gradlew or gradlew.bat) is included in the SVN sync and is already in the <LABKEY_ROOT> directory.
On the command line, type ./gradlew projects (Mac/Linux) or gradlew projects (Windows)
2. Execute a gradle command to build and deploy the application
This will take some time as it needs to pull down many resources to initialize the local caches. Subsequent builds will be much faster.
Gradle uses the <LABKEY_ROOT>/settings.gradle file to determine which projects (modules) are included in the build. To include a different set of projects in your build, you will need to edit this file. By default, only modules in the server/modules directory and the server/test and server/test/modules directories are included in the build. See the file for examples of different ways to include different subsets of the modules.
For a list of commonly used Gradle commands, see Build LabKey From Source.
See Gradle Tips and Tricks.
See the topic Gradle Cleaning.
Follow these steps in order to make IntelliJ able to find all the source code and elements on the classpath as well as be able to run tests.
See the trouble shooting section in Set Up a Dev Machine.
|expand all collapse all|