-
Notifications
You must be signed in to change notification settings - Fork 42
Description
User Story
Essential components
- Title describes the story
- Stakeholder type is identified
- Outcome is described
- Rationale is explicit
- Acceptance criteria are verifiable and from the perspective of the stakeholder
Story
As a maintainer
I want a task within the Gradle build that packages the product for distribution
so that when run, it builds the product jar file (if necessary), copies it to an identified location in the repository, and renames it in accordance with the product specifications.
Acceptance Criteria
- Rule 1: The identified location is the root directory of the repository.
- Rule 2: The product jar filename is
QualityTools.jar - Rule 3: The build task is named
packageand invoked asgradle package - Rule 4: The
packagetask must not be invoked by thebuildtask or other development tasks
Scenario 1
Given a copy of the project repository
when I run the build command gradlew package
then the product jar is built and copied to the top level of the repository as /QualityTools.jar.
Scenario 2
Given a copy of the project repository with an up-to-date build of the product jar
when I run the build command gradlew package
then the product jar is copied to the top level of the repository as /QualityTools.jar.
Supporting Information
See gradle documentation for help creating tasks.
https://docs.gradle.org/current/userguide/tutorial_using_tasks.html