Skip to content

Commit

Permalink
build: Update compilation version compatibility (#436)
Browse files Browse the repository at this point in the history
  • Loading branch information
stepansergeevitch authored Jul 3, 2024
1 parent 939e800 commit 3f9974c
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ java {
}

compileJava {
sourceCompatibility = '11'
targetCompatibility = '11'
sourceCompatibility = '17'
targetCompatibility = '17'
}

configurations {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version=3.0.4-SNAPSHOT
version=3.1.1
jdbcVersion=4.3
2 changes: 1 addition & 1 deletion src/test/java/com/firebolt/FireboltDriverTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 2 additions & 4 deletions src/test/java/com/firebolt/jdbc/util/VersionUtilTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 3f9974c

Please sign in to comment.