This document provides commands for building, testing, and publishing the Spring Cloudflare Turnstile library.
Run a complete build with all tests (JDK 17 and 21):
./gradlew buildRun all tests:
./gradlew testRun tests on a specific JDK version:
./gradlew testJdk17
./gradlew testJdk21Use this during development to test integration with other local projects:
./gradlew publishToMavenLocal --refresh-dependenciesOr using the alias:
./gradlew publishLocalPublish to the Reposilite private repository:
./gradlew publishReposiliteThis will publish the library to Maven Central:
./gradlew publishAndReleaseToMavenCentral --no-configuration-cacheOr using the alias:
./gradlew publishMavenCentralThis project uses the Gradle Release Plugin to manage versioning and releases.
To create a new release with an incremented version:
./gradlew releaseThis will:
- Check that there are no uncommitted changes
- Generate a changelog
- Update the version in the project
- Tag the release in git
- Publish to Maven Central