* Feature/kobo sync cbx support (#3) * Feature: Add CBX syncing support to Kobo sync (#2) * feat: add cbx sync support * fix: phrasing of setting description to align with CBX terminology * fix: resolve issue with CBX setting persistence * fix: updated dev docker compose to align with Dockerfile * feat: add cbx files as allowed entitlements * fix: relax tomcat query characters for kobo sync * fix: remove hardcoded epub restrictions * fix: reduce image size and resolve relative content paths * fix: resolve issues with the image file encoding * feat: add rar and cb7 support * feat: bring generated epub more in line with epub standard * fix: resolve issues with extra metadata fields * fix: make css background colour white to improve e-ink performance * cleanup: code comments * feat: add cbx unit tests * fix: update zipfile to use builder pattern as current method is deprecated * fix: remove comments * fix: replace regex pattern to a simpler check * fix: remove unused imports * fix: update epub template to use standard language string * fix: missing line end on css * fix: remove duplicate query characters * fix: grammer issue * fix: resolve typo in the entitlement service test * fix: redundant imports and update long types * chore: update test descriptions for cbx conversion * fix: add check for larger images in archive files. unlikely to occur. * fix: merge temp dir logic for the book download * fix: update kobo entitlement to always report the format as epub3 * fix: implement suggested changes around javadocs and some edge cases to handle gracefully * chore: cleanup variable names to be clearer in download service * feat: change function to extract to disk instead of storing images in memory * fix: add temp file clean up into the conversion service * fix: add visual divider to seperate CBX and EPUB settings * fix: update lambdas to use method references * fix: reword setting description for cbx to epub sync --------- Co-authored-by: Aditya Chandel <8075870+adityachandelgit@users.noreply.github.com>
99 lines
3.3 KiB
Groovy
99 lines
3.3 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'org.springframework.boot' version '4.0.0'
|
|
id 'io.spring.dependency-management' version '1.1.7'
|
|
id 'org.hibernate.orm' version '7.1.10.Final'
|
|
id 'com.github.ben-manes.versions' version '0.53.0'
|
|
}
|
|
|
|
group = 'com.adityachandel'
|
|
version = '0.0.1-SNAPSHOT'
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(25)
|
|
}
|
|
}
|
|
|
|
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'
|
|
implementation 'org.springframework.boot:spring-boot-starter-flyway'
|
|
|
|
// --- Database & Migration ---
|
|
implementation 'org.mariadb.jdbc:mariadb-java-client:3.5.6'
|
|
implementation 'org.flywaydb:flyway-mysql:11.18.0'
|
|
implementation 'jakarta.persistence:jakarta.persistence-api:3.2.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:xmpbox:3.0.6'
|
|
implementation 'org.apache.pdfbox:jbig2-imageio:3.0.4'
|
|
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.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:3.0.0'
|
|
implementation 'org.apache.commons:commons-compress:1.28.0'
|
|
implementation 'org.apache.commons:commons-text:1.14.0'
|
|
|
|
// --- Template Engine ---
|
|
implementation 'org.freemarker:freemarker:2.3.33'
|
|
|
|
// --- 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"
|
|
}
|
|
|
|
hibernate {
|
|
enhancement {
|
|
enableAssociationManagement = true
|
|
}
|
|
}
|
|
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
jvmArgs("-XX:+EnableDynamicAgentLoading")
|
|
}
|