Skip to content

Commit 134032a

Browse files
authored
#51 Upgrade dependencies (#52)
1 parent 3d0c2c5 commit 134032a

File tree

10 files changed

+63
-42
lines changed

10 files changed

+63
-42
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ pom.xml.versionsBackup
44
# Eclipse and Maven
55
.classpath
66
.project
7+
/.settings/org.eclipse.jdt.apt.core.prefs
78
# .settings : we need Eclipse settings for code formatter and clean-up rules
89
target
910
.cache

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,9 @@
1313
"vmArgs": [
1414
"-Djava.util.logging.config.file=src/test/resources/logging.properties"
1515
]
16+
},
17+
"sonarlint.connectedMode.project": {
18+
"connectionId": "exasol",
19+
"projectKey": "com.exasol:udf-debugging-java"
1620
}
1721
}

doc/changes/changelog.md

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc/changes/changes_0.6.7.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Udf Debugging Java 0.6.7, released 2023-01-20
2+
3+
Code name: Upgrade dependencies on top of 0.6.6
4+
5+
## Summary
6+
7+
This release upgrades dependencies incl. exasol-test-setup-abstraction-java 2.0.0 to adapt to the updated API.
8+
9+
## Features
10+
11+
* #51: Updated to exasol-test-setup-abstraction-java 2.0.0
12+
13+
## Dependency Updates
14+
15+
### Test Dependency Updates
16+
17+
* Updated `com.exasol:exasol-testcontainers:6.4.1` to `6.5.0`
18+
* Updated `com.exasol:test-db-builder-java:3.4.1` to `3.4.2`
19+
* Updated `org.junit.jupiter:junit-jupiter-engine:5.9.1` to `5.9.2`
20+
* Updated `org.junit.jupiter:junit-jupiter-params:5.9.1` to `5.9.2`
21+
* Updated `org.mockito:mockito-junit-jupiter:4.10.0` to `5.0.0`

pk_generated_parent.pom

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pom.xml

Lines changed: 27 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,18 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
35
<modelVersion>4.0.0</modelVersion>
46
<artifactId>udf-debugging-java</artifactId>
5-
<version>0.6.6</version>
7+
<version>0.6.7</version>
68
<name>udf-debugging-java</name>
79
<description>Utilities for debugging, profiling and code coverage measure for UDFs.</description>
810
<url>https://github.com/exasol/udf-debugging-java/</url>
911
<properties>
10-
<junit.version>5.9.1</junit.version>
12+
<junit.version>5.9.2</junit.version>
1113
<vscommon.version>11.0.0</vscommon.version>
1214
<jacoco.version>0.8.8</jacoco.version>
13-
<surefire.and.failsafe.plugin.version>3.0.0-M4</surefire.and.failsafe.plugin.version>
1415
</properties>
15-
<licenses>
16-
<license>
17-
<name>MIT</name>
18-
<url>https://opensource.org/licenses/MIT</url>
19-
<distribution>repo</distribution>
20-
</license>
21-
</licenses>
22-
<developers>
23-
<developer>
24-
<name>Exasol</name>
25-
<email>opensource@exasol.com</email>
26-
<organization>Exasol AG</organization>
27-
<organizationUrl>https://www.exasol.com/</organizationUrl>
28-
</developer>
29-
</developers>
3016
<distributionManagement>
3117
<snapshotRepository>
3218
<id>ossrh</id>
@@ -37,11 +23,6 @@
3723
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
3824
</repository>
3925
</distributionManagement>
40-
<scm>
41-
<connection>scm:git:https://github.com/exasol/udf-debugging-java.git</connection>
42-
<developerConnection>scm:git:https://github.com/exasol/udf-debugging-java.git</developerConnection>
43-
<url>https://github.com/exasol/udf-debugging-java/tree/master</url>
44-
</scm>
4526
<dependencies>
4627
<dependency>
4728
<groupId>jakarta.json</groupId>
@@ -79,10 +60,13 @@
7960
<dependency>
8061
<groupId>com.exasol</groupId>
8162
<artifactId>exasol-test-setup-abstraction-java</artifactId>
82-
<version>1.1.1</version>
83-
<!-- This is not a compile-dependency since it would pull a lot of transitive dependencies (like the AWS
84-
SDK) into project where it's absolutely not needed. That's possible since we only use the classes from this
85-
dependencies in methods that are ment to be used with the exasol-test-setup-abstraction-java. -->
63+
<version>2.0.0</version>
64+
<!-- This is not a compile-dependency since it would pull a lot of transitive
65+
dependencies (like the AWS
66+
SDK) into project where it's absolutely not
67+
needed. That's possible since we only use the classes from this
68+
dependencies
69+
in methods that are ment to be used with the exasol-test-setup-abstraction-java. -->
8670
<scope>provided</scope>
8771
</dependency>
8872
<dependency>
@@ -111,7 +95,7 @@
11195
<dependency>
11296
<groupId>org.mockito</groupId>
11397
<artifactId>mockito-junit-jupiter</artifactId>
114-
<version>4.10.0</version>
98+
<version>5.0.0</version>
11599
<scope>test</scope>
116100
</dependency>
117101
<dependency>
@@ -124,7 +108,7 @@
124108
<dependency>
125109
<groupId>com.exasol</groupId>
126110
<artifactId>exasol-testcontainers</artifactId>
127-
<version>6.4.1</version>
111+
<version>6.5.0</version>
128112
<scope>test</scope>
129113
</dependency>
130114
<dependency>
@@ -136,7 +120,7 @@
136120
<dependency>
137121
<groupId>com.exasol</groupId>
138122
<artifactId>test-db-builder-java</artifactId>
139-
<version>3.4.1</version>
123+
<version>3.4.2</version>
140124
<scope>test</scope>
141125
</dependency>
142126
<dependency>
@@ -181,11 +165,20 @@
181165
<plugin>
182166
<groupId>org.sonatype.ossindex.maven</groupId>
183167
<artifactId>ossindex-maven-plugin</artifactId>
184-
<!-- io.netty:netty-handler:
185-
Not a vulnerability in netty but how it is configured by the client software.amazon.awssdk:netty-nio-client. -->
186168
<configuration>
187169
<excludeVulnerabilityIds>
170+
<!-- io.netty:netty-handler: Not a vulnerability in netty but how it
171+
is
172+
configured by the client software.amazon.awssdk:netty-nio-client. We are not
173+
affected, see https://github.com/aws/aws-sdk-java-v2/issues/3263 for details -->
188174
<exclude>sonatype-2020-0026</exclude>
175+
<!-- Transitive dependency fr.turri:aXMLRPC used by
176+
com.exasol:bucketfs-java.
177+
CVE-2020-36641 is reported
178+
to be fixed in aXMLRPC 1.12.1. We use version 1.13.0,
179+
so
180+
this is a false positive. -->
181+
<exclude>CVE-2020-36641</exclude>
189182
</excludeVulnerabilityIds>
190183
</configuration>
191184
</plugin>
@@ -194,7 +187,7 @@
194187
<parent>
195188
<artifactId>udf-debugging-java-generated-parent</artifactId>
196189
<groupId>com.exasol</groupId>
197-
<version>0.6.6</version>
190+
<version>0.6.7</version>
198191
<relativePath>pk_generated_parent.pom</relativePath>
199192
</parent>
200193
</project>

