Skip to content

Commit

Permalink
bump tika version
Browse files Browse the repository at this point in the history
  • Loading branch information
paulk-asert committed Dec 13, 2023
1 parent 368128f commit 35abf43
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 15 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ opennlpVersion = 2.2.0
slf4jVersion = 2.0.9
smileVersion = 3.0.2
tablesawVersion = 0.43.1
tikaVersion = 2.8.0
tikaVersion = 2.9.1
tribuoVersion = 4.3.1
wekaVersion = 3.9.6
25 changes: 11 additions & 14 deletions subprojects/LanguageProcessing/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,24 +42,16 @@ dependencies {
runtimeOnly "org.slf4j:slf4j-simple:$slf4jVersion"
}

tasks.register('checkJdk11Compatibility') {
doLast {
assert JavaVersion.current().isJava11Compatible(), "JDK11+ is required but found ${JavaVersion.current()}!"
}
}

tasks.register('checkJdk8Exactly') {
doLast {
assert JavaVersion.current().isJava8(), "JDK8 is required but found ${JavaVersion.current()}!"
}
def runall = tasks.register('runAll') {
group 'Application'
}

FileUtil.baseNames(sourceSets.main.allSource.files, ['ResourceHelper']).each { name ->
tasks.register("run$name", JavaExec) {
FileUtil.baseNames(sourceSets.main.allSource.files, ['ResourceHelper','OutputTransforms']).each { name ->
if (name.endsWith('JDK11') && !JavaVersion.current().isJava11Compatible()) return
if (name.endsWith('JDK8only') && !JavaVersion.current().isJava8()) return
def subtask = tasks.register("run$name", JavaExec) {
group 'Application'
dependsOn compileGroovy
if (name.endsWith('JDK11')) dependsOn(checkJdk11Compatibility)
if (name.endsWith('JDK8only')) dependsOn(checkJdk8Exactly)
description "Run ${name}.groovy as a JVM application/Groovy script"
classpath = sourceSets.main.runtimeClasspath
mainClass = name
Expand All @@ -69,4 +61,9 @@ FileUtil.baseNames(sourceSets.main.allSource.files, ['ResourceHelper']).each { n
if (name.contains('OpenNLP')) logger.lifecycle "Using OpenNLP version $opennlp"
}
}
if (name != 'DetectLanguageWithFail') {
runall.configure {
dependsOn subtask
}
}
}

0 comments on commit 35abf43

Please sign in to comment.