Skip to content

Commit af9cf84

Browse files
committed
1 parent 4c828ab commit af9cf84

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+268
-232
lines changed

.github/workflows/maven.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
strategy:
1919
matrix:
20-
java: [ '8' ]
20+
java: [ 17, 21 ]
2121
steps:
2222
- uses: actions/checkout@v4
2323
- name: Set up JDK

.openapi-generator/VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.5.0-SNAPSHOT
1+
7.6.0-SNAPSHOT

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
dofusdude
44
- API version: 0.9.0
5-
- Build date: 2024-04-07T21:36:12.182827189Z[Etc/UTC]
6-
- Generator version: 7.5.0-SNAPSHOT
5+
- Build date: 2024-05-07T10:01:07.705593984Z[Etc/UTC]
6+
- Generator version: 7.6.0-SNAPSHOT
77

88
# A project for you - the developer.
99
The all-in-one toolbelt for your next Ankama related project.

gradle/wrapper/gradle-wrapper.jar

-15.7 KB
Binary file not shown.
+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
46
zipStoreBase=GRADLE_USER_HOME
57
zipStorePath=wrapper/dists

gradlew

+102-87
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
# Darwin, MinGW, and NonStop.
5656
#
5757
# (3) This script is generated from the Groovy template
58-
# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
58+
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
5959
# within the Gradle project.
6060
#
6161
# You can find Gradle at https://github.com/gradle/gradle/.
@@ -69,37 +69,35 @@ app_path=$0
6969

7070
# Need this for daisy-chained symlinks.
7171
while
72-
APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
73-
[ -h "$app_path" ]
72+
APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
73+
[ -h "$app_path" ]
7474
do
75-
ls=$( ls -ld "$app_path" )
76-
link=${ls#*' -> '}
77-
case $link in #(
78-
/*) app_path=$link ;; #(
79-
*) app_path=$APP_HOME$link ;;
80-
esac
75+
ls=$( ls -ld "$app_path" )
76+
link=${ls#*' -> '}
77+
case $link in #(
78+
/*) app_path=$link ;; #(
79+
*) app_path=$APP_HOME$link ;;
80+
esac
8181
done
8282

83-
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
84-
85-
APP_NAME="Gradle"
83+
# This is normally unused
84+
# shellcheck disable=SC2034
8685
APP_BASE_NAME=${0##*/}
87-
88-
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
89-
DEFAULT_JVM_OPTS='-Dfile.encoding=UTF-8 "-Xmx64m" "-Xms64m"'
86+
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
87+
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
9088

9189
# Use the maximum available, or set MAX_FD != -1 to use that value.
9290
MAX_FD=maximum
9391

9492
warn () {
95-
echo "$*"
93+
echo "$*"
9694
} >&2
9795

9896
die () {
99-
echo
100-
echo "$*"
101-
echo
102-
exit 1
97+
echo
98+
echo "$*"
99+
echo
100+
exit 1
103101
} >&2
104102

105103
# OS specific support (must be 'true' or 'false').
@@ -108,50 +106,57 @@ msys=false
108106
darwin=false
109107
nonstop=false
110108
case "$( uname )" in #(
111-
CYGWIN* ) cygwin=true ;; #(
112-
Darwin* ) darwin=true ;; #(
113-
MSYS* | MINGW* ) msys=true ;; #(
114-
NONSTOP* ) nonstop=true ;;
109+
CYGWIN* ) cygwin=true ;; #(
110+
Darwin* ) darwin=true ;; #(
111+
MSYS* | MINGW* ) msys=true ;; #(
112+
NONSTOP* ) nonstop=true ;;
115113
esac
116114

117115
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
118116

119117

120118
# Determine the Java command to use to start the JVM.
121119
if [ -n "$JAVA_HOME" ] ; then
122-
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
123-
# IBM's JDK on AIX uses strange locations for the executables
124-
JAVACMD=$JAVA_HOME/jre/sh/java
125-
else
126-
JAVACMD=$JAVA_HOME/bin/java
127-
fi
128-
if [ ! -x "$JAVACMD" ] ; then
129-
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
120+
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
121+
# IBM's JDK on AIX uses strange locations for the executables
122+
JAVACMD=$JAVA_HOME/jre/sh/java
123+
else
124+
JAVACMD=$JAVA_HOME/bin/java
125+
fi
126+
if [ ! -x "$JAVACMD" ] ; then
127+
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
130128
131129
Please set the JAVA_HOME variable in your environment to match the
132130
location of your Java installation."
133-
fi
131+
fi
134132
else
135-
JAVACMD=java
136-
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
133+
JAVACMD=java
134+
if ! command -v java >/dev/null 2>&1
135+
then
136+
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
137137
138138
Please set the JAVA_HOME variable in your environment to match the
139139
location of your Java installation."
140140
fi
141+
fi
141142

142143
# Increase the maximum file descriptors if we can.
143144
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144-
case $MAX_FD in #(
145-
max*)
146-
MAX_FD=$( ulimit -H -n ) ||
147-
warn "Could not query maximum file descriptor limit"
148-
esac
149-
case $MAX_FD in #(
150-
'' | soft) :;; #(
151-
*)
152-
ulimit -n "$MAX_FD" ||
153-
warn "Could not set maximum file descriptor limit to $MAX_FD"
154-
esac
145+
case $MAX_FD in #(
146+
max*)
147+
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
148+
# shellcheck disable=SC2039,SC3045
149+
MAX_FD=$( ulimit -H -n ) ||
150+
warn "Could not query maximum file descriptor limit"
151+
esac
152+
case $MAX_FD in #(
153+
'' | soft) :;; #(
154+
*)
155+
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
156+
# shellcheck disable=SC2039,SC3045
157+
ulimit -n "$MAX_FD" ||
158+
warn "Could not set maximum file descriptor limit to $MAX_FD"
159+
esac
155160
fi
156161

157162
# Collect all arguments for the java command, stacking in reverse order:
@@ -164,46 +169,56 @@ fi
164169

165170
# For Cygwin or MSYS, switch paths to Windows format before running java
166171
if "$cygwin" || "$msys" ; then
167-
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
168-
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
169-
170-
JAVACMD=$( cygpath --unix "$JAVACMD" )
171-
172-
# Now convert the arguments - kludge to limit ourselves to /bin/sh
173-
for arg do
174-
if
175-
case $arg in #(
176-
-*) false ;; # don't mess with options #(
177-
/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
178-
[ -e "$t" ] ;; #(
179-
*) false ;;
180-
esac
181-
then
182-
arg=$( cygpath --path --ignore --mixed "$arg" )
183-
fi
184-
# Roll the args list around exactly as many times as the number of
185-
# args, so each arg winds up back in the position where it started, but
186-
# possibly modified.
187-
#
188-
# NB: a `for` loop captures its iteration list before it begins, so
189-
# changing the positional parameters here affects neither the number of
190-
# iterations, nor the values presented in `arg`.
191-
shift # remove old arg
192-
set -- "$@" "$arg" # push replacement arg
193-
done
172+
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
173+
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
174+
175+
JAVACMD=$( cygpath --unix "$JAVACMD" )
176+
177+
# Now convert the arguments - kludge to limit ourselves to /bin/sh
178+
for arg do
179+
if
180+
case $arg in #(
181+
-*) false ;; # don't mess with options #(
182+
/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
183+
[ -e "$t" ] ;; #(
184+
*) false ;;
185+
esac
186+
then
187+
arg=$( cygpath --path --ignore --mixed "$arg" )
188+
fi
189+
# Roll the args list around exactly as many times as the number of
190+
# args, so each arg winds up back in the position where it started, but
191+
# possibly modified.
192+
#
193+
# NB: a `for` loop captures its iteration list before it begins, so
194+
# changing the positional parameters here affects neither the number of
195+
# iterations, nor the values presented in `arg`.
196+
shift # remove old arg
197+
set -- "$@" "$arg" # push replacement arg
198+
done
194199
fi
195200

196-
# Collect all arguments for the java command;
197-
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
198-
# shell script including quotes and variable substitutions, so put them in
199-
# double quotes to make sure that they get re-expanded; and
200-
# * put everything else in single quotes, so that it's not re-expanded.
201+
202+
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
203+
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
204+
205+
# Collect all arguments for the java command:
206+
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
207+
# and any embedded shellness will be escaped.
208+
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
209+
# treated as '${Hostname}' itself on the command line.
201210

202211
set -- \
203-
"-Dorg.gradle.appname=$APP_BASE_NAME" \
204-
-classpath "$CLASSPATH" \
205-
org.gradle.wrapper.GradleWrapperMain \
206-
"$@"
212+
"-Dorg.gradle.appname=$APP_BASE_NAME" \
213+
-classpath "$CLASSPATH" \
214+
org.gradle.wrapper.GradleWrapperMain \
215+
"$@"
216+
217+
# Stop when "xargs" is not available.
218+
if ! command -v xargs >/dev/null 2>&1
219+
then
220+
die "xargs is not available"
221+
fi
207222

208223
# Use "xargs" to parse quoted args.
209224
#
@@ -225,10 +240,10 @@ set -- \
225240
#
226241

227242
eval "set -- $(
228-
printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
229-
xargs -n1 |
230-
sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
231-
tr '\n' ' '
232-
)" '"$@"'
243+
printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
244+
xargs -n1 |
245+
sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
246+
tr '\n' ' '
247+
)" '"$@"'
233248

234249
exec "$JAVACMD" "$@"

gradlew.bat

+20-17
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
@rem limitations under the License.
1515
@rem
1616

17-
@if "%DEBUG%" == "" @echo off
17+
@if "%DEBUG%"=="" @echo off
1818
@rem ##########################################################################
1919
@rem
2020
@rem Gradle startup script for Windows
@@ -25,28 +25,29 @@
2525
if "%OS%"=="Windows_NT" setlocal
2626

2727
set DIRNAME=%~dp0
28-
if "%DIRNAME%" == "" set DIRNAME=.
28+
if "%DIRNAME%"=="" set DIRNAME=.
29+
@rem This is normally unused
2930
set APP_BASE_NAME=%~n0
3031
set APP_HOME=%DIRNAME%
3132

3233
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
3334
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
3435

3536
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
36-
set DEFAULT_JVM_OPTS=-Dfile.encoding=UTF-8 "-Xmx64m" "-Xms64m"
37+
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
3738

3839
@rem Find java.exe
3940
if defined JAVA_HOME goto findJavaFromJavaHome
4041

4142
set JAVA_EXE=java.exe
4243
%JAVA_EXE% -version >NUL 2>&1
43-
if "%ERRORLEVEL%" == "0" goto execute
44+
if %ERRORLEVEL% equ 0 goto execute
4445

45-
echo.
46-
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
47-
echo.
48-
echo Please set the JAVA_HOME variable in your environment to match the
49-
echo location of your Java installation.
46+
echo. 1>&2
47+
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
48+
echo. 1>&2
49+
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
50+
echo location of your Java installation. 1>&2
5051

5152
goto fail
5253

@@ -56,11 +57,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
5657

5758
if exist "%JAVA_EXE%" goto execute
5859

59-
echo.
60-
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
61-
echo.
62-
echo Please set the JAVA_HOME variable in your environment to match the
63-
echo location of your Java installation.
60+
echo. 1>&2
61+
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
62+
echo. 1>&2
63+
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
64+
echo location of your Java installation. 1>&2
6465

6566
goto fail
6667

@@ -75,13 +76,15 @@ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
7576

7677
:end
7778
@rem End local scope for the variables with windows NT shell
78-
if "%ERRORLEVEL%"=="0" goto mainEnd
79+
if %ERRORLEVEL% equ 0 goto mainEnd
7980

8081
:fail
8182
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
8283
rem the _cmd.exe /c_ return code!
83-
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
84-
exit /b 1
84+
set EXIT_CODE=%ERRORLEVEL%
85+
if %EXIT_CODE% equ 0 set EXIT_CODE=1
86+
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
87+
exit /b %EXIT_CODE%
8588

8689
:mainEnd
8790
if "%OS%"=="Windows_NT" endlocal

src/main/java/com/dofusdude/client/ApiClient.java

+13
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,19 @@ public void setAWS4Configuration(String accessKey, String secretKey, String regi
465465
throw new RuntimeException("No AWS4 authentication configured!");
466466
}
467467

468+
/**
469+
* Helper method to set credentials for AWSV4 Signature
470+
*
471+
* @param accessKey Access Key
472+
* @param secretKey Secret Key
473+
* @param sessionToken Session Token
474+
* @param region Region
475+
* @param service Service to access to
476+
*/
477+
public void setAWS4Configuration(String accessKey, String secretKey, String sessionToken, String region, String service) {
478+
throw new RuntimeException("No AWS4 authentication configured!");
479+
}
480+
468481
/**
469482
* Set the User-Agent header's value (by adding to the default header map).
470483
*

0 commit comments

Comments
 (0)