Skip to content

Retire the old Gradle build (#252) - #261

Merged
gernotstarke merged 1 commit into
masterfrom
chore/252-retire-gradle
Oct 1, 2026
Merged

gernotstarke merged 1 commit into
masterfrom
chore/252-retire-gradle

Conversation

@gernotstarke

Copy link
Copy Markdown
Member

Closes #252. The template is now built only by arc42-generator (make + Docker), which also produces the downloads and checks every pull request here (Golden master validation).

Removed (only the old Gradle build used them)

  • Gradle: build.gradle, settings.gradle, gradle.properties, gradlew, gradlew.bat, gradle/ (wrapper).
  • Docker: Dockerfile, Dockerfile.build, docker-compose.yml, .dockerignore. All of them only ran ./gradlew (build, validate, an nginx preview).
  • ZH/pdf-theme/ and ZH-TW/pdf-theme/: themes and the four Noto Sans SC fonts, 40 MB each, byte-identical. Only build.gradle read them.
  • .gitignore: the Gradle entries.

A checkout gets about 80 MB smaller. Git history is not rewritten, so the fonts stay in the history.

README

The section Build a Local Version replaces the Gradle and Docker instructions with:

  • the preview through arc42-generator (make image, check out your branch in its submodule, make generate FORMAT=html|pdf, make templates OPTS=--lint=warn);
  • where the output lands;
  • the directory structure (with revdate-iso and other-formats/);
  • how to add a language.

Checks (from #252)

  • git grep -i 'gradle\|pdf-theme\|Dockerfile\|docker-compose': no references left.
  • The generator against this branch (make generate FORMAT=pdf): 0 lint errors, no diagnostics.
    • ZH: 25 pages; ZH-TW: 26 pages.
    • Both use the fallback font DroidSansFallback, and I checked a ZH-TW page visually: the Chinese text renders.
  • The CI workflow (Golden master validation) doesn't use any of the removed files. The Gradle workflow was already removed in Remove the Gradle CI workflow #253.

🤖 Generated with Claude Code

The template is built by arc42-generator (make, Docker), which also checks
every pull request here. Removed what only the old Gradle build used:

- build.gradle, settings.gradle, gradle.properties, gradlew, gradlew.bat,
  gradle/ (wrapper)
- Dockerfile, Dockerfile.build, docker-compose.yml, .dockerignore: they only
  ran ./gradlew
- ZH/pdf-theme/ and ZH-TW/pdf-theme/: Noto Sans SC fonts (40 MB each) and
  themes; the generator renders Chinese PDFs with its own theme and fallback
  font (arc42-generator#82)
- Gradle entries in .gitignore

README: the local build section now describes the preview with
arc42-generator, the directory structure and how to add a language.
Git history is not rewritten.

Closes #252

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@gernotstarke
gernotstarke merged commit 408a0e7 into master Oct 1, 2026
1 check passed
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.

Remove pdf-theme/ from ZH and ZH-TW when the old Gradle build is retired

1 participant