- Programming Language: Java
- Runtime Environment: JDK 17
- Testing Framework: JUnit
- Continuous Integration: GitHub Actions
- Static Analysis: SonarLint
- Code Formatting: Google Style Guide
- Package Manager: Maven
- IntelliJ IDEA Community Edition
- JDK 17 (use
java -versionto verify installation in terminal) - Maven (use
mvn -vto verify installation in terminal)
- clone the project using
git clone https://github.com/M2JT/open-source-java-template - In IntelliJ, File -> Open
java-template-project
- In IntelliJ, Preferences -> Editor -> Code Style -> Java, click the settings icon next to Scheme and import the
java-template-project/intellij-java-google-style.xmlfile

- In IntelliJ, go to src -> main -> java -> com.opensourcedev.javatemplateproject, and run
DemoApplication - Check out
http://localhost:8080/helloin browser, you should be seeingHello World!on the screen
- In IntelliJ, go to src -> test -> java -> com.opensourcedev.javatemplateproject, and run
DemoTest
- Alternatively, you can run
mvn teston the root directory in terminal
Most are default options provided by GitHub that cover common patterns for ignoring files and directories in a Java project. Added .idea and .DS_Store to ignore IntelliJ IDEA-specific configuration files/directories and macOS-specific file.
The GNU General Public License (GPL) version 3.0 is a strong copyleft license that comes with certain requirements and restrictions. This license ensures that anyone who uses or modifies our code must also make their contributions available under the same terms, fostering a collaborative and transparent development environment. Therefore, choosing the GPL-3.0 license for our project is suitable as we want to promote open-source principles and ensure that our project and any derivative works remain open source.
