Skip to content

Commit

Permalink
Target of v3 is Java 17
Browse files Browse the repository at this point in the history
  • Loading branch information
mkarg committed Oct 27, 2024
1 parent f9fee7f commit a0f9a78
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 11
java-version: 17
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
Expand Down
2 changes: 1 addition & 1 deletion README.markdown
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
JCommander
==========

This is an annotation based parameter parsing framework for Java 8 (JCommander 1.x) and 11 (JCommander 2.x).
This is an annotation based parameter parsing framework for Java 8 (JCommander 1.x), 11 (JCommander 2.x) and 17 (JCommander 3.x).

Here is a quick example:

Expand Down
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ buildscript {
}

java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

repositories {
Expand Down
4 changes: 2 additions & 2 deletions kobalt/src/Build.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ val jcommander = project {
name = "jcommander"
group = "com.beust"
artifactId = name
version = "1.78"
version = "3.0"
description = "A Java library to parse command line options"

dependenciesTest {
Expand All @@ -26,7 +26,7 @@ val jcommander = project {
}

javaCompiler {
args("-target", "11", "-source", "11", "-g", "-encoding", "utf-8")
args("-target", "17", "-source", "17", "-g", "-encoding", "utf-8")
}

osgi {}
Expand Down
2 changes: 1 addition & 1 deletion misc.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_6" default="false" assert-keyword="true" jdk-15="true" project-jdk-name="11" project-jdk-type="JavaSDK" />
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_6" default="false" assert-keyword="true" jdk-15="true" project-jdk-name="17" project-jdk-type="JavaSDK" />
</project>

0 comments on commit a0f9a78

Please sign in to comment.