forked from hmdev/AozoraEpub3
-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
build.gradle
84 lines (72 loc) · 2.77 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
plugins {
id 'java'
id 'application'
}
// compileJavaタスクのエンコーディング
compileJava.options.encoding = 'UTF-8'
// compileTestJavaタスクのエンコーディング
compileTestJava.options.encoding = 'UTF-8'
// javadocタスクのエンコーディング
javadoc.options.encoding = 'UTF-8'
//mainClassName = 'AozoraEpub3Applet'
repositories {
mavenCentral()
}
sourceSets {
main {
java {
srcDirs = ['src']
}
resources {
srcDirs= ["src"]
}
}
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}
application {
// Define the main class for the application.
mainClass.set('AozoraEpub3Applet')
}
jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
// attributes 'Main-Class': 'AozoraEpub3'
attributes 'Main-Class': 'AozoraEpub3Applet'
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
/* */
tasks.withType(JavaCompile).configureEach {
options.compilerArgs << '-Xlint:deprecation'
}
ant.importBuild 'ant.xml'
dependencies {
// https://mvnrepository.com/artifact/org.apache.velocity/velocity-engine-core
implementation group: 'org.apache.velocity', name: 'velocity-engine-core', version: '2.4'
// https://mvnrepository.com/artifact/org.apache.commons/commons-lang3
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.17.0'
// https://mvnrepository.com/artifact/org.slf4j/slf4j-api
implementation group: 'org.slf4j', name: 'slf4j-api', version: '2.0.16'
// https://mvnrepository.com/artifact/org.slf4j/slf4j-simple
implementation group: 'org.slf4j', name: 'slf4j-simple', version: '2.0.16'
// https://mvnrepository.com/artifact/org.apache.commons/commons-collections4
implementation group: 'org.apache.commons', name: 'commons-collections4', version: '4.5.0-M2'
// https://mvnrepository.com/artifact/com.github.junrar/junrar
implementation group: 'com.github.junrar', name: 'junrar', version: '7.5.5'
// https://mvnrepository.com/artifact/org.jsoup/jsoup
implementation group: 'org.jsoup', name: 'jsoup', version: '1.18.1'
// https://mvnrepository.com/artifact/org.apache.commons/commons-compress
implementation group: 'org.apache.commons', name: 'commons-compress', version: '1.27.1'
// https://mvnrepository.com/artifact/commons-cli/commons-cli
implementation group: 'commons-cli', name: 'commons-cli', version: '1.9.0'
// https://mvnrepository.com/artifact/com.github.albfernandez/juniversalchardet
implementation group: 'com.github.albfernandez', name: 'juniversalchardet', version: '2.5.0'
// https://mvnrepository.com/artifact/org.json/json
implementation group: 'org.json', name: 'json', version: '20240303'
}