src/main/java/com/exasol/udfdebugging/UdfTestSetup.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
import com.exasol.bucketfs.Bucket;
1212
import com.exasol.exasoltestsetup.ExasolTestSetup;
13-
import com.exasol.exasoltestsetup.ServiceAddress;
1413
import com.exasol.udfdebugging.modules.coverage.CoverageModuleFactory;
1514
import com.exasol.udfdebugging.modules.debugging.DebuggingModuleFactory;
1615
import com.exasol.udfdebugging.modules.jprofiler.JProfilerModuleFactory;
@@ -59,7 +58,7 @@ private UdfTestSetup(final LocalServiceExposer localServiceExposer, final Bucket
5958
*/
6059
public UdfTestSetup(final ExasolTestSetup testSetup, final Connection exasolConnection) {
6160
this(port -> {
62-
final ServiceAddress serviceAddress = testSetup.makeLocalTcpServiceAccessibleFromDatabase(port);
61+
final InetSocketAddress serviceAddress = testSetup.makeLocalTcpServiceAccessibleFromDatabase(port);
6362
return new InetSocketAddress(serviceAddress.getHostName(), serviceAddress.getPort());
6463
}, testSetup.getDefaultBucket(), exasolConnection);
6564
}

src/test/java/com/exasol/udfdebugging/UdfTestSetupTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
import static org.hamcrest.CoreMatchers.*;
44
import static org.hamcrest.MatcherAssert.assertThat;
5+
import static org.mockito.ArgumentMatchers.anyInt;
56
import static org.mockito.Mockito.*;
67

8+
import java.net.InetSocketAddress;
79
import java.sql.*;
810
import java.util.List;
911

@@ -17,7 +19,6 @@
1719

1820
import com.exasol.bucketfs.Bucket;
1921
import com.exasol.exasoltestsetup.ExasolTestSetup;
20-
import com.exasol.exasoltestsetup.ServiceAddress;
2122

2223
@ExtendWith(MockitoExtension.class)
2324
@ExtendWith(SystemOutGuard.class)
@@ -56,7 +57,7 @@ void testGetTestSetupForETAJ() {
5657
final Bucket bucket = mock(Bucket.class);
5758
when(testSetup.getDefaultBucket()).thenReturn(bucket);
5859
when(testSetup.makeLocalTcpServiceAccessibleFromDatabase(anyInt()))
59-
.thenReturn(new ServiceAddress("4.3.2.1", 123));
60+
.thenReturn(new InetSocketAddress("4.3.2.1", 123));
6061
try (final UdfTestSetup udfTestSetup = new UdfTestSetup(testSetup, this.connection)) {
6162
final List<String> jvmOptions = List.of(udfTestSetup.getJvmOptions());
6263
assertThat(jvmOptions, hasItem(

src/test/java/com/exasol/udfdebugging/modules/coverage/CoverageModuleIT.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ class CoverageModuleIT {
1818
@Test
1919
void testCoverageReportIsWritten() throws SQLException, IOException {
2020
deleteExecutionFile();
21-
final TestSetup udfSetup = new TestSetup();
22-
try (final CoverageModule coverageModule = new CoverageModule(udfSetup.getHostPortProxy(),
23-
udfSetup.getDefaultBucket())) {
21+
try (final TestSetup udfSetup = new TestSetup();
22+
final CoverageModule coverageModule = new CoverageModule(udfSetup.getHostPortProxy(),
23+
udfSetup.getDefaultBucket())) {
2424
udfSetup.runJavaUdf(coverageModule.getJvmOptions(), "");
2525
assertThat(countReportedJacocoSessions(), equalTo(1));
2626
}

src/test/java/com/exasol/udfdebugging/modules/udflogs/UdfLogsModuleIT.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
class UdfLogsModuleIT {
1515

16+
// This will fail when the test does not run on Docker host, e.g. on Windows or macOS.
1617
@Test
1718
void testGetLog() throws SQLException, IOException {
1819
try (final TestSetup testSetup = new TestSetup();

0 commit comments

Comments
 (0)