Skip to main content

Gradle Tasks and Properties

This page lists the Gradle tasks and properties of maintenance work. All tasks belong to the group feature model, so ./gradlew tasks --group "feature model" lists them with a short description.

Tasks​

TaskWhat it doesNeeds
featureModelManifestPreflightValidates the manifest and prints the source revision and the manifest digestartemisPath
extractFeatureCandidatesScan stage: reads the Artemis checkoutartemisPath
assembleFeatureModelModel stage: applies the manifest, builds the model and the config-key catalogartemisPath
prepareGuidedWorkflowWorkflow stage: checks the guided workflow against the modelartemisPath
packageFeatureModelSnapshotPackage stage: writes the report and the snapshotartemisPath
buildFeatureModelSnapshotRuns the four stages in orderartemisPath
validateFeatureModelSnapshotValidates a snapshot without changing it and prints its identitysnapshotPath
stageFeatureModelDockerContextCopies a validated snapshot into build/docker/feature-model-snapshot/ for the image buildsnapshotPath
refreshFeatureModelFixtureCopies a snapshot's model and catalog into the classpath fixturesnapshotPath
syncGuidedWorkflowScaffoldAdds draft options for uncovered features to the guided workflowartemisPath only in checkout mode
extractFeatureModelOld name of buildFeatureModelSnapshot; prints a deprecation warningartemisPath

Use -q with the tasks that print key-value lines, such as the preflight or the snapshot validation, to see only their output.

Properties​

Pass a property with -P<name>=<value>. You can set personal defaults in ~/.gradle/gradle.properties.

PropertyMeaningDefault
artemisPathPath of the Artemis checkout; the environment variable ARTEMIS_PATH is the fallbacknone
expectedArtemisShaFull commit that the checkout must point tonone: any clean commit is accepted
featureManifestSourcerepository or checkout, see The Feature Manifestrepository, set in gradle.properties
featureManifestPathAnother manifest file to read in repository modethe manifest in this repository
snapshotPathPath of a snapshot directorynone

Two more uses matter for maintenance: -PartemisPath on ./gradlew test enables the smoke test against a real Artemis checkout, and -PskipFrontendBuild=true makes bootJar reuse an existing client build.

Search documentation