From 3f9974ca6928069bfddfcc9c7c52a336149cbd50 Mon Sep 17 00:00:00 2001 From: Stepan Burlakov Date: Wed, 3 Jul 2024 12:09:32 +0300 Subject: [PATCH] build: Update compilation version compatibility (#436) --- .github/workflows/release.yml | 2 +- build.gradle | 4 ++-- gradle.properties | 2 +- src/test/java/com/firebolt/FireboltDriverTest.java | 2 +- .../jdbc/metadata/FireboltDatabaseMetadataTest.java | 4 ++-- src/test/java/com/firebolt/jdbc/util/VersionUtilTest.java | 6 ++---- 6 files changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e632b014e..54570a393 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,7 +36,7 @@ jobs: file: ${{ needs.build.outputs.uber-jar }} tags: true draft: false - - name: Deploy to Repsy repository + - name: Deploy to Maven Central repository run: ./gradlew publish env: MAVEN_REPO_USERNAME: ${{ secrets.MAVEN_REPO_USERNAME }} diff --git a/build.gradle b/build.gradle index 8b6e7f300..721ce6a69 100644 --- a/build.gradle +++ b/build.gradle @@ -28,8 +28,8 @@ java { } compileJava { - sourceCompatibility = '11' - targetCompatibility = '11' + sourceCompatibility = '17' + targetCompatibility = '17' } configurations { diff --git a/gradle.properties b/gradle.properties index 749134fd2..79bf72343 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,2 @@ -version=3.0.4-SNAPSHOT +version=3.1.1 jdbcVersion=4.3 \ No newline at end of file diff --git a/src/test/java/com/firebolt/FireboltDriverTest.java b/src/test/java/com/firebolt/FireboltDriverTest.java index 7808418f4..4f3096780 100644 --- a/src/test/java/com/firebolt/FireboltDriverTest.java +++ b/src/test/java/com/firebolt/FireboltDriverTest.java @@ -93,7 +93,7 @@ void jdbcCompliant() { void version() { FireboltDriver fireboltDriver = new FireboltDriver(); assertEquals(3, fireboltDriver.getMajorVersion()); - assertEquals(0, fireboltDriver.getMinorVersion()); + assertEquals(1, fireboltDriver.getMinorVersion()); } @ParameterizedTest diff --git a/src/test/java/com/firebolt/jdbc/metadata/FireboltDatabaseMetadataTest.java b/src/test/java/com/firebolt/jdbc/metadata/FireboltDatabaseMetadataTest.java index 806a25c7f..6825e1976 100644 --- a/src/test/java/com/firebolt/jdbc/metadata/FireboltDatabaseMetadataTest.java +++ b/src/test/java/com/firebolt/jdbc/metadata/FireboltDatabaseMetadataTest.java @@ -348,12 +348,12 @@ void shouldGetDriverMajorVersion() { @Test void shouldGetDriverMinorVersion() { - assertEquals(0, fireboltDatabaseMetadata.getDriverMinorVersion()); + assertEquals(1, fireboltDatabaseMetadata.getDriverMinorVersion()); } @Test void shouldGetDriverVersion() throws SQLException { - assertEquals("3.0.4-SNAPSHOT", fireboltDatabaseMetadata.getDriverVersion()); + assertEquals("3.1.1", fireboltDatabaseMetadata.getDriverVersion()); } @Test diff --git a/src/test/java/com/firebolt/jdbc/util/VersionUtilTest.java b/src/test/java/com/firebolt/jdbc/util/VersionUtilTest.java index dbb4257e5..ae4a27381 100644 --- a/src/test/java/com/firebolt/jdbc/util/VersionUtilTest.java +++ b/src/test/java/com/firebolt/jdbc/util/VersionUtilTest.java @@ -13,13 +13,11 @@ void shouldGetDriverMajorVersion() { @Test void shouldGetDriverMinorVersion() { - assertEquals(0, VersionUtil.getDriverMinorVersion()); + assertEquals(1, VersionUtil.getDriverMinorVersion()); } @Test - void shouldGetProjectVersion() { - assertEquals("3.0.4-SNAPSHOT", VersionUtil.getDriverVersion()); - } + void shouldGetProjectVersion() { assertEquals("3.1.1", VersionUtil.getDriverVersion()); } @Test void shouldGetMinorVersionFromString() {