mirror of
https://github.com/adityachandelgit/BookLore.git
synced 2026-02-18 03:07:40 +01:00
* fix: support reading alternative book formats using bookType query param * feat: add streaming reader support for alternative EPUB formats * refactor: extract tabs section into MetadataTabsComponent * feat: implement per-file reading progress tracking * feat: add configurable format priority with cascading fallback * refactor: redesign library creator with single-page layout * refactor: unify reading progress into ReadingProgressService * refactor: improve delete options with clearer file format and book deletion * refactor: improve book format matching with normalization and fuzzy fallback * feat: add folder-based audiobook support with ZIP downloads and preparing state * fix: display unique format types in metadata viewer * refactor: auto-attach files to single book in folder during rescan * feat: implement folder-centric book file grouping with fuzzy matching * refactor: consolidate book grouping with organization mode support * fix: use folder hash for folder-based audiobooks in auto-attach * fix: delete only BookFileEntity on file removal, not entire book * fix: set folderBased flag and correct file size for auto-attached audiobook folders * fix: use count query to avoid lazy initialization in file delete handler * fix: preserve book metadata when file is moved by detecting hash match * fix: skip books with no files in restoration to avoid NPE * fix: round all progress percentages to one decimal place before sending to UI * style: improve library creator dialog spacing and layout * fix: migrate FOLDER_AS_BOOK to BOOK_PER_FOLDER for backwards compatibility * fix: FileMoveService now handles multi-file BookEntity properly * style: redesign metadata-picker and file-mover UI components * style: redesign file-naming-pattern UI and improve theme contrast * style: relax spacing in library-creator component * style: tighten directory-picker layout for consistency * fix: PathPatternResolver now respects folderBased flag for audiobooks * style: move checkmark column to left side and add pending status in file-mover * refactor: consolidate BookFileType into BookType and add audiobook styling * feat: show 'Continue Reading' button for in-progress books * fix: preserve dots in folder names during grouping and prevent duplicate attachments * style: reduce gap between download-all button and primary file section * style: shorten 'Continue Reading' button to 'Read' on mobile * feat: add DISK_TYPE config to disable file moves on network storage * style: standardize settings pages with shared styles and consistent spacing * style: revamp settings pages with modern card-based layouts * style: revamp OPDS, auth, and task management settings layouts * fix: update FileMoveService tests to include AppProperties parameter * fix: derive BookFileType from extension when uploading additional book files * feat: show format type and size in download button with dropdown for alternatives * feat: add audiobook streaming player with HTTP Range support * feat: add M4B chapter extraction and chapter navigation * feat: add audiobook bookmarks and sleep timer * refactor: split AudiobookReaderService into focused services * feat: add Media Session API for background audio playback * feat: display file extensions in format tags with distinct colors and add audiobook upload support * feat: require bookFileId for viewer settings API * fix: show split button for audiobooks with readable alternatives * feat: improve reading sessions table with book type badges and better formatting * feat: add audiobook play button in files tab * feat: use file extension for format display and meaningful tab values * feat: add extension field to BookFile DTO * feat: use extension field for book card format pill * fix: use mixed orientation for format priority drag-drop to support multi-line layout * feat: add attach book files feature to consolidate single-file books * fix: increase drag handle size for format priority chips * fix: add missing BookFileRepository mock to BookServiceDeleteTests * feat: add delete buttons to files tab and move shelf to other items menu * feat: add physical books support for cataloging books without digital files * refactor: redesign icon-picker component with improved styling * refactor: redesign metadata-picker component with improved layout and alignment * refactor: move Add Physical Book to top of library menu * refactor: use p-autoComplete for authors/categories in add-physical-book dialog * feat: add square cover search and display support for audiobooks * fix: navigate to first page when opening unread ebooks * fix: exclude API requests from service worker interception * feat: support fileless books with automatic file attachment * fix: bypass service worker for audiobook streaming requests * refactor: remove alphabetical filter sorting, default to count, limit filters to 100 --------- Co-authored-by: acx10 <acx10@users.noreply.github.com>
122 lines
4.2 KiB
Groovy
122 lines
4.2 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'org.springframework.boot' version '3.5.8'
|
|
id 'io.spring.dependency-management' version '1.1.7'
|
|
id 'org.hibernate.orm' version '6.6.36.Final'
|
|
id 'com.github.ben-manes.versions' version '0.53.0'
|
|
}
|
|
|
|
group = 'com.adityachandel'
|
|
version = '0.0.1-SNAPSHOT'
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(21)
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
configurations {
|
|
compileOnly {
|
|
extendsFrom annotationProcessor
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
// --- Spring Boot ---
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
|
implementation 'org.springframework.boot:spring-boot-starter-web'
|
|
implementation 'org.springframework.boot:spring-boot-starter-validation'
|
|
implementation 'org.springframework.boot:spring-boot-starter-websocket'
|
|
implementation 'org.springframework.boot:spring-boot-starter-actuator'
|
|
implementation 'org.springframework.boot:spring-boot-configuration-processor'
|
|
implementation 'org.springframework.boot:spring-boot-starter-security'
|
|
implementation 'org.springframework.boot:spring-boot-starter-mail'
|
|
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
|
|
|
|
// --- Reactive Streams ---
|
|
implementation 'io.projectreactor:reactor-core'
|
|
|
|
// --- Database & Migration ---
|
|
implementation 'org.mariadb.jdbc:mariadb-java-client:3.5.6'
|
|
implementation 'org.flywaydb:flyway-mysql:11.19.0'
|
|
|
|
// --- Security & Authentication ---
|
|
implementation 'io.jsonwebtoken:jjwt-api:0.13.0'
|
|
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.13.0'
|
|
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.13.0'
|
|
|
|
// --- Lombok (For Clean Code) ---
|
|
compileOnly 'org.projectlombok:lombok:1.18.42'
|
|
annotationProcessor 'org.projectlombok:lombok:1.18.42'
|
|
|
|
// --- Book & Image Processing ---
|
|
implementation 'org.apache.pdfbox:pdfbox:3.0.6'
|
|
implementation 'org.apache.pdfbox:pdfbox-io:3.0.6'
|
|
implementation 'org.apache.pdfbox:xmpbox:3.0.6'
|
|
implementation 'org.apache.pdfbox:jbig2-imageio:3.0.4'
|
|
// Required for JPEG2000 support in PDFBox (not covered by TwelveMonkeys)
|
|
implementation 'com.github.jai-imageio:jai-imageio-core:1.4.0'
|
|
implementation 'com.github.jai-imageio:jai-imageio-jpeg2000:1.4.0'
|
|
|
|
// --- TwelveMonkeys ImageIO ---
|
|
implementation 'com.twelvemonkeys.imageio:imageio-jpeg:3.13.0'
|
|
implementation 'com.twelvemonkeys.imageio:imageio-tiff:3.13.0'
|
|
implementation 'com.twelvemonkeys.imageio:imageio-webp:3.13.0'
|
|
implementation 'com.twelvemonkeys.imageio:imageio-bmp:3.13.0'
|
|
|
|
implementation 'io.documentnode:epub4j-core:4.2.2'
|
|
|
|
// --- Audio Metadata (Audiobook Support) ---
|
|
implementation 'net.jthink:jaudiotagger:3.0.1'
|
|
|
|
// --- UNRAR Support ---
|
|
implementation 'com.github.junrar:junrar:7.5.7'
|
|
|
|
// --- JSON & Web Scraping ---
|
|
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.20.1'
|
|
implementation 'org.jsoup:jsoup:1.21.2'
|
|
|
|
// --- Mapping (DTOs & Entities) ---
|
|
implementation 'org.mapstruct:mapstruct:1.6.3'
|
|
annotationProcessor 'org.mapstruct:mapstruct-processor:1.6.3'
|
|
|
|
// --- API Documentation ---
|
|
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.8.14'
|
|
implementation 'org.apache.commons:commons-compress:1.28.0'
|
|
implementation 'org.tukaani:xz:1.11' // Required by commons-compress for 7z support
|
|
implementation 'org.apache.commons:commons-text:1.15.0'
|
|
|
|
// --- Template Engine ---
|
|
implementation 'org.freemarker:freemarker:2.3.34'
|
|
|
|
// --- Caching ---
|
|
implementation 'com.github.ben-manes.caffeine:caffeine:3.2.0'
|
|
|
|
// --- Test Dependencies ---
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
|
testImplementation 'org.assertj:assertj-core:3.27.6'
|
|
testImplementation "org.mockito:mockito-inline:5.2.0"
|
|
testRuntimeOnly 'com.h2database:h2'
|
|
}
|
|
|
|
hibernate {
|
|
enhancement {
|
|
enableAssociationManagement = true
|
|
}
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
jvmArgs("-XX:+EnableDynamicAgentLoading")
|
|
}
|
|
|
|
bootRun {
|
|
def debug = System.getenv('REMOTE_DEBUG_ENABLED')
|
|
if (debug.equals("true")) {
|
|
jvmArgs("-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005")
|
|
}
|
|
} |