Salespoint
A framework to develop point of sales applications, powered by Java and Spring Boot
Install / Use
/learn @st-tu-dresden/SalespointREADME
= Salespoint Framework
image:https://github.com/st-tu-dresden/salespoint/actions/workflows/deploy.yaml/badge.svg["Build and deploy Maven artifacts", link="https://github.com/st-tu-dresden/salespoint/actions/workflows/deploy.yaml"]
== Prerequisites
- OpenJDK 21
- Git
== Building the project
.Building the project [source, bash]
$ git clone https://github.com/st-tu-dresden/salespoint $ cd salespoint $ ./mvnw clean install
== Documentation
The reference documentation is written in Asciidoc and built using Asciidoctor. The main documentation source file is located in src/main/asciidoc.
To build the reference documentation simply run ./mvnw -Pdocs package on the command line. This generates the following HTML files:
- the Salespoint website in
target/generated-docs/index.html. - the Salespoint reference in
target/generated-docs/salespoint-reference.html.
== Deployment
To deploy artifacts to the salespoint repository, simply run ./mvnw clean deploy. This requires your settings.xml (located in ~/.m2 ) to contain a server definition with the credentials to access the Salespoint server via SFTP:
[source, xml]
<server> <id>salespoint</id> <username>…</username> <password>…</password> </server> ----To deploy the website and reference documentation, run ./mvnw -Pdocs site:deploy.
== Release
- Make sure all tickets are closed, except the release one.
- Tweak
ChangelogCreator(insrc/test/java) to point to the milestone to be released. Run the creator. Copy console output intosrc/main/asciidoc/site/changelog.adoc. - Update version information
index.adoc(insrc/main/asciidoc/site). - Commit as
GH-??? - Prepare release $version.. If this was on a maintainance branch, also cherry-pick this commit tomainand resolve any conflicts. - Run
./mvnw release:prepare. - Edit commits to match commit message format, re-create tag.
- Push changes & tag.
- Check out tag and run
./mvnw clean deploy -Prelease -DskipTests. - Check out tag and run
./mvnw clean package site:deploy -Pdocs,release.
