-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
51 lines (45 loc) · 1.34 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
plugins {
id 'java'
id 'application'
}
application {
mainClassName = 'info.johtani.misc.cli.furigana.ExtractKanaCli'
}
group 'info.johtani.misc.cli'
version '0.1.0-SNAPSHOT'
description 'Extract Furigana from some Tokenizer'
repositories {
mavenCentral()
maven {
url "https://maven.codelibs.org/"
}
}
dependencies {
implementation 'org.codelibs:lucene-analyzers-kuromoji-ipadic-neologd:8.2.0-20200120'
implementation 'com.worksap.nlp:sudachi:0.5.2'
implementation 'info.picocli:picocli:4.6.1'
implementation 'com.univocity:univocity-parsers:2.9.1'
annotationProcessor 'info.picocli:picocli-codegen:4.6.1'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.2'
}
test {
useJUnitPlatform()
}
compileJava {
options.compilerArgs += ["-Aproject=${project.group}/${project.name}"]
}
task copyDependencies(type: Copy, group: 'build') {
from configurations.runtimeClasspath
destinationDir = file("$buildDir/libs")
}
jar {
dependsOn 'copyDependencies'
manifest {
def classpathString = configurations
.runtimeClasspath
.collect { File f -> f.name }
.join(' ')
attributes 'Class-Path': classpathString
}
}