Skip to content

Commit

Permalink
upgrade to java 17
Browse files Browse the repository at this point in the history
  • Loading branch information
melaasar committed Jul 9, 2024
1 parent af2bb73 commit 778a947
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 15 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ subprojects {
apply plugin: 'idea'
apply from: "${rootDir}/gradle/maven-deployment.gradle"

sourceCompatibility = '11'
targetCompatibility = '11'
sourceCompatibility = '17'
targetCompatibility = '17'

java {
withJavadocJar()
Expand Down
3 changes: 0 additions & 3 deletions owl-doc-gradle/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,3 @@ dependencies {
implementation "xml-resolver:xml-resolver:${versions.xmlresolver}"
implementation "commons-io:commons-io:${versions.commonsIo}"
}

sourceCompatibility = '17'
targetCompatibility = '17'
6 changes: 1 addition & 5 deletions owl-doc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,4 @@ dependencies {
implementation "org.jsoup:jsoup:${versions.jsoup}"
implementation "org.jgrapht:jgrapht-core:${versions.jgrapht}"

}

sourceCompatibility = '17'
targetCompatibility = '17'

}
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ public void run() {
args.add("-n");
args.add(getIndent().get().toString());
}
if (getOmitExplanations().get()) {
if (getOmitExplanations().isPresent() && getOmitExplanations().get()) {
args.add("-oe");
}
if (getDebug().isPresent() && getDebug().get()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,10 @@ private static class Options {
private boolean debug;

@Parameter(
names = {"--omit-explanations", "-oe"},
description = "Omit explanations of inconsistency and unsatisfiability",
order = 15)
private boolean omitExplanations = false;
names = {"--omit-explanations", "-oe"},
description = "Omit explanations of inconsistency and unsatisfiability",
order = 15)
private boolean omitExplanations = false;

@Parameter(
names = {"--help", "-h"},
Expand Down

0 comments on commit 778a947

Please sign in to comment.