- 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 -version
to verify installation in terminal) - Maven (use
mvn -v
to 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.xml
file
- In IntelliJ, go to src -> main -> java -> com.opensourcedev.javatemplateproject, and run
DemoApplication
- Check out
http://localhost:8080/hello
in 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 test
on 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.