@@ -31,7 +31,13 @@ declare -r LOG_DIR="${BIN_DIR}"
31
31
declare -r CURL=' curl'
32
32
declare -r CURL_FLAGS=(' -SL' )
33
33
declare -r DIKTAT_JAR_WILDCARD=' diktat-*.jar'
34
+ declare -r DIKTAT_VERSION_TAG=' v1.2.3'
34
35
declare -r KTLINT_EXECUTABLE=' ktlint'
36
+ # We stick to version 0.46.1 because of
37
+ # https://github.com/pinterest/ktlint/issues/1599,
38
+ # https://github.com/pinterest/ktlint/issues/1600, and
39
+ # https://github.com/pinterest/ktlint/issues/1601.
40
+ declare -r KTLINT_VERSION_TAG=' 0.46.1'
35
41
declare -r VERSION_LATEST=' latest'
36
42
37
43
# Global variables.
@@ -454,17 +460,13 @@ find_java
454
460
455
461
if [[ ! -x " ${LIB_DIR} /${KTLINT_EXECUTABLE} " ]]
456
462
then
457
- # We stick to version 0.46.1 because of
458
- # https://github.com/pinterest/ktlint/issues/1599,
459
- # https://github.com/pinterest/ktlint/issues/1600, and
460
- # https://github.com/pinterest/ktlint/issues/1601.
461
- download_from_github " pinterest/ktlint" " 0.46.1"
463
+ download_from_github ' pinterest/ktlint' " ${KTLINT_VERSION_TAG} "
462
464
chmod 755 " ${LIB_DIR} /${KTLINT_EXECUTABLE} "
463
465
fi
464
466
465
467
if [[ -z " $( find_diktat_jar) " ]]
466
468
then
467
- download_from_github " saveourtool/diktat"
469
+ download_from_github ' saveourtool/diktat' " ${DIKTAT_VERSION_TAG} "
468
470
fi
469
471
470
472
DIKTAT_JAR=" $( find_diktat_jar) "
0 commit comments