13
Home
root edited this page 2025-06-26 17:19:48 +01:00
How to setup DEV environment
- Checkout the project
- Open CMD (as administrator)
- Build/Install front-end (node.js). Run : npm install
- Build & Run SpringBoot App. Run: mvnw
- Open browser: http://localhost:8081 (for testing)
- Open eclipse. Import project "Maven » Existing Maven Projects"
Pre-Requisits
- Java version: 17.0.10 (JDK)
- Apache Maven 3.8.1
- Eclipse IDE 2024-03 (4.31.0)
- MySQL 8.0 or MariaDB 10.6
- NodeJS
Project Database Config
Using MySQL (active):
jdbc:mysql://localhost:3306/resilient_resilient?useUnicode=true&characterEncoding=utf8&useSSL=false&useLegacyDatetimeCode=false&createDatabaseIfNotExist=true
Using MariaDB:
jdbc:mariadb://localhost:3306/resilient_resilient?useUnicode=true&characterEncoding=utf8&useSSL=false&useLegacyDatetimeCode=false&createDatabaseIfNotExist=true
Eclipse IDE Settings
In the project there's a directory with several settings to apply to Eclipse: \ide\eclipse\
Import:
- Code Formatter: Preferences → Java → Code Style → Formatter → Import...
Located in \ide\eclipse\formatter - Run Configs: Run → Run Configurations → Import...
Located in \ide\eclipse\run-configs
Make a release (with automated Forgejo actions)
See workflow configuration file: master/.forgejo/workflows/release.yml
- Create a new branch in release/*
- Goto https://git.oguerreiro.com/root/resilient/branches
- Create a new branch from master
- Name it : release/v1.0.99 (assuming current version: 1.0.99-SNAPSHOT)
- Fogejo Actions should fire
- Goto https://git.oguerreiro.com/root/resilient/actions
- See the running workflow
- Wait until it ends
- Release validations
- Branch release/v1.0.99
- pom.xml, the version must be
<version>1.0.99</version>
without SNAPSHOT - an artifact was attached to the workflow run, with the name:
app-backend
- download the artifact and check contents. It mus be a valid ZIP file.
- pom.xml, the version must be
- Branch master
- pom.xml, the version must be
<version>1.0.100-SNAPSHOT</version>
with SNAPSHOT and incremented - a tag was added with the name
v1.0.99
- pom.xml, the version must be
- A Forgejo Release has been create
- Goto https://git.oguerreiro.com/root/resilient/releases
- The release "Release v1.0.99" was created ?
- The JAR is attached ?
- The description have a list of issues resolved ?
- Post release After the (successfull) release, the Milestone must be closed.
- Goto https://git.oguerreiro.com/root/resilient/milestones
- Create the next milestone: 1.0.100
- Close the released milestone
- Search for the Milestone 1.0.99
- Evaluate if all associated issues are closed
- If not, move the unresolved issues to another milestone
- Click the action "Close"
- In working Eclipse Workspace make PULL (this prevents future conflits, and updates the pom version)
Revert release
Procedures to execute when something go wrong in the release
- Delete the Tag
- Goto https://git.oguerreiro.com/root/resilient/tags
- Delete the tag with release version. In this case : v1.0.99
- Delete the Branch
- Goto https://git.oguerreiro.com/root/resilient/branches
- Delete the tag with release version. In this case : release/v1.0.99
- Evaluate master pom.xml version The update to master\pom.xml is the last thing done. In case of error in the release workflow its VERY unlike to after master\pom.xml change. That being sayed, validate:
- Is master\pom.xml changed to the next working version? (Example: 1.0.100-SNAPSHOT)
- If already is, manually change back and commit
- Make any necessary corrections to solve the problem in the release
- Now, just repeat the release