This repository has been archived by the owner on Jun 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
74 lines (66 loc) · 2.01 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
//file:noinspection GroovyAssignabilityCheck
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.6.0-RC2'
id 'application'
// id 'com.github.johnrengelman.shadow' version '7.1.0'
}
group 'org.tudorandrei'
version '1.0_kotlin'
repositories {
mavenCentral()
}
dependencies {
// implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.31'
// implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.5.31'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
// Lucene
implementation 'org.apache.lucene:lucene-queries:8.11.0'
implementation 'org.apache.lucene:lucene-analyzers-common:8.11.0'
implementation 'org.apache.lucene:lucene-analyzers:3.6.2'
implementation 'org.apache.lucene:lucene-core:8.11.0'
implementation 'org.apache.lucene:lucene-queryparser:8.11.0'
// Tika
implementation 'org.apache.tika:tika-parsers:2.1.0'
implementation 'org.apache.tika:tika-core:2.1.0'
implementation 'org.apache.tika:tika-parser-text-module:2.1.0'
implementation 'org.apache.tika:tika-parser-pdf-module:2.1.0'
implementation 'org.apache.tika:tika-parser-microsoft-module:2.1.0'
implementation 'org.apache.tika:tika-parser-xml-module:2.1.0'
// Loggers
implementation 'org.slf4j:slf4j-simple:1.7.32'
}
application {
mainClass = 'HelloLucene'
}
compileKotlin {
kotlinOptions {
jvmTarget = "11"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "11"
}
}
tasks.named('jar') {
manifest {
attributes('Implementation-Title': project.name,
'Implementation-Version': project.version)
}
}
//application {
// mainClass = 'Indexer'
//}
//shadowJar {
// minimize()
//}
task(search, dependsOn: 'classes', type: JavaExec) {
mainClass = 'Searcher'
classpath = sourceSets.main.runtimeClasspath
}
task(index, dependsOn: 'classes', type: JavaExec) {
mainClass = 'Indexer'
classpath = sourceSets.main.runtimeClasspath
}