Skip to content

Commit bc0a245

Browse files
authored
Merge pull request #168 from atlassian/noissue/fix-JDK-build
Set JDK to 1.8 in branch build
2 parents 2114b3e + f73de0f commit bc0a245

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/gradle.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ jobs:
66
steps:
77
- uses: actions/checkout@v4
88

9-
- name: Set up JDK 17
9+
- name: Set up JDK 1.8
1010
uses: actions/setup-java@v4
1111
with:
12-
java-version: '17'
12+
java-version: '8'
1313
distribution: 'adopt'
1414

1515
- name: Grant execute permission for gradlew

src/main/kotlin/com/atlassian/onetime/service/TOTPService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class DefaultTOTPService(
9191
}
9292

9393
fun String.urlEncode(): String =
94-
URLEncoder.encode(this, Charsets.UTF_8)
94+
URLEncoder.encode(this, Charsets.UTF_8.name())
9595
.replace("+", "%20")
9696
.replace("*", "%2A")
9797
.replace("%7E", "~")

0 commit comments

Comments
 (0)