-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle
89 lines (80 loc) · 2.27 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
plugins {
id "org.springframework.boot" version "3.3.4"
id "io.spring.dependency-management" version "1.1.6"
id "com.google.cloud.tools.jib" version "3.4.3"
id "com.github.johnrengelman.shadow" version "8.1.1"
id "java"
}
group = "nl.carosi"
version = "0.6.0"
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
tasks.register('createVersionFile') {
doLast {
def versionFile = file("$buildDir/resources/main/version.properties")
versionFile.text = "version=${project.version}\n"
}
}
tasks.named('processResources') {
dependsOn 'createVersionFile'
}
jib {
from {
image = "eclipse-temurin:17-jre"
platforms {
platform {
architecture = 'amd64'
os = 'linux'
}
platform {
architecture = 'arm'
os = 'linux'
}
platform {
architecture = 'arm64'
os = 'linux'
}
}
}
container {
jvmFlags = ["-Xshare:auto", "-XX:TieredStopAtLevel=1", "-XX:CICompilerCount=1", "-XX:+UseSerialGC", "-Xmx512m"]
}
to {
image = "ghcr.io/nov1n/remarkable-pocket"
tags = [project.version.toString()]
}
extraDirectories {
paths = 'src/main/jib'
permissions = [
'/usr/local/bin/rmapi*': '755'
]
}
}
repositories {
mavenCentral()
mavenLocal()
maven {
url "https://jitpack.io"
}
}
dependencies {
implementation("com.positiondev.epublib:epublib-core:3.1") {
exclude group: "org.slf4j"
}
implementation "com.fasterxml.jackson.core:jackson-core:2.18.0"
implementation "com.github.tchudyk:pocket-integration:1.2.2"
implementation "com.google.guava:guava:33.3.1-jre"
implementation "info.picocli:picocli:4.7.6"
implementation "net.lingala.zip4j:zip4j:2.11.5"
implementation "org.springframework.boot:spring-boot-starter-web:3.3.4"
implementation "org.springframework.retry:spring-retry:2.0.9"
implementation "org.springframework:spring-aspects:6.1.13"
implementation 'org.xerial:sqlite-jdbc:3.46.1.3'
testImplementation "org.springframework.boot:spring-boot-starter-test:3.3.4"
}
test {
useJUnitPlatform()
}