Building Wicket Stuff

Requirements

  • Maven 3.5.0 or newer (enforced by the build).
  • A JDK of at least the Java version in the maven.compiler.release property of the root pom.xml (currently 17). A newer JDK works too: the compiler builds with --release, so the classes target that version whatever JDK runs Maven. The build fails at once with a too old JDK.

The wicket-10.x branch builds with Java 17, while master and wicket-11.x use Java 21.

The build uses the JDK that runs Maven (the one in JAVA_HOME); no Maven toolchains or toolchains.xml are needed.

Building

mvn install

Add -Djavadoc.disabled=true to skip the javadoc generation, as the CI build does.

Continuous integration

Every push to the branch and every pull request against it is built by the GitHub Actions workflow in .github/workflows/ci.yml. The results are in the Actions tab of the repository; no login is required.

The workflow builds with Java 17 (Temurin) and runs:

mvn -s sonatype-settings.xml verify -Pdo-publish -Djavadoc.disabled=true -B -V

For a push (not for a pull request) it runs deploy instead of verify, which publishes the snapshot artifacts to the Sonatype Central snapshot repository.

Dependabot (configured in .github/dependabot.yml) opens pull requests for dependency and GitHub Actions updates.