Skip to content

Commit 09e31c2

Browse files
committed
Upgrade gradle
1 parent f159bdd commit 09e31c2

File tree

5 files changed

+10
-36
lines changed

5 files changed

+10
-36
lines changed

.github/workflows/gradle.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- uses: actions/checkout@v2
19-
- name: Set up JDK 11
18+
- uses: actions/checkout@v4
19+
- name: Set up JDK 21
2020
uses: actions/setup-java@v2
2121
with:
22-
java-version: '11'
22+
java-version: '21'
2323
distribution: 'adopt'
2424
cache: gradle
2525
- name: Grant execute permission for gradlew

.travis.yml

-30
This file was deleted.
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

scripts/publish-root.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ apply plugin: 'signing'
4242
apply plugin: 'org.jetbrains.dokka'
4343

4444
task sourcesJar(type: Jar) {
45-
classifier = 'sources'
45+
archiveClassifier.set('sources')
4646
from sourceSets.main.allSource
4747
}
4848

src/main/java/com/listennotes/podcast_api/Client.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
import java.net.HttpURLConnection;
1919
import java.net.MalformedURLException;
2020
import java.net.ProtocolException;
21+
import java.net.URI;
22+
import java.net.URISyntaxException;
2123

2224

2325
public final class Client {
@@ -182,7 +184,9 @@ protected String getUrl(String strPath) {
182184
public HttpURLConnection getConnection(String strUrl) throws ListenApiException {
183185
URL url;
184186
try {
185-
url = new URL(strUrl);
187+
url = new URI(strUrl).toURL();
188+
} catch (URISyntaxException e) {
189+
throw new InvalidRequestException("URI Syntax error");
186190
} catch (MalformedURLException e) {
187191
throw new InvalidRequestException("Malformed Url");
188192
}

0 commit comments

Comments
 (0)