title |
---|
Student Support Code Template |
This is a template repo for providing student support code (e.g. source code and tests) for Java based homework assignments.
It comes with batteries included:
- Gradle 8.6 preinstalled
- Basic Gradle configuration:
- JDK 21 based projects
- Default Gradle Java project layout
- JUnit 5 for software testing
- Checkstyle to check for valid Javadoc comments for all
public
elements in source code - Spotless to check formatting of Java code using the Google Java Style Guide, can also format sources if necessary
- GitHub workflow to build and test the project in GitHub CI, check sources with Checkstyle and Spotless
- Dependabot to keep dependencies (GitHub workflow, Gradle configuration) up to date
This repo is intended to be used as a template repo. To create new repos for assignments, the following steps may help:
- Fork this repo or use it as a template to create a new repo.
- Add the required source code, tests and task descriptions to your new repo.
- If needed, adjust the Gradle configuration to your needs.
- Make your new repo available to the students.
If desired, activate the GitHub CI in your new repo (under "Settings > Actions > General >
Allow actions"). You need to allow at least the following actions: actions/checkout@v4
and
actions/setup-java@v4
.
This work by Carsten Gips and contributors is licensed under MIT.