Skip to content

Commit

Permalink
Upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
henrya committed Nov 5, 2022
1 parent 6ba9116 commit 3a04a16
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 22 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,18 +96,18 @@ However, *htcleaner* does not check for any indexes and it is highly recommended

Execution without optional parameters. Defaults will be used instead.
~~~
java -jar htcleaner-mysql-1.0.0.jar --host=localhost --user=username --password=pass --port=3306 --database=my_schema --table=my_table
java -jar htcleaner-mysql-1.0.1.jar --host=localhost --user=username --password=pass --port=3306 --database=my_schema --table=my_table
~~~

Execution with additional parameters and optional `WHERE` statement

~~~
java -jar htcleaner-mysql-1.0.0.jar --host=localhost --user=username --password=pass --port=3306 --database=my_schema --table=my_table --limit=1000 --sleep=10000 --WHERE="AND user_id > 100"
java -jar htcleaner-mysql-1.0.1.jar --host=localhost --user=username --password=pass --port=3306 --database=my_schema --table=my_table --limit=1000 --sleep=10000 --WHERE="AND user_id > 100"
~~~

Execution without any parameters will display all the parameters, including shorthands
~~~
java -jar htcleaner-mysql-1.0.0.jar
java -jar htcleaner-mysql-1.0.1.jar
~~~

# Requirements
Expand Down
18 changes: 9 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@ repositories {
}

dependencies {
implementation 'info.picocli:picocli:4.6.3'
implementation 'mysql:mysql-connector-java:8.0.29'
implementation 'com.github.spotbugs:spotbugs-annotations:4.6.0'
testImplementation 'com.h2database:h2:2.1.212'
testImplementation 'org.assertj:assertj-core:3.22.0'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
testImplementation 'org.mockito:mockito-inline:4.5.1'
implementation 'info.picocli:picocli:4.7.0'
implementation 'mysql:mysql-connector-java:8.0.30'
implementation 'com.github.spotbugs:spotbugs-annotations:4.7.3'
testImplementation 'com.h2database:h2:2.1.214'
testImplementation 'org.assertj:assertj-core:3.23.1'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.0'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.9.0'
testImplementation 'org.mockito:mockito-inline:4.8.0'
testImplementation 'org.awaitility:awaitility:4.2.0'
testImplementation 'com.github.stefanbirkner:system-lambda:1.2.1'
}

group = 'com.henrya.tools'
version = '1.0.0'
version = '1.0.1'
description = 'htcleaner - a tool to clean large tables in the database'
java.sourceCompatibility = JavaVersion.VERSION_1_8

Expand Down
18 changes: 9 additions & 9 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.henrya.tools</groupId>
<artifactId>htcleaner</artifactId>
<version>1.0.0</version>
<version>1.0.1</version>
<name>htcleaner - a tool to clean large tables in the database</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand All @@ -13,46 +13,46 @@
<dependency>
<groupId>info.picocli</groupId>
<artifactId>picocli</artifactId>
<version>4.6.2</version>
<version>4.7.0</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.29</version>
<version>8.0.30</version>
</dependency>
<dependency>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-annotations</artifactId>
<version>4.6.0</version>
<version>4.7.3</version>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>2.1.212</version>
<version>2.1.214</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>3.22.0</version>
<version>3.23.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.8.2</version>
<version>5.9.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.8.2</version>
<version>5.9.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-inline</artifactId>
<version>4.5.1</version>
<version>4.8.0</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ void testConnectionFailure(){
assertThatThrownBy(() -> cleanerDriver.connect(cleaner.getHost(), cleaner.getPort(), cleaner.getDatabase(),
cleaner.getUser(), "abc")).isInstanceOf(
DataException.class)
.hasMessageContaining("Failed to connect: Wrong user name or password [28000-212]");
.hasMessageContaining("Failed to connect: Wrong user name or password [28000-214]");

assertThat(cleanerDriver).isNotNull();
}
Expand Down

0 comments on commit 3a04a16

Please sign in to comment.