Commit Graph
9 Commits
Author SHA1 Message Date
brios 64083fe9b7 feat(pdf): integrate PDFium4j for PDF processing and metadata extraction (#281)
* feat(pdf): integrate PDFium4j for PDF processing and metadata extraction

* feat(pdf): update PDFium4j to version 0.12.0 and optimize XMP metadata handling

* feat(pdf): update PDFium4j to version 0.13.0

* feat(pdf): enhance cross-compilation support and improve XML parsing in metadata extraction

* Delete dev.local-libs.docker-compose.yml

* feat(pdf): update PDFium4j to version 0.14.0
2026-04-22 17:27:01 -04:00
briosandcoderabbitai[bot] ad3a981ad1 fix(hibernate): improve transaction management and optimize entity fetching (#176)
* fix(hibernate): improve transaction management and optimize entity fetching

* chore(tests): clean-up comments

* chore: fix config issue in the kotlin dsl

* fix(hibernate): fix entity equality checks

* fix(hibernate): add transactional read-only support to BookService

* Update booklore-api/src/main/java/org/booklore/model/entity/BookLoreUserEntity.java

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* fix(hibernate): remove redundant annotations in BookLoreUserEntity

* fix(hibernate): import Hibernate

* fix(tests): fix merge conflict caused errors

* refactor(book): optimize book retrieval methods and reduce cache sizes

* refactor(metadata): remove lazy loading from description field in BookMetadataEntity

* fix(build): increase max heap size for test tasks

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-04-22 17:27:01 -04:00
dependabot[bot] 73857a81ed chore(deps): bump the gradle-dependencies group (#350)
Bumps the gradle-dependencies group in /booklore-api with 3 updates: [org.mariadb.jdbc:mariadb-java-client](https://github.com/mariadb-corporation/mariadb-connector-j), org.flywaydb:flyway-mysql and [tools.jackson:jackson-bom](https://github.com/FasterXML/jackson-bom).


Updates `org.mariadb.jdbc:mariadb-java-client` from 3.5.7 to 3.5.8
- [Release notes](https://github.com/mariadb-corporation/mariadb-connector-j/releases)
- [Changelog](https://github.com/mariadb-corporation/mariadb-connector-j/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mariadb-corporation/mariadb-connector-j/compare/3.5.7...3.5.8)

Updates `org.flywaydb:flyway-mysql` from 12.2.0 to 12.3.0

Updates `tools.jackson:jackson-bom` from 3.1.0 to 3.1.1
- [Commits](https://github.com/FasterXML/jackson-bom/compare/jackson-bom-3.1.0...jackson-bom-3.1.1)

---
updated-dependencies:
- dependency-name: org.mariadb.jdbc:mariadb-java-client
  dependency-version: 3.5.8
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gradle-dependencies
- dependency-name: org.flywaydb:flyway-mysql
  dependency-version: 12.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: gradle-dependencies
- dependency-name: tools.jackson:jackson-bom
  dependency-version: 3.1.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gradle-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-22 17:27:00 -04:00
James Ward 1e0b4d0fd5 refactor(api): use NightCompress library for reading CBX (#113)
* build: drop unrar from dockerfile

* build: add libarchive to dockerfile

* ci: add libarchive for tests

* build: try adding to the gradle build

* refactor: use nightcompress for reading CBX

* test: disable tests using nightcompress when unavailable

* ci: drop showing java information

* build: add libarchive to dev compose

* build: fix libarchive link in alpine

seems alpine doesn't create libarchive.so and this seems to be the
easiest approach to fix that

* build: use expected order for allowing java to use native libs

* fix: ensure we initialize NightCompress before using it

* fix: properly find input stream

* fix: return amount of data copied

* test: add helper to turn off tests in ArchiveService

* test: rewrite CbxMetadataExtractorTest to mock archiveService

* refactor: expose `Path` to make `CbxMetadataExtractor` easier to test

* test: drop now useless test

* test: add archiveservice to rar5 integration

* test: mock out archiveservice in cbxreader test

* test: use real archiveservice in cbxconverstionintegration

* file: the cbxconversionservicetest also seems to be integration

* test: remove unused imports from cbxmetadataextractortest

* test: cbxcomicinfocompliance is also an integration

* test: cbxmetadatawriter is also integration

* chore: drop unused properties

* test: make cbxmetadataextractortest do something for covers

before it was basically useless because of fallback

* fix: invert check

* chore: better comment

* test: fix more cbxmetadataextractor tests that never worked

* test: we only ever raise ioexception

* fix: handle `null` comicinfo when parsing

* test: properly test for no files comicinfo

* build: manual link of dev docker compose

* test: if you use any matchers, all must be

* build: drop unrar from dev compose

* test: if you use any matchers, all must be

* test: always get a fresh stream

* test: drop more toFile
2026-04-22 17:26:59 -04:00
Zach 5ac7b5553e feat(api-docs): reintroduce API doc generation (#289)
- reintroduces API doc generation via API_DOCS_ENABLED
- accessible publicly via /api/docs and /api/openapi.json
2026-04-22 17:26:58 -04:00
dependabot[bot]andbrios 052c9323be chore(deps): bump the gradle-dependencies group across 1 directory with 8 updates (#224)
Bumps the gradle-dependencies group with 6 updates in the /booklore-api directory:

| Package | From | To |
| --- | --- | --- |
| org.flywaydb:flyway-mysql | `12.0.3` | `12.2.0` |
| [org.projectlombok:lombok](https://github.com/projectlombok/lombok) | `1.18.42` | `1.18.44` |
| org.apache.pdfbox:pdfbox | `3.0.6` | `3.0.7` |
| com.github.RouHim:jaudiotagger | `2.0.16` | `2.0.19` |
| org.glassfish.jaxb:jaxb-runtime | `4.0.6` | `4.0.7` |
| [gradle-wrapper](https://github.com/gradle/gradle) | `9.4.0` | `9.4.1` |



Updates `org.flywaydb:flyway-mysql` from 12.0.3 to 12.2.0

Updates `org.projectlombok:lombok` from 1.18.42 to 1.18.44
- [Changelog](https://github.com/projectlombok/lombok/blob/master/doc/changelog.markdown)
- [Commits](https://github.com/projectlombok/lombok/compare/v1.18.42...v1.18.44)

Updates `org.apache.pdfbox:pdfbox` from 3.0.6 to 3.0.7

Updates `org.apache.pdfbox:pdfbox-io` from 3.0.6 to 3.0.7

Updates `org.apache.pdfbox:xmpbox` from 3.0.6 to 3.0.7

Updates `com.github.RouHim:jaudiotagger` from 2.0.16 to 2.0.19

Updates `org.glassfish.jaxb:jaxb-runtime` from 4.0.6 to 4.0.7

Updates `gradle-wrapper` from 9.4.0 to 9.4.1
- [Release notes](https://github.com/gradle/gradle/releases)
- [Commits](https://github.com/gradle/gradle/compare/v9.4.0...v9.4.1)

---
updated-dependencies:
- dependency-name: org.flywaydb:flyway-mysql
  dependency-version: 12.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: gradle-dependencies
- dependency-name: org.projectlombok:lombok
  dependency-version: 1.18.44
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gradle-dependencies
- dependency-name: org.apache.pdfbox:pdfbox
  dependency-version: 3.0.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gradle-dependencies
- dependency-name: org.apache.pdfbox:pdfbox-io
  dependency-version: 3.0.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gradle-dependencies
- dependency-name: org.apache.pdfbox:xmpbox
  dependency-version: 3.0.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gradle-dependencies
- dependency-name: com.github.RouHim:jaudiotagger
  dependency-version: 2.0.19
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gradle-dependencies
- dependency-name: org.glassfish.jaxb:jaxb-runtime
  dependency-version: 4.0.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gradle-dependencies
- dependency-name: gradle-wrapper
  dependency-version: 9.4.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gradle-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: brios <127139797+balazs-szucs@users.noreply.github.com>
2026-04-22 17:26:53 -04:00
brios 4e57719118 chore(dependencies): bump Spring Boot to 4.0.5 and Hibernate to 7.3.0 Final (#223)
* chore(dependencies): bump Spring Boot to 4.0.5 and Hibernate to 7.3.0.Final

* fix(read-status): replace String readStatus with ReadStatus enum in BookRuleEvaluatorService
2026-04-22 17:26:52 -04:00
James Cox 42d9dcb4d3 refactor(frontend): repoint repo tooling to the frontend path
- Tooling and automation:
  - update Dependabot and the frontend test workflow to read frontend-owned paths
  - keep published frontend test reports aligned with the renamed project directory
  - extend ignore rules for frontend-generated test output and local dependencies
- Local developer entrypoints:
  - repoint the root Justfile ui module at frontend/Justfile
  - update the dev compose bind mount to use ./frontend
  - update the Weblate setup script to source translations from frontend/src/i18n
- Build integration:
  - repoint the Docker frontend build stage to /workspace/frontend and the renamed source paths
  - update the backend Gradle fallback dist location to ../frontend/dist/grimmory/browser
- Repository guidance:
  - rewrite root docs and AGENTS references that still pointed at booklore-ui so contributor guidance matches the new directory name

- Validation:
  - not run; this commit is scoped to staged path rewrites only
2026-04-22 17:26:39 -04:00
brios ff14647bd8 chore(build): migrate Gradle build scripts from Groovy to Kotlin DSL (#100)
* chore(build): migrate Gradle build scripts from Groovy to Kotlin DSL

* chore(docker): update Gradle build files to Kotlin DSL in Dockerfile
2026-04-22 17:26:33 -04:00