Skip to content

Commit

Permalink
Dependency upgrade (#27)
Browse files Browse the repository at this point in the history
* Upgrade dependencies

* Upgrade Exasol version

---------

Co-authored-by: kaklakariada <[email protected]>
  • Loading branch information
kaklakariada and kaklakariada authored Oct 12, 2024
1 parent bd690a1 commit aedb0ba
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:

- name: Build with Java ${{ matrix.java }} with integration tests
if: ${{ env.DEFAULT_JAVA == matrix.java }}
run: ./gradlew clean build --info -PjavaVersion=${{matrix.java}}
run: ./gradlew build --info -PjavaVersion=${{matrix.java}}

- name: Sonar analysis
if: ${{ env.DEFAULT_JAVA == matrix.java && env.SONAR_TOKEN != null }}
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/dependency-submission.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Dependency Submission

on:
# Only runs on main branch
push:
branches: [ main ]

permissions:
contents: write # Required for dependency submission

jobs:
dependency-submission:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v4
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
uses: gradle/actions/setup-gradle@v4

- name: Build
run: ./gradlew build --warning-mode all
run: ./gradlew build --info --warning-mode all

- name: Publish to Maven Central
if: ${{ !inputs.skip-deploy-maven-central }}
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [0.8.0] - unreleased

- [PR #27](https://github.com/itsallcode/simple-jdbc/pull/27): Update dependencies

## [0.7.1] - 2024-09-01

- [PR #26](https://github.com/itsallcode/simple-jdbc/pull/26): Update dependencies
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ dependencies {
```

```java

// Define a model record or class
record Name(int id, String name) {
Object[] toRow() {
Expand Down Expand Up @@ -67,7 +66,7 @@ try (SimpleConnection connection = connectionFactory.create("jdbc:h2:mem:", "use
Install to local maven repository:

```sh
./gradlew clean publishToMavenLocal
./gradlew publishToMavenLocal
```

### Test Coverage
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
4 changes: 2 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ dependencyResolutionManagement {
library('assertj', 'org.assertj:assertj-core:3.26.3')
library('h2', 'com.h2database:h2:2.3.232')
library('junitPioneer', 'org.junit-pioneer:junit-pioneer:2.2.0')
library('equalsverifier', 'nl.jqno.equalsverifier:equalsverifier:3.16.2')
library('equalsverifier', 'nl.jqno.equalsverifier:equalsverifier:3.17.1')
library('tostringverifier', 'com.jparams:to-string-verifier:1.4.8')
library('hamcrest', 'org.hamcrest:hamcrest:3.0')
library('hamcrestResultSetMatcher', 'com.exasol:hamcrest-resultset-matcher:1.6.3')
library('mockito', 'org.mockito:mockito-core:5.11.0')
library('mockitoJunit', 'org.mockito:mockito-junit-jupiter:5.13.0')
library('mockitoJunit', 'org.mockito:mockito-junit-jupiter:5.14.1')
library('slf4jLogger', 'org.slf4j:slf4j-jdk14:2.0.16')
library('exasolJdbc', 'com.exasol:exasol-jdbc:24.1.2')
library('exasolTestcontainers', 'com.exasol:exasol-testcontainers:7.1.1')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

class ExasolTypeTest {

private static final ExasolContainer<?> container = new ExasolContainer<>("8.29.1")
private static final ExasolContainer<?> container = new ExasolContainer<>("8.31.0")
.withRequiredServices(ExasolService.JDBC).withReuse(true);

@BeforeAll
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import java.util.Calendar;
import java.util.Map;

@SuppressWarnings("java:S1448") // Long file required for implementing ResultSet
@SuppressWarnings({ "java:S1448", "java:S104" }) // Long file with many methods required for implementing ResultSet
class DelegatingResultSet implements ResultSet {

private final ResultSet delegate;
Expand Down

0 comments on commit aedb0ba

Please sign in to comment.