File tree 5 files changed +10
-36
lines changed
src/main/java/com/listennotes/podcast_api
5 files changed +10
-36
lines changed Original file line number Diff line number Diff line change @@ -15,11 +15,11 @@ jobs:
15
15
runs-on : ubuntu-latest
16
16
17
17
steps :
18
- - uses : actions/checkout@v2
19
- - name : Set up JDK 11
18
+ - uses : actions/checkout@v4
19
+ - name : Set up JDK 21
20
20
uses : actions/setup-java@v2
21
21
with :
22
- java-version : ' 11 '
22
+ java-version : ' 21 '
23
23
distribution : ' adopt'
24
24
cache : gradle
25
25
- name : Grant execute permission for gradlew
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
distributionBase =GRADLE_USER_HOME
2
2
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
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ apply plugin: 'signing'
42
42
apply plugin : ' org.jetbrains.dokka'
43
43
44
44
task sourcesJar (type : Jar ) {
45
- classifier = ' sources'
45
+ archiveClassifier . set( ' sources' )
46
46
from sourceSets. main. allSource
47
47
}
48
48
Original file line number Diff line number Diff line change 18
18
import java .net .HttpURLConnection ;
19
19
import java .net .MalformedURLException ;
20
20
import java .net .ProtocolException ;
21
+ import java .net .URI ;
22
+ import java .net .URISyntaxException ;
21
23
22
24
23
25
public final class Client {
@@ -182,7 +184,9 @@ protected String getUrl(String strPath) {
182
184
public HttpURLConnection getConnection (String strUrl ) throws ListenApiException {
183
185
URL url ;
184
186
try {
185
- url = new URL (strUrl );
187
+ url = new URI (strUrl ).toURL ();
188
+ } catch (URISyntaxException e ) {
189
+ throw new InvalidRequestException ("URI Syntax error" );
186
190
} catch (MalformedURLException e ) {
187
191
throw new InvalidRequestException ("Malformed Url" );
188
192
}
You can’t perform that action at this time.
0 commit comments