mirror of
https://github.com/booklore-app/booklore.git
synced 2026-02-18 23:42:06 +01:00
* write, read ComicInfo.xml for CBZ files * updated with recommendations from previous PR https://github.com/booklore-app/booklore/pull/1069 * read ComicInfo.xml on CBR, extract first image for CBZ/CBR files, save CBR metadata in ComicInfo.xml as CBZ * Delete CBR file after CBZ conversion. Update DB * Backs up file before updating. Restores back up if errored * Test classes * Update booklore-api/src/main/java/com/adityachandel/booklore/service/metadata/BookMetadataUpdater.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update booklore-api/src/main/java/com/adityachandel/booklore/service/metadata/writer/CbxMetadataWriter.java Updating RAR binary availability check Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update booklore-api/src/main/java/com/adityachandel/booklore/service/metadata/extractor/CbxMetadataExtractor.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update booklore-api/src/main/java/com/adityachandel/booklore/service/metadata/extractor/CbxMetadataExtractor.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Code updates from PR suggestions * Support to extract ComicInfo.xml for .cb7 files * Writer extension for .cb7 files * Adding com.github.junrar to build.gradle (forgot in previous commit) * Settings toggle to control CBR/CB7 to CBZ conversion * indentation complains * removed duplicated junrar inport * Restore comicinfo.xml metadata in edit view * retrieve ComicInfo.xml metadata for new files in library scan * private class definition was missed after merge * Delete --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
98 lines
3.3 KiB
Groovy
98 lines
3.3 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'org.springframework.boot' version '3.5.1'
|
|
id 'io.spring.dependency-management' version '1.1.7'
|
|
id 'org.hibernate.orm' version '7.1.0.Final'
|
|
id 'com.github.ben-manes.versions' version '0.52.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-quartz'
|
|
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'
|
|
|
|
// --- Database & Migration ---
|
|
implementation 'org.mariadb.jdbc:mariadb-java-client:3.5.4'
|
|
implementation 'org.flywaydb:flyway-mysql:11.11.0'
|
|
implementation 'jakarta.persistence:jakarta.persistence-api:3.2.0'
|
|
|
|
// --- Security & Authentication ---
|
|
implementation 'io.jsonwebtoken:jjwt-api:0.12.6'
|
|
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.12.6'
|
|
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.12.6'
|
|
|
|
// --- Lombok (For Clean Code) ---
|
|
compileOnly 'org.projectlombok:lombok:1.18.38'
|
|
annotationProcessor 'org.projectlombok:lombok:1.18.38'
|
|
|
|
// --- Book & Image Processing ---
|
|
implementation 'org.apache.pdfbox:pdfbox:3.0.5'
|
|
implementation 'org.apache.pdfbox:jbig2-imageio:3.0.4'
|
|
implementation 'org.apache.pdfbox:xmpbox:3.0.5'
|
|
implementation 'com.github.jai-imageio:jai-imageio-core:1.4.0'
|
|
implementation 'com.github.jai-imageio:jai-imageio-jpeg2000:1.4.0'
|
|
implementation 'io.documentnode:epub4j-core:4.2.2'
|
|
|
|
// --- UNRAR Support ---
|
|
implementation 'com.github.junrar:junrar:7.5.5'
|
|
|
|
// --- JSON & Web Scraping ---
|
|
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.19.2'
|
|
implementation 'org.jsoup:jsoup:1.21.1'
|
|
|
|
// --- 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.9'
|
|
implementation 'org.apache.commons:commons-compress:1.28.0'
|
|
implementation 'org.apache.commons:commons-text:1.14.0'
|
|
|
|
// --- Test Dependencies ---
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
|
testImplementation 'org.assertj:assertj-core:3.27.3'
|
|
testImplementation "org.mockito:mockito-inline:5.2.0"
|
|
testImplementation 'org.testcontainers:junit-jupiter:1.20.4'
|
|
testImplementation 'org.testcontainers:mariadb:1.20.4'
|
|
}
|
|
|
|
hibernate {
|
|
enhancement {
|
|
enableAssociationManagement = true
|
|
}
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
jvmArgs("-XX:+EnableDynamicAgentLoading")
|
|
}
|
|
|