Skip to content

Commit

Permalink
- Removed code that was marked as deprecated.
Browse files Browse the repository at this point in the history
- Bumped dependencies
- Updated Gradle Wrapper to version 8.5
  • Loading branch information
glasen committed Apr 12, 2024
1 parent 8c86eac commit ee33df1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//file:noinspection GradlePackageUpdate
plugins {
id 'java'
id 'java-library-distribution'
id('java')
id('java-library-distribution')
}

repositories {
Expand All @@ -10,10 +10,10 @@ repositories {
}

dependencies {
implementation('org.slf4j:slf4j-nop:2.0.11')
implementation('com.github.davidmoten:subethasmtp:7.0.1')
implementation('jakarta.mail:jakarta.mail-api:2.1.2')
implementation('io.github.hakky54:sslcontext-kickstart-for-pem:8.3.2')
implementation('org.slf4j:slf4j-nop:2.0.12')
implementation('com.github.davidmoten:subethasmtp:7.0.2')
implementation('jakarta.mail:jakarta.mail-api:2.1.3')
implementation('io.github.hakky54:sslcontext-kickstart-for-pem:8.3.4')
implementation('com.google.code.gson:gson:2.10.1')
implementation('net.sourceforge.argparse4j:argparse4j:0.9.0')
implementation('org.jsoup:jsoup:1.17.2')
Expand Down
5 changes: 2 additions & 3 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#Fri Apr 12 18:28:31 CEST 2024
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
networkTimeout=10000
validateDistributionUrl=true
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
3 changes: 2 additions & 1 deletion src/main/java/rocketgateway/rocketchat/RocketConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import java.io.IOException;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URI;
import java.net.URL;

public class RocketConnection implements AutoCloseable {
Expand All @@ -30,7 +31,7 @@ public RocketConnection(String serverURL) {
* @throws IOException Thrown when something went wrong.
*/
public void open(HTTPMethods method, String apiPath, RequestType requestType) throws IOException {
this.url = new URL(serverURL + apiPath);
this.url = URI.create(serverURL + apiPath).toURL();
this.con = (HttpURLConnection) url.openConnection();

switch (requestType) {
Expand Down

0 comments on commit ee33df1

Please sign in to comment.