Skip to content

Commit

Permalink
Remove Java 11 support.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbrowndotje committed Sep 19, 2023
1 parent cdeea21 commit b2fd0b3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '11', '17' ]
java: [ '17' ]

steps:
- uses: actions/checkout@v3
Expand Down
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ defaultTasks 'clean', 'build', 'getDeps', 'buildZip'

description = 'Structurizr CLI'
group = 'com.structurizr'
version = '1.33.1'
version = '1.34.0'

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

repositories {
mavenCentral()
Expand All @@ -33,7 +33,7 @@ dependencies {
implementation 'org.apache.logging.log4j:log4j-jcl:2.20.0'
implementation 'org.apache.logging.log4j:log4j-slf4j-impl:2.20.0'

testImplementation 'org.junit.jupiter:junit-jupiter:5.9.0'
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.2'

}

Expand Down
19 changes: 0 additions & 19 deletions src/main/java/com/structurizr/cli/StructurizrCliApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ public class StructurizrCliApplication {

public void run(String... args) {
try {
checkJavaVersion();

if (args == null || args.length == 0) {
printUsageMessageAndExit(null);
}
Expand Down Expand Up @@ -98,23 +96,6 @@ private void printUsageMessageAndExit(String commandName) {
System.exit(1);
}

private void checkJavaVersion() {
Set<String> versions = new HashSet<>();
versions.add("11");
versions.add("11.0.0");
versions.add("11.0.1");
versions.add("11.0.2");
versions.add("11.0.3");

String version = System.getProperty("java.version");

if (versions.contains(version)) {
log.error("The Structurizr CLI does not work with Java versions 11.0.0-11.0.3 - please upgrade your Java installation");
System.exit(1);
}

}

public static void main(String[] args) {
new StructurizrCliApplication().run(args);
}
Expand Down

0 comments on commit b2fd0b3

Please sign in to comment.