/
build.gradle
72 lines (62 loc) · 1.67 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
plugins {
id 'java'
id 'maven-publish'
id "me.champeau.gradle.jmh" version "0.5.0"
}
group 'io.github.reugn'
version '0.6.0'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())
publishing {
repositories {
maven {
name = "GithubPackages"
url = uri("https://maven.pkg.github.com/reugn/gravity")
credentials {
username = properties.getProperty("user") ?: System.getenv("GITHUB_ACTOR")
password = properties.getProperty("password") ?: System.getenv("GITHUB_TOKEN")
}
}
}
publications {
register("jar", MavenPublication) {
from(components["java"])
}
}
}
ext {
tikaVersion = '1.27'
slf4jVersion = '1.7.30'
}
dependencies {
implementation "org.apache.tika:tika-core:${tikaVersion}"
implementation "org.apache.tika:tika-parsers:${tikaVersion}"
implementation "com.google.guava:guava:31.0.1-jre"
implementation "org.slf4j:slf4j-api:${slf4jVersion}"
testImplementation "junit:junit:4.13.2"
testImplementation "org.slf4j:slf4j-log4j12:${slf4jVersion}"
}
sourceSets {
jmh {
compileClasspath += sourceSets.test.runtimeClasspath
runtimeClasspath += sourceSets.test.runtimeClasspath
}
}
test {
useJUnit()
maxHeapSize = '128M'
filter {
includeTestsMatching "io.github.reugn.gravity.*"
}
}
jmh {
include = ['io\\.github\\.reugn\\.gravity\\.bench\\.MatcherBenchmark.*']
iterations = 1
fork = 0
threads = 1
warmupIterations = 1
}