-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
94 lines (78 loc) · 2.71 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
90
91
92
93
allprojects {
ext {
kotlinVersion = "1.4.20"
luceneVersion = "7.1.0"
jacksonVersion = "2.10.0.pr1"
}
group = 'edu.umass.cics.ciir'
version = '0.6-SNAPSHOT'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
apply plugin: 'java'
apply plugin: 'maven-publish'
}
subprojects {
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven { url "https://jitpack.io" }
}
dependencies {
implementation group: "com.github.ben-manes.caffeine", name: "caffeine", version: "2.3.1"
implementation group: "net.sf.trove4j", name: "trove4j", version: "3.0.3"
implementation group: 'org.roaringbitmap', name: 'RoaringBitmap', version: '0.6.39'
implementation group: 'io.javalin', name: 'javalin', version: '3.8.0'
implementation "org.slf4j:slf4j-simple:1.7.28"
// Lucene:
implementation group: 'org.apache.lucene', name: 'lucene-core', version: luceneVersion
implementation group: 'org.apache.lucene', name: 'lucene-benchmark', version: luceneVersion
// JSON encoding:
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: jacksonVersion
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: jacksonVersion
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: jacksonVersion
implementation group: 'com.fasterxml.jackson.module', name: 'jackson-module-kotlin', version: jacksonVersion
// Kotlin stdlib
implementation group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jdk8', version: kotlinVersion
implementation group: 'org.jetbrains.kotlin', name: 'kotlin-reflect', version: kotlinVersion
// Testing:
testImplementation group: 'junit', name: 'junit', version: '4.12'
testImplementation group: 'org.jetbrains.kotlin', name: 'kotlin-test-junit', version: kotlinVersion
dependencies {
testImplementation platform("org.http4k:http4k-bom:4.1.1.1")
testImplementation "org.http4k:http4k-core"
testImplementation "org.http4k:http4k-client-apache"
}
}
buildscript {
ext {
kotlinVersion = "1.4.20"
}
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath 'com.github.jengelman.gradle.plugins:shadow:5.2.0'
}
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
}
}
}