Skip to content

fix(demo): commit Gradle wrapper files and document Maven install - #17

Open
jvmvik wants to merge 3 commits into
masterfrom
fix/demo-gradle-wrapper
Open

jvmvik wants to merge 3 commits into
masterfrom
fix/demo-gradle-wrapper

Conversation

@jvmvik

@jvmvik jvmvik commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Demo wrapper: demo/gradlew was committed without demo/gradle/wrapper/, so cd demo && make all from a fresh clone failed (gradlew runs -jar $APP_HOME/gradle/wrapper/gradle-wrapper.jar). This adds the wrapper jar and properties, copied from the root project (Gradle 9.1.0).
  • Demo dependency: bumped from serpapi-java:1.0.0 to 1.2.0 to match the README.
  • README: added a Maven pom.xml snippet to Installation. Previously only Gradle was shown.

These were the last open problems found while triaging the legacy google-search-results-java repo before archiving it (serpapi/google-search-results-java#24, #22; serpapi/SerpApi#11075).

Test plan

  • cd demo && ./gradlew build builds demo.jar and resolves serpapi-java:1.2.0 from JitPack
  • ./gradlew run reaches the SerpApi API (tested with an invalid key, which returned the expected Invalid API key error)
  • Run make all SERPAPI_KEY=<valid key> in demo/ on a fresh clone

🤖 Generated with Claude Code

jvmvik and others added 3 commits December 3, 2026 08:07
demo/gradlew was committed without demo/gradle/wrapper/, so running the
demo from a fresh clone failed with "Unable to access jarfile". Add the
wrapper jar and properties (same Gradle 9.1.0 as the root project).

Also bump the demo dependency from 1.0.0 to 1.2.0 to match the README,
and add a Maven pom.xml snippet to the Installation section.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
.gitignore excluded gradlew.bat in every folder, so Windows users could
not run the library build or the demo through the wrapper. Regenerated
both wrappers with Gradle 9.1.0; demo/gradlew now matches the root copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The version was hard-coded in build.gradle, demo/build.gradle and the
README snippets, which is how the demo stayed on 1.0.0 after 1.2.0.

- gradle.properties holds version=1.2.0; build.gradle uses it.
- demo/build.gradle reads ../gradle.properties for its dependency.
- New checkVersionReferences task (part of check, run in CI and by
  make release) fails if a README Gradle/Maven snippet names another
  version.
- CONTRIBUTING.md documents the release step.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant