Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to install 1.0.0 and run it ! #195

Open
afaucogney opened this issue Nov 4, 2021 · 12 comments
Open

Failed to install 1.0.0 and run it ! #195

afaucogney opened this issue Nov 4, 2021 · 12 comments

Comments

@afaucogney
Copy link

I was not able to install previous version, but here is the log of the script that install and run danger-kt on my ci

I'm running Danger on Bitrise with a Linux stack

The script that run Danger is:

sudo apt-get install -y libncurses5
bash <(curl -s https://raw.githubusercontent.com/danger/kotlin/master/scripts/install.sh)
source ~/.bash_profile
danger-kotlin ci

My DangerFile is:

import systems.danger.kotlin.*

danger(args) {
    warn("PR is classed as Work in Progress")
}

The log:

+ sudo apt-get install -y libncurses5
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libgpm2 libtinfo5
Suggested packages:
  gpm
The following NEW packages will be installed:
  libgpm2 libncurses5 libtinfo5
0 upgraded, 3 newly installed, 0 to remove and 1 not upgraded.
Need to get 195 kB of archives.
After this operation, 925 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu focal/main amd64 libgpm2 amd64 1.20.7-5 [15.1 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal/universe amd64 libtinfo5 amd64 6.2-0ubuntu2 [83.0 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal/universe amd64 libncurses5 amd64 6.2-0ubuntu2 [96.9 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 195 kB in 1s (220 kB/s)
Selecting previously unselected package libgpm2:amd64.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 87871 files and directories currently installed.)
Preparing to unpack .../libgpm2_1.20.7-5_amd64.deb ...
Unpacking libgpm2:amd64 (1.20.7-5) ...
Selecting previously unselected package libtinfo5:amd64.
Preparing to unpack .../libtinfo5_6.2-0ubuntu2_amd64.deb ...
Unpacking libtinfo5:amd64 (6.2-0ubuntu2) ...
Selecting previously unselected package libncurses5:amd64.
Preparing to unpack .../libncurses5_6.2-0ubuntu2_amd64.deb ...
Unpacking libncurses5:amd64 (6.2-0ubuntu2) ...
Setting up libgpm2:amd64 (1.20.7-5) ...
Setting up libtinfo5:amd64 (6.2-0ubuntu2) ...
Setting up libncurses5:amd64 (6.2-0ubuntu2) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
+ bash /dev/fd/63
++ curl -s https://raw.githubusercontent.com/danger/kotlin/master/scripts/install.sh
Installing danger
npm WARN deprecated @babel/[email protected]: 🚨 This package has been deprecated in favor of separate inclusion of a polyfill and regenerator-runtime (when needed). See the @babel/polyfill docs (https://babeljs.io/docs/en/babel-polyfill) for more information.
npm WARN deprecated [email protected]: The gitlab package has found a new home in the @gitbeaker organization. For the latest gitlab node library, check out @gitbeaker/node. A full list of the features can be found here: https://github.com/jdalrymple/gitbeaker#readme
npm WARN deprecated [email protected]: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
added 159 packages, and audited 160 packages in 6s
6 packages are looking for funding
  run `npm fund` for details
found 0 vulnerabilities
npm notice 
npm notice New major version of npm available! 7.24.2 -> 8.1.2
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.1.2>
npm notice Run `npm install -g [email protected]` to update!
npm notice 
Installing kotlin compiler 1.4.31
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   630  100   630    0     0   3333      0 --:--:-- --:--:-- --:--:--  3315

100 59.9M  100 59.9M    0     0  67.2M      0 --:--:-- --:--:-- --:--:-- 67.2M
Archive:  kotlin-compiler.zip
   creating: /usr/local/kotlinc/
  inflating: /usr/local/kotlinc/build.txt  
   creating: /usr/local/kotlinc/bin/
  inflating: /usr/local/kotlinc/bin/kapt  
  inflating: /usr/local/kotlinc/bin/kapt.bat  
  inflating: /usr/local/kotlinc/bin/kotlin  
  inflating: /usr/local/kotlinc/bin/kotlin-dce-js  
  inflating: /usr/local/kotlinc/bin/kotlin-dce-js.bat  
  inflating: /usr/local/kotlinc/bin/kotlin.bat  
  inflating: /usr/local/kotlinc/bin/kotlinc  
  inflating: /usr/local/kotlinc/bin/kotlinc-js  
  inflating: /usr/local/kotlinc/bin/kotlinc-js.bat  
  inflating: /usr/local/kotlinc/bin/kotlinc-jvm  
  inflating: /usr/local/kotlinc/bin/kotlinc-jvm.bat  
  inflating: /usr/local/kotlinc/bin/kotlinc.bat  
   creating: /usr/local/kotlinc/lib/
  inflating: /usr/local/kotlinc/lib/allopen-compiler-plugin.jar  
  inflating: /usr/local/kotlinc/lib/android-extensions-compiler.jar  
  inflating: /usr/local/kotlinc/lib/android-extensions-runtime.jar  
  inflating: /usr/local/kotlinc/lib/annotations-13.0.jar  
  inflating: /usr/local/kotlinc/lib/js.engines.jar  
  inflating: /usr/local/kotlinc/lib/jvm-abi-gen.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-annotation-processing-cli.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-annotation-processing-runtime.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-annotation-processing.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-annotations-android.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-annotations-jvm-sources.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-annotations-jvm.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-ant.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-compiler.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-coroutines-experimental-compat-sources.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-coroutines-experimental-compat.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-daemon-client.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-daemon.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-imports-dumper-compiler-plugin.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-main-kts.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-preloader.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-reflect-sources.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-reflect.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-runner.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-script-runtime-sources.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-script-runtime.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-scripting-common.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-scripting-compiler-impl.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-scripting-compiler.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-scripting-js.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-scripting-jvm.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-stdlib-jdk7-sources.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-stdlib-jdk7.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-stdlib-jdk8-sources.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-stdlib-jdk8.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-stdlib-js-sources.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-stdlib-js.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-stdlib-sources.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-stdlib.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-test-js-sources.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-test-js.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-test-junit-sources.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-test-junit.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-test-junit5-sources.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-test-junit5.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-test-sources.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-test-testng-sources.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-test-testng.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-test.jar  
  inflating: /usr/local/kotlinc/lib/kotlinx-coroutines-core.jar  
  inflating: /usr/local/kotlinc/lib/kotlinx-serialization-compiler-plugin.jar  
  inflating: /usr/local/kotlinc/lib/mutability-annotations-compat.jar  
  inflating: /usr/local/kotlinc/lib/noarg-compiler-plugin.jar  
  inflating: /usr/local/kotlinc/lib/parcelize-compiler.jar  
  inflating: /usr/local/kotlinc/lib/parcelize-runtime.jar  
  inflating: /usr/local/kotlinc/lib/sam-with-receiver-compiler-plugin.jar  
  inflating: /usr/local/kotlinc/lib/trove4j.jar  
   creating: /usr/local/kotlinc/license/
  inflating: /usr/local/kotlinc/license/COPYRIGHT.txt  
  inflating: /usr/local/kotlinc/license/LICENSE.txt  
  inflating: /usr/local/kotlinc/license/NOTICE.txt  
  inflating: /usr/local/kotlinc/license/README.md  
   creating: /usr/local/kotlinc/license/third_party/
  inflating: /usr/local/kotlinc/license/third_party/aosp_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/args4j_LICENSE.txt  
  inflating: /usr/local/kotlinc/license/third_party/asm_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/asmble_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/boost_LICENSE.txt  
  inflating: /usr/local/kotlinc/license/third_party/closure-compiler_LICENSE.txt  
  inflating: /usr/local/kotlinc/license/third_party/dart_LICENSE.txt  
  inflating: /usr/local/kotlinc/license/third_party/fastutil_licence  
  inflating: /usr/local/kotlinc/license/third_party/gradle_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/guava_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/gwt_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/jquery_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/jshashtable_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/karma-teamcity-reporter_LICENSE.txt  
  inflating: /usr/local/kotlinc/license/third_party/karma_LICENSE.txt  
  inflating: /usr/local/kotlinc/license/third_party/lodash_LICENSE.txt  
  inflating: /usr/local/kotlinc/license/third_party/maven_LICENSE.txt  
  inflating: /usr/local/kotlinc/license/third_party/mocha-teamcity-reporter_LICENSE.txt  
  inflating: /usr/local/kotlinc/license/third_party/pcollections_LICENSE.txt  
  inflating: /usr/local/kotlinc/license/third_party/prototype_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/qunit_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/rhino_LICENSE.txt  
  inflating: /usr/local/kotlinc/license/third_party/scala_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/teamcity-service-messages_LICENSE.txt  
  inflating: /usr/local/kotlinc/license/third_party/trove_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/trove_readme_license.txt  
   creating: /usr/local/kotlinc/license/third_party/testdata/
  inflating: /usr/local/kotlinc/license/third_party/testdata/dagger_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/testdata/eclipse_distribution_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/testdata/eclipse_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/testdata/findbugs_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/testdata/lombok_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/testdata/rxjava_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/testdata/spring_license.txt  
Cloning into '_danger-kotlin'...
Note: switching to '7b22c8beac4dc8ef45df622b2940c36e2c394d99'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
  git switch -c <new-branch-name>
Or undo this operation with:
  git switch -
Turn off this advice by setting config variable advice.detachedHead to false
./gradlew build -p danger-plugin-installer
Downloading https://services.gradle.org/distributions/gradle-6.3-bin.zip
.........10%..........20%..........30%.........40%..........50%..........60%.........70%..........80%..........90%..........100%
Starting a Gradle Daemon (subsequent builds will be faster)
> Configure project :
Secret key SONATYPE_USER not found. Falling back to default
Secret key SONATYPE_PASS not found. Falling back to default
> Configure project :danger-kotlin
Kotlin Multiplatform Projects are an Alpha feature. See: https://kotlinlang.org/docs/reference/evolution/components-stability.html. To hide this message, add 'kotlin.mpp.stability.nowarn=true' to the Gradle properties.
Please wait while Kotlin/Native compiler 1.5.10 is being installed.
Download https://download.jetbrains.com/kotlin/native/builds/releases/1.5.10/linux/kotlin-native-prebuilt-linux-1.5.10.tar.gz (88.01 MB)
Download https://download.jetbrains.com/kotlin/native/builds/releases/1.5.10/linux/kotlin-native-prebuilt-linux-1.5.10.tar.gz finished, took 4 s 506 ms
Unpack Kotlin/Native compiler to /root/.konan/kotlin-native-prebuilt-linux-1.5.10
Unpack Kotlin/Native compiler to /root/.konan/kotlin-native-prebuilt-linux-1.5.10 finished, took 2 s 523 ms
> Configure project :danger-kotlin-sdk
Secret key SONATYPE_USER not found. Falling back to default
Secret key SONATYPE_PASS not found. Falling back to default
> Task :danger-plugin-installer:compileKotlin
w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
    /root/.gradle/wrapper/dists/gradle-6.3-bin/8tpu6egwsccjzp10c1jckl0rx/gradle-6.3/lib/kotlin-stdlib-1.3.70.jar (version 1.3)
    /root/.gradle/wrapper/dists/gradle-6.3-bin/8tpu6egwsccjzp10c1jckl0rx/gradle-6.3/lib/kotlin-stdlib-common-1.3.70.jar (version 1.3)
    /root/.gradle/wrapper/dists/gradle-6.3-bin/8tpu6egwsccjzp10c1jckl0rx/gradle-6.3/lib/kotlin-stdlib-jdk8-1.3.70.jar (version 1.3)
    /root/.gradle/wrapper/dists/gradle-6.3-bin/8tpu6egwsccjzp10c1jckl0rx/gradle-6.3/lib/kotlin-stdlib-jdk7-1.3.70.jar (version 1.3)
    /root/.gradle/wrapper/dists/gradle-6.3-bin/8tpu6egwsccjzp10c1jckl0rx/gradle-6.3/lib/kotlin-reflect-1.3.70.jar (version 1.3)
    /root/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.5.10/3f4af7aff21c4ec46e3cdd645639d0a63a68d3d0/kotlin-stdlib-jdk8-1.5.10.jar (version 1.5)
    /root/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.5.10/c49d0703d16c6cb1526cc07b9b46486da1dd8a60/kotlin-stdlib-jdk7-1.5.10.jar (version 1.5)
    /root/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.5.10/da6a904b132f0402fa4d79169a3c1770598d4702/kotlin-stdlib-1.5.10.jar (version 1.5)
    /root/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.5.10/6b84d926e28493be69daf673e40076f89492ef7/kotlin-stdlib-common-1.5.10.jar (version 1.5)
w: Consider providing an explicit dependency on kotlin-reflect 1.5 to prevent strange errors
w: Some runtime JAR files in the classpath have an incompatible version. Consider removing them from the classpath
> Task :danger-plugin-installer:compileJava NO-SOURCE
> Task :danger-plugin-installer:pluginDescriptors
> Task :danger-plugin-installer:processResources
> Task :danger-plugin-installer:classes
> Task :danger-plugin-installer:inspectClassesForKotlinIC
> Task :danger-plugin-installer:jar
> Task :danger-plugin-installer:assemble
> Task :danger-plugin-installer:compileTestKotlin NO-SOURCE
> Task :danger-plugin-installer:pluginUnderTestMetadata
> Task :danger-plugin-installer:compileTestJava NO-SOURCE
> Task :danger-plugin-installer:processTestResources NO-SOURCE
> Task :danger-plugin-installer:testClasses UP-TO-DATE
> Task :danger-plugin-installer:test NO-SOURCE
> Task :danger-plugin-installer:validatePlugins
> Task :danger-plugin-installer:check
> Task :danger-plugin-installer:build
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.3/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 1m 30s
7 actionable tasks: 7 executed
./gradlew install -p danger-plugin-installer
> Configure project :
Secret key SONATYPE_USER not found. Falling back to default
Secret key SONATYPE_PASS not found. Falling back to default
> Configure project :danger-kotlin
Kotlin Multiplatform Projects are an Alpha feature. See: https://kotlinlang.org/docs/reference/evolution/components-stability.html. To hide this message, add 'kotlin.mpp.stability.nowarn=true' to the Gradle properties.
> Configure project :danger-kotlin-sdk
Secret key SONATYPE_USER not found. Falling back to default
Secret key SONATYPE_PASS not found. Falling back to default
> Task :danger-plugin-installer:compileKotlin UP-TO-DATE
> Task :danger-plugin-installer:compileJava NO-SOURCE
> Task :danger-plugin-installer:pluginDescriptors UP-TO-DATE
> Task :danger-plugin-installer:processResources UP-TO-DATE
> Task :danger-plugin-installer:classes UP-TO-DATE
> Task :danger-plugin-installer:inspectClassesForKotlinIC UP-TO-DATE
> Task :danger-plugin-installer:jar UP-TO-DATE
> Task :danger-plugin-installer:install
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.3/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 3s
6 actionable tasks: 1 executed, 5 up-to-date
./gradlew shadowJar -p danger-kotlin-library
> Configure project :
Secret key SONATYPE_USER not found. Falling back to default
Secret key SONATYPE_PASS not found. Falling back to default
> Configure project :danger-kotlin
Kotlin Multiplatform Projects are an Alpha feature. See: https://kotlinlang.org/docs/reference/evolution/components-stability.html. To hide this message, add 'kotlin.mpp.stability.nowarn=true' to the Gradle properties.
> Configure project :danger-kotlin-sdk
Secret key SONATYPE_USER not found. Falling back to default
Secret key SONATYPE_PASS not found. Falling back to default
> Task :danger-kotlin-kts:compileKotlin
> Task :danger-kotlin-kts:compileJava NO-SOURCE
> Task :danger-kotlin-kts:processResources NO-SOURCE
> Task :danger-kotlin-kts:classes UP-TO-DATE
> Task :danger-kotlin-kts:inspectClassesForKotlinIC
> Task :danger-kotlin-kts:jar
> Task :danger-kotlin-sdk:compileKotlin
> Task :danger-kotlin-sdk:compileJava NO-SOURCE
> Task :danger-kotlin-sdk:processResources NO-SOURCE
> Task :danger-kotlin-sdk:classes UP-TO-DATE
> Task :danger-kotlin-sdk:inspectClassesForKotlinIC
> Task :danger-kotlin-sdk:jar
> Task :danger-kotlin-library:compileKotlin
w: JVM target 1.6 is deprecated and will be removed in a future release. Please migrate to JVM target 1.8 or above
w: /bitrise/src/_danger-kotlin/danger-kotlin-library/src/main/kotlin/systems/danger/kotlin/models/danger/DangerResults.kt: (1, 22): This declaration is experimental and its usage should be marked with '@kotlinx.serialization.ExperimentalSerializationApi' or '@OptIn(kotlinx.serialization.ExperimentalSerializationApi::class)'
w: /bitrise/src/_danger-kotlin/danger-kotlin-library/src/main/kotlin/systems/danger/kotlin/models/github/GitHub.kt: (1, 22): This declaration is experimental and its usage should be marked with '@kotlinx.serialization.ExperimentalSerializationApi' or '@OptIn(kotlinx.serialization.ExperimentalSerializationApi::class)'
w: /bitrise/src/_danger-kotlin/danger-kotlin-library/src/main/kotlin/systems/danger/kotlin/models/gitlab/GitLab.kt: (1, 22): This declaration is experimental and its usage should be marked with '@kotlinx.serialization.ExperimentalSerializationApi' or '@OptIn(kotlinx.serialization.ExperimentalSerializationApi::class)'
> Task :danger-kotlin-library:compileJava NO-SOURCE
> Task :danger-kotlin-library:processResources NO-SOURCE
> Task :danger-kotlin-library:classes UP-TO-DATE
> Task :danger-kotlin-library:shadowJar
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.3/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 27s
8 actionable tasks: 8 executed
./gradlew build -p danger-kotlin-kts
> Configure project :
Secret key SONATYPE_USER not found. Falling back to default
Secret key SONATYPE_PASS not found. Falling back to default
> Configure project :danger-kotlin
Kotlin Multiplatform Projects are an Alpha feature. See: https://kotlinlang.org/docs/reference/evolution/components-stability.html. To hide this message, add 'kotlin.mpp.stability.nowarn=true' to the Gradle properties.
> Configure project :danger-kotlin-sdk
Secret key SONATYPE_USER not found. Falling back to default
Secret key SONATYPE_PASS not found. Falling back to default
> Task :danger-kotlin-kts:compileKotlin UP-TO-DATE
> Task :danger-kotlin-kts:compileJava NO-SOURCE
> Task :danger-kotlin-kts:processResources NO-SOURCE
> Task :danger-kotlin-kts:classes UP-TO-DATE
> Task :danger-kotlin-kts:inspectClassesForKotlinIC UP-TO-DATE
> Task :danger-kotlin-kts:jar UP-TO-DATE
> Task :danger-kotlin-kts:assemble UP-TO-DATE
> Task :danger-kotlin-kts:compileTestKotlin NO-SOURCE
> Task :danger-kotlin-kts:compileTestJava NO-SOURCE
> Task :danger-kotlin-kts:processTestResources NO-SOURCE
> Task :danger-kotlin-kts:testClasses UP-TO-DATE
> Task :danger-kotlin-kts:test NO-SOURCE
> Task :danger-kotlin-kts:check UP-TO-DATE
> Task :danger-kotlin-kts:build UP-TO-DATE
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.3/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 1s
3 actionable tasks: 3 up-to-date
./gradlew build -p danger-kotlin
> Configure project :
Secret key SONATYPE_USER not found. Falling back to default
Secret key SONATYPE_PASS not found. Falling back to default
> Configure project :danger-kotlin
Kotlin Multiplatform Projects are an Alpha feature. See: https://kotlinlang.org/docs/reference/evolution/components-stability.html. To hide this message, add 'kotlin.mpp.stability.nowarn=true' to the Gradle properties.
> Configure project :danger-kotlin-sdk
Secret key SONATYPE_USER not found. Falling back to default
Secret key SONATYPE_PASS not found. Falling back to default
> Task :danger-kotlin:compileKotlinRunner
Downloading native dependencies (LLVM, sysroot etc). This is a one-time action performed only on the first run of the compiler.

Downloading dependency: https://download.jetbrains.com/kotlin/native/x86_64-unknown-linux-gnu-gcc-8.3.0-glibc-2.19-kernel-4.9-2.tar.gz (0 bytes/97.1 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/x86_64-unknown-linux-gnu-gcc-8.3.0-glibc-2.19-kernel-4.9-2.tar.gz (23.1 MiB/97.1 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/x86_64-unknown-linux-gnu-gcc-8.3.0-glibc-2.19-kernel-4.9-2.tar.gz (49.3 MiB/97.1 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/x86_64-unknown-linux-gnu-gcc-8.3.0-glibc-2.19-kernel-4.9-2.tar.gz (69.3 MiB/97.1 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/x86_64-unknown-linux-gnu-gcc-8.3.0-glibc-2.19-kernel-4.9-2.tar.gz (90.2 MiB/97.1 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/x86_64-unknown-linux-gnu-gcc-8.3.0-glibc-2.19-kernel-4.9-2.tar.gz (97.1 MiB/97.1 MiB). Done.
Extracting dependency: /root/.konan/cache/x86_64-unknown-linux-gnu-gcc-8.3.0-glibc-2.19-kernel-4.9-2.tar.gz into /root/.konan/dependencies

Downloading dependency: https://download.jetbrains.com/kotlin/native/libffi-3.2.1-2-linux-x86-64.tar.gz (0 bytes/55.1 kiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/libffi-3.2.1-2-linux-x86-64.tar.gz (55.1 kiB/55.1 kiB). Done.
Extracting dependency: /root/.konan/cache/libffi-3.2.1-2-linux-x86-64.tar.gz into /root/.konan/dependencies

Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (0 bytes/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (1023.0 kiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (2.0 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (3.0 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (4.0 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (5.0 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (5.9 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (6.9 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (7.9 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (8.9 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (9.9 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (10.9 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (11.9 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (12.9 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (13.4 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (14.3 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (15.3 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (16.3 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (17.3 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (18.5 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (19.4 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (20.4 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (21.4 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (22.6 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (23.6 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (24.6 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (25.6 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (26.6 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (27.6 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (28.0 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (28.9 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (29.9 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (31.0 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (32.0 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (33.0 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (34.1 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (35.1 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (36.1 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (37.1 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (38.0 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (39.1 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (40.0 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (41.0 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (41.7 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (42.7 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (43.8 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (44.9 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (45.5 MiB/45.5 MiB). Done.
Extracting dependency: /root/.konan/cache/lldb-3-linux.tar.gz into /root/.konan/dependencies

Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (0 bytes/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (26.4 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (52.2 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (78.0 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (104.6 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (130.5 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (156.3 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (183.1 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (208.7 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (234.7 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (261.2 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (284.0 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (310.2 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (336.3 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (362.4 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (388.2 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (415.1 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (441.7 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (467.3 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (493.4 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (519.2 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (545.3 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (565.8 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (581.9 MiB/581.9 MiB). Done.
Extracting dependency: /root/.konan/cache/clang-llvm-8.0.0-linux-x86-64.tar.gz into /root/.konan/dependencies
w: /bitrise/src/_danger-kotlin/danger-kotlin/src/runnerMain/kotlin/systems.danger/cmd/dangerfile/DangerFile.kt: (60, 24): 'toInt(): Int' is deprecated. Conversion of Char to Number is deprecated. Use Char.code property instead.
> Task :danger-kotlin:linkDebugExecutableRunner
> Task :danger-kotlin:linkReleaseExecutableRunner
> Task :danger-kotlin:compileKotlinMetadata NO-SOURCE
> Task :danger-kotlin:metadataMainClasses UP-TO-DATE
> Task :danger-kotlin:metadataJar
> Task :danger-kotlin:assemble
> Task :danger-kotlin:runnerProcessResources NO-SOURCE
> Task :danger-kotlin:runnerMainKlibrary
> Task :danger-kotlin:compileTestKotlinRunner NO-SOURCE
> Task :danger-kotlin:linkDebugTestRunner NO-SOURCE
> Task :danger-kotlin:runnerTest SKIPPED
> Task :danger-kotlin:allTests
> Task :danger-kotlin:check
> Task :danger-kotlin:build
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.3/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 2m 16s
5 actionable tasks: 5 executed
mkdir -p /usr/local/bin
mkdir -p /usr/local/lib/danger
mkdir -p /usr/local/lib/danger/libs
cp -f danger-kotlin/build/bin/runner/releaseExecutable/danger-kotlin.kexe /usr/local/bin/danger-kotlin
cp -f danger-kotlin-library/build/libs/danger-kotlin.jar /usr/local/lib/danger/danger-kotlin.jar
+ source /root/.bash_profile
++ export PATH=/usr/local/kotlinc/bin:/root/.bitrise/tools:/bitrise/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go/bin:/opt/android-sdk-linux/platform-tools:/opt/android-sdk-linux/cmdline-tools/latest/bin:/opt/android-sdk-linux/cmdline-tools/4.0/bin:/opt/gradle/gradle-6.3/bin/:/opt/android-sdk-linux/ndk-bundle
++ PATH=/usr/local/kotlinc/bin:/root/.bitrise/tools:/bitrise/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go/bin:/opt/android-sdk-linux/platform-tools:/opt/android-sdk-linux/cmdline-tools/latest/bin:/opt/android-sdk-linux/cmdline-tools/4.0/bin:/opt/gradle/gradle-6.3/bin/:/opt/android-sdk-linux/ndk-bundle
+ danger-kotlin ci
Executing $(which danger) ci --process danger-kotlin --passURLForDSL  - pid 11944
Executing kotlinc -script-templates systems.danger.kts.DangerFileScript -cp /usr/local/lib/danger/danger-kotlin.jar -script Dangerfile.df.kts /tmp/danger-dsl.json danger_out.json - pid 11965
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.intellij.util.ReflectionUtil to method java.util.ResourceBundle.setParent(java.util.ResourceBundle)
WARNING: Please consider reporting this to the maintainers of com.intellij.util.ReflectionUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
kotlinx.serialization.json.internal.JsonDecodingException: Unexpected JSON token at offset 10448: Unexpected symbol 'n' in numeric literal
JSON input: .....    "approvals_before_merge": null,
        "subscribed": tr.....
    at kotlinx.serialization.json.internal.JsonExceptionsKt.JsonDecodingException(JsonExceptions.kt:24)
    at kotlinx.serialization.json.internal.JsonExceptionsKt.JsonDecodingException(JsonExceptions.kt:32)
    at kotlinx.serialization.json.internal.JsonLexer.fail(JsonLexer.kt:479)
    at kotlinx.serialization.json.internal.JsonLexer.fail$default(JsonLexer.kt:478)
    at kotlinx.serialization.json.internal.JsonLexer.consumeNumericLiteral(JsonLexer.kt:517)
    at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeInt(StreamingJsonDecoder.kt:203)
    at kotlinx.serialization.encoding.AbstractDecoder.decodeIntElement(AbstractDecoder.kt:53)
    at systems.danger.kotlin.models.gitlab.GitLabMergeRequest$$serializer.deserialize(GitLab.kt:34)
    at systems.danger.kotlin.models.gitlab.GitLabMergeRequest$$serializer.deserialize(GitLab.kt:34)
    at kotlinx.serialization.json.internal.PolymorphicKt.decodeSerializableValuePolymorphic(Polymorphic.kt:63)
    at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableValue(StreamingJsonDecoder.kt:32)
    at kotlinx.serialization.encoding.AbstractDecoder.decodeSerializableValue(AbstractDecoder.kt:43)
    at kotlinx.serialization.encoding.AbstractDecoder.decodeSerializableElement(AbstractDecoder.kt:70)
    at systems.danger.kotlin.models.gitlab.GitLab$$serializer.deserialize(GitLab.kt:11)
    at systems.danger.kotlin.models.gitlab.GitLab$$serializer.deserialize(GitLab.kt:11)
    at kotlinx.serialization.json.internal.PolymorphicKt.decodeSerializableValuePolymorphic(Polymorphic.kt:63)
    at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableValue(StreamingJsonDecoder.kt:32)
    at kotlinx.serialization.encoding.AbstractDecoder.decodeSerializableValue(AbstractDecoder.kt:43)
    at kotlinx.serialization.encoding.AbstractDecoder.decodeNullableSerializableElement(AbstractDecoder.kt:79)
    at systems.danger.kotlin.models.danger.DangerDSL$$serializer.deserialize(DangerDSL.kt:14)
    at systems.danger.kotlin.models.danger.DangerDSL$$serializer.deserialize(DangerDSL.kt:14)
    at kotlinx.serialization.json.internal.PolymorphicKt.decodeSerializableValuePolymorphic(Polymorphic.kt:63)
    at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableValue(StreamingJsonDecoder.kt:32)
    at kotlinx.serialization.encoding.AbstractDecoder.decodeSerializableValue(AbstractDecoder.kt:43)
    at kotlinx.serialization.encoding.AbstractDecoder.decodeSerializableElement(AbstractDecoder.kt:70)
    at systems.danger.kotlin.models.danger.DSL$$serializer.deserialize(DangerDSL.kt:9)
    at systems.danger.kotlin.models.danger.DSL$$serializer.deserialize(DangerDSL.kt:9)
    at kotlinx.serialization.json.internal.PolymorphicKt.decodeSerializableValuePolymorphic(Polymorphic.kt:63)
    at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableValue(StreamingJsonDecoder.kt:32)
    at kotlinx.serialization.json.Json.decodeFromString(Json.kt:95)
    at systems.danger.kotlin.MainDangerRunner.<init>(MainDangerRunner.kt:131)
    at systems.danger.kotlin.MainScriptKt.Danger(MainScript.kt:49)
    at Dangerfile_df.<init>(Dangerfile.df.kts:68)
warning: some JAR files in the classpath have the Kotlin Runtime library bundled into them. This may cause difficult to debug problems if there's a different version of the Kotlin Runtime library in the classpath. Consider removing these libraries from the classpath
/usr/local/lib/danger/danger-kotlin.jar: warning: library has Kotlin runtime bundled into it
Uncaught Kotlin exception: kotlin.Exception: Command kotlinc -script-templates systems.danger.kts.DangerFileScript -cp /usr/local/lib/danger/danger-kotlin.jar -script Dangerfile.df.kts /tmp/danger-dsl.json danger_out.json exited with code 768
    at kfun:systems.danger.cmd.Cmd.exec#internal (0x41d751)
    at kfun:systems.danger.cmd.dangerfile.DangerFile#execute(kotlin.String;kotlin.String){} (0x41e271)
    at kfun:systems.danger.DangerKotlin#run(){} (0x41c68f)
    at kfun:#main(kotlin.Array<kotlin.String>){} (0x41b6f7)
    at Init_and_run_start (0x44c656)
    at __libc_start_main (0x7f9d1fad80b3)
    at  (0x405031)
    at  ((nil))
Failing the build, there is 1 fail.
Feedback: https://gitlab.xx.fr/XXXXX-Android/merge_requests/2112#note_571355
Uncaught Kotlin exception: kotlin.Exception: Command $(which danger) ci --process danger-kotlin --passURLForDSL  exited with code 256
    at kfun:systems.danger.cmd.Cmd.exec#internal (0x41d751)
    at kfun:systems.danger.cmd.dangerjs.DangerJS#process(systems.danger.cmd.Command;kotlin.String;kotlin.collections.List<kotlin.String>){} (0x41f2bb)
    at kfun:#main(kotlin.Array<kotlin.String>){} (0x41b95b)
    at Init_and_run_start (0x44c656)
    at __libc_start_main (0x7ff762b970b3)
    at  (0x405031)
    at  ((nil))`
@gianluz
Copy link
Member

gianluz commented Nov 4, 2021

this error is likely caused by a field required, but was null. exactly
approval_before_merge to null in your case.
here is the piece of code :

@SerialName("approvals_before_merge")
    val approvalsBeforeMerge: Int = 0,

we default the approvalsBeforeMerge to 0 if the field is not present.
Do you wanna help with that and open a PR to fix it?

@afaucogney
Copy link
Author

@gianluz Yes I can try
But I cant run Danger-Kotlin on my laptop (I'm stuck with Catalina for some constraints), because my Xcode is too old !

Nevertheless I can prepare a PR
However when I look to the code, I see that 'approvalsBeforeMerge' has already a default value : 0.

Could you elaborate what to do ?

  • The Api seems to provide "null"
  • What danger need : 0 ?

@afaucogney
Copy link
Author

@gianluz As I can't easily debug/test tell me if :

you need:

data class GitLabMergeRequest(
    ...
    @SerialName("approvals_before_merge")
    val approvalsBeforeMerge: Int? = null,
   ...
) {
 ...
}

Or

data class GitLabMergeRequest(
    ...
    @SerialName("approvals_before_merge")
    private val _approvalsBeforeMerge: Int? = null,
   ...
) {
    val canMerge: Boolean
        get() = this.userMergeData.canMerge

    val approvalsBeforeMerge: Int
        get() = _approvalsBeforeMerge ?: 0
}

@afaucogney
Copy link
Author

Hi @gianluz, I'm still stuck with my issue on my computer, but can you please put me in the good direction that I push a PR.

afaucogney added a commit to afaucogney/kotlin that referenced this issue Nov 23, 2021
@afaucogney
Copy link
Author

I updated the script on a specific branch to be able to install the fix on Bitrise, but is seems to doesn't work yet !

+------------------------------------------------------------------------------+
| (8) Run Danger                                                               |
+------------------------------------------------------------------------------+
| id: script                                                                   |
| version: 1.1.6                                                               |
| collection: https://github.com/bitrise-io/bitrise-steplib.git                |
| toolkit: bash                                                                |
| time: 2021-11-23T11:30:39Z                                                   |
+------------------------------------------------------------------------------+
|                                                                              |
+ sudo apt-get install -y libncurses5
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libgpm2 libtinfo5
Suggested packages:
  gpm
The following NEW packages will be installed:
  libgpm2 libncurses5 libtinfo5
0 upgraded, 3 newly installed, 0 to remove and 1 not upgraded.
Need to get 195 kB of archives.
After this operation, 925 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu focal/main amd64 libgpm2 amd64 1.20.7-5 [15.1 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal/universe amd64 libtinfo5 amd64 6.2-0ubuntu2 [83.0 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal/universe amd64 libncurses5 amd64 6.2-0ubuntu2 [96.9 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 195 kB in 1s (230 kB/s)
Selecting previously unselected package libgpm2:amd64.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 87871 files and directories currently installed.)
Preparing to unpack .../libgpm2_1.20.7-5_amd64.deb ...
Unpacking libgpm2:amd64 (1.20.7-5) ...
Selecting previously unselected package libtinfo5:amd64.
Preparing to unpack .../libtinfo5_6.2-0ubuntu2_amd64.deb ...
Unpacking libtinfo5:amd64 (6.2-0ubuntu2) ...
Selecting previously unselected package libncurses5:amd64.
Preparing to unpack .../libncurses5_6.2-0ubuntu2_amd64.deb ...
Unpacking libncurses5:amd64 (6.2-0ubuntu2) ...
Setting up libgpm2:amd64 (1.20.7-5) ...
Setting up libtinfo5:amd64 (6.2-0ubuntu2) ...
Setting up libncurses5:amd64 (6.2-0ubuntu2) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
+ curl -s https://raw.githubusercontent.com/afaucogney/kotlin/ISSUE_195_Test/scripts/install.sh
+ bash -sh ISSUE_195_Test
Installing danger
npm WARN deprecated @babel/[email protected]: 🚨 This package has been deprecated in favor of separate inclusion of a polyfill and regenerator-runtime (when needed). See the @babel/polyfill docs (https://babeljs.io/docs/en/babel-polyfill) for more information.
npm WARN deprecated [email protected]: The gitlab package has found a new home in the @gitbeaker organization. For the latest gitlab node library, check out @gitbeaker/node. A full list of the features can be found here: https://github.com/jdalrymple/gitbeaker#readme
npm WARN deprecated [email protected]: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
added 159 packages, and audited 160 packages in 7s
6 packages are looking for funding
  run `npm fund` for details
1 moderate severity vulnerability
To address all issues (including breaking changes), run:
  npm audit fix --force
Run `npm audit` for details.
npm notice 
npm notice New major version of npm available! 7.24.2 -> 8.1.4
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.1.4>
npm notice Run `npm install -g [email protected]` to update!
npm notice 
Installing kotlin compiler 1.4.31
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   661  100   661    0     0   3018      0 --:--:-- --:--:-- --:--:--  3018

  0 59.9M    0 24244    0     0  23698      0  0:44:13  0:00:01  0:44:12 23698
100 59.9M  100 59.9M    0     0  46.6M      0  0:00:01  0:00:01 --:--:--  229M
Archive:  kotlin-compiler.zip
   creating: /usr/local/kotlinc/
  inflating: /usr/local/kotlinc/build.txt  
   creating: /usr/local/kotlinc/bin/
  inflating: /usr/local/kotlinc/bin/kapt  
  inflating: /usr/local/kotlinc/bin/kapt.bat  
  inflating: /usr/local/kotlinc/bin/kotlin  
  inflating: /usr/local/kotlinc/bin/kotlin-dce-js  
  inflating: /usr/local/kotlinc/bin/kotlin-dce-js.bat  
  inflating: /usr/local/kotlinc/bin/kotlin.bat  
  inflating: /usr/local/kotlinc/bin/kotlinc  
  inflating: /usr/local/kotlinc/bin/kotlinc-js  
  inflating: /usr/local/kotlinc/bin/kotlinc-js.bat  
  inflating: /usr/local/kotlinc/bin/kotlinc-jvm  
  inflating: /usr/local/kotlinc/bin/kotlinc-jvm.bat  
  inflating: /usr/local/kotlinc/bin/kotlinc.bat  
   creating: /usr/local/kotlinc/lib/
  inflating: /usr/local/kotlinc/lib/allopen-compiler-plugin.jar  
  inflating: /usr/local/kotlinc/lib/android-extensions-compiler.jar  
  inflating: /usr/local/kotlinc/lib/android-extensions-runtime.jar  
  inflating: /usr/local/kotlinc/lib/annotations-13.0.jar  
  inflating: /usr/local/kotlinc/lib/js.engines.jar  
  inflating: /usr/local/kotlinc/lib/jvm-abi-gen.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-annotation-processing-cli.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-annotation-processing-runtime.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-annotation-processing.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-annotations-android.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-annotations-jvm-sources.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-annotations-jvm.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-ant.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-compiler.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-coroutines-experimental-compat-sources.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-coroutines-experimental-compat.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-daemon-client.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-daemon.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-imports-dumper-compiler-plugin.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-main-kts.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-preloader.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-reflect-sources.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-reflect.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-runner.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-script-runtime-sources.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-script-runtime.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-scripting-common.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-scripting-compiler-impl.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-scripting-compiler.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-scripting-js.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-scripting-jvm.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-stdlib-jdk7-sources.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-stdlib-jdk7.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-stdlib-jdk8-sources.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-stdlib-jdk8.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-stdlib-js-sources.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-stdlib-js.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-stdlib-sources.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-stdlib.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-test-js-sources.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-test-js.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-test-junit-sources.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-test-junit.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-test-junit5-sources.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-test-junit5.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-test-sources.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-test-testng-sources.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-test-testng.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-test.jar  
  inflating: /usr/local/kotlinc/lib/kotlinx-coroutines-core.jar  
  inflating: /usr/local/kotlinc/lib/kotlinx-serialization-compiler-plugin.jar  
  inflating: /usr/local/kotlinc/lib/mutability-annotations-compat.jar  
  inflating: /usr/local/kotlinc/lib/noarg-compiler-plugin.jar  
  inflating: /usr/local/kotlinc/lib/parcelize-compiler.jar  
  inflating: /usr/local/kotlinc/lib/parcelize-runtime.jar  
  inflating: /usr/local/kotlinc/lib/sam-with-receiver-compiler-plugin.jar  
  inflating: /usr/local/kotlinc/lib/trove4j.jar  
   creating: /usr/local/kotlinc/license/
  inflating: /usr/local/kotlinc/license/COPYRIGHT.txt  
  inflating: /usr/local/kotlinc/license/LICENSE.txt  
  inflating: /usr/local/kotlinc/license/NOTICE.txt  
  inflating: /usr/local/kotlinc/license/README.md  
   creating: /usr/local/kotlinc/license/third_party/
  inflating: /usr/local/kotlinc/license/third_party/aosp_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/args4j_LICENSE.txt  
  inflating: /usr/local/kotlinc/license/third_party/asm_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/asmble_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/boost_LICENSE.txt  
  inflating: /usr/local/kotlinc/license/third_party/closure-compiler_LICENSE.txt  
  inflating: /usr/local/kotlinc/license/third_party/dart_LICENSE.txt  
  inflating: /usr/local/kotlinc/license/third_party/fastutil_licence  
  inflating: /usr/local/kotlinc/license/third_party/gradle_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/guava_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/gwt_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/jquery_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/jshashtable_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/karma-teamcity-reporter_LICENSE.txt  
  inflating: /usr/local/kotlinc/license/third_party/karma_LICENSE.txt  
  inflating: /usr/local/kotlinc/license/third_party/lodash_LICENSE.txt  
  inflating: /usr/local/kotlinc/license/third_party/maven_LICENSE.txt  
  inflating: /usr/local/kotlinc/license/third_party/mocha-teamcity-reporter_LICENSE.txt  
  inflating: /usr/local/kotlinc/license/third_party/pcollections_LICENSE.txt  
  inflating: /usr/local/kotlinc/license/third_party/prototype_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/qunit_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/rhino_LICENSE.txt  
  inflating: /usr/local/kotlinc/license/third_party/scala_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/teamcity-service-messages_LICENSE.txt  
  inflating: /usr/local/kotlinc/license/third_party/trove_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/trove_readme_license.txt  
   creating: /usr/local/kotlinc/license/third_party/testdata/
  inflating: /usr/local/kotlinc/license/third_party/testdata/dagger_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/testdata/eclipse_distribution_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/testdata/eclipse_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/testdata/findbugs_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/testdata/lombok_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/testdata/rxjava_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/testdata/spring_license.txt  
Cloning into '_danger-kotlin'...
Note: switching to 'cbefa9cd2949c01f6567e4b42595c74867b32325'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
  git switch -c <new-branch-name>
Or undo this operation with:
  git switch -
Turn off this advice by setting config variable advice.detachedHead to false
./gradlew shadowJar -p danger-kotlin-library
Downloading https://services.gradle.org/distributions/gradle-6.3-bin.zip
.........10%..........20%..........30%.........40%..........50%..........60%.........70%..........80%..........90%..........100%
Starting a Gradle Daemon (subsequent builds will be faster)
> Configure project :
Secret key SONATYPE_USER not found. Falling back to default
Secret key SONATYPE_PASS not found. Falling back to default
> Configure project :danger-kotlin
Kotlin Multiplatform Projects are an Alpha feature.
Please wait while Kotlin/Native compiler 1.4 is being installed.
Download https://download.jetbrains.com/kotlin/native/builds/releases/1.4/linux/kotlin-native-prebuilt-linux-1.4.tar.gz
Download https://download.jetbrains.com/kotlin/native/builds/releases/1.4/linux/kotlin-native-prebuilt-linux-1.4.tar.gz finished, took 4 s 9 ms
Unpack Kotlin/Native compiler to /root/.konan/kotlin-native-prebuilt-linux-1.4
Unpack Kotlin/Native compiler to /root/.konan/kotlin-native-prebuilt-linux-1.4 finished, took 2 s 119 ms
> Configure project :danger-kotlin-sdk
Secret key SONATYPE_USER not found. Falling back to default
Secret key SONATYPE_PASS not found. Falling back to default
> Task :danger-kotlin-kts:compileKotlin
> Task :danger-kotlin-kts:compileJava NO-SOURCE
> Task :danger-kotlin-kts:processResources NO-SOURCE
> Task :danger-kotlin-kts:classes UP-TO-DATE
> Task :danger-kotlin-kts:inspectClassesForKotlinIC
> Task :danger-kotlin-kts:jar
> Task :danger-kotlin-sdk:compileKotlin
> Task :danger-kotlin-sdk:compileJava NO-SOURCE
> Task :danger-kotlin-sdk:processResources NO-SOURCE
> Task :danger-kotlin-sdk:classes UP-TO-DATE
> Task :danger-kotlin-sdk:inspectClassesForKotlinIC
> Task :danger-kotlin-sdk:jar
> Task :danger-kotlin-library:compileKotlin
> Task :danger-kotlin-library:compileJava NO-SOURCE
> Task :danger-kotlin-library:processResources NO-SOURCE
> Task :danger-kotlin-library:classes UP-TO-DATE
> Task :danger-kotlin-library:shadowJar
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.3/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 1m 33s
8 actionable tasks: 8 executed
./gradlew build -p danger-kotlin-kts
> Configure project :
Secret key SONATYPE_USER not found. Falling back to default
Secret key SONATYPE_PASS not found. Falling back to default
> Configure project :danger-kotlin
Kotlin Multiplatform Projects are an Alpha feature.
> Configure project :danger-kotlin-sdk
Secret key SONATYPE_USER not found. Falling back to default
Secret key SONATYPE_PASS not found. Falling back to default
> Task :danger-kotlin-kts:compileKotlin UP-TO-DATE
> Task :danger-kotlin-kts:compileJava NO-SOURCE
> Task :danger-kotlin-kts:processResources NO-SOURCE
> Task :danger-kotlin-kts:classes UP-TO-DATE
> Task :danger-kotlin-kts:inspectClassesForKotlinIC UP-TO-DATE
> Task :danger-kotlin-kts:jar UP-TO-DATE
> Task :danger-kotlin-kts:assemble UP-TO-DATE
> Task :danger-kotlin-kts:compileTestKotlin NO-SOURCE
> Task :danger-kotlin-kts:compileTestJava NO-SOURCE
> Task :danger-kotlin-kts:processTestResources NO-SOURCE
> Task :danger-kotlin-kts:testClasses UP-TO-DATE
> Task :danger-kotlin-kts:test NO-SOURCE
> Task :danger-kotlin-kts:check UP-TO-DATE
> Task :danger-kotlin-kts:build UP-TO-DATE
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.3/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 2s
3 actionable tasks: 3 up-to-date
./gradlew build -p danger-kotlin
> Configure project :
Secret key SONATYPE_USER not found. Falling back to default
Secret key SONATYPE_PASS not found. Falling back to default
> Configure project :danger-kotlin
Kotlin Multiplatform Projects are an Alpha feature.
> Configure project :danger-kotlin-sdk
Secret key SONATYPE_USER not found. Falling back to default
Secret key SONATYPE_PASS not found. Falling back to default
> Task :danger-kotlin:compileKotlinRunner
Downloading native dependencies (LLVM, sysroot etc). This is a one-time action performed only on the first run of the compiler.

Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (0 bytes/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (21.0 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (46.4 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (70.9 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (95.3 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (120.4 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (145.4 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (170.6 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (195.9 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (221.2 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (245.9 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (271.1 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (295.9 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (320.1 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (344.8 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (369.1 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (394.9 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (417.1 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (438.6 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (462.1 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (487.6 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (513.3 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (539.0 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (564.4 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (581.9 MiB/581.9 MiB). Done.
Extracting dependency: /root/.konan/cache/clang-llvm-8.0.0-linux-x86-64.tar.gz into /root/.konan/dependencies

Downloading dependency: https://download.jetbrains.com/kotlin/native/target-gcc-toolchain-3-linux-x86-64.tar.gz (0 bytes/58.4 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/target-gcc-toolchain-3-linux-x86-64.tar.gz (19.4 MiB/58.4 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/target-gcc-toolchain-3-linux-x86-64.tar.gz (57.2 MiB/58.4 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/target-gcc-toolchain-3-linux-x86-64.tar.gz (58.4 MiB/58.4 MiB). Done.
Extracting dependency: /root/.konan/cache/target-gcc-toolchain-3-linux-x86-64.tar.gz into /root/.konan/dependencies

Downloading dependency: https://download.jetbrains.com/kotlin/native/libffi-3.2.1-2-linux-x86-64.tar.gz (0 bytes/55.1 kiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/libffi-3.2.1-2-linux-x86-64.tar.gz (55.1 kiB/55.1 kiB). Done.
Extracting dependency: /root/.konan/cache/libffi-3.2.1-2-linux-x86-64.tar.gz into /root/.konan/dependencies

Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-2-linux.tar.gz (0 bytes/30.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-2-linux.tar.gz (18.0 MiB/30.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-2-linux.tar.gz (30.5 MiB/30.5 MiB). Done.
Extracting dependency: /root/.konan/cache/lldb-2-linux.tar.gz into /root/.konan/dependencies
> Task :danger-kotlin:linkDebugExecutableRunner
> Task :danger-kotlin:linkReleaseExecutableRunner
> Task :danger-kotlin:compileKotlinMetadata NO-SOURCE
> Task :danger-kotlin:metadataMainClasses UP-TO-DATE
> Task :danger-kotlin:metadataJar
> Task :danger-kotlin:assemble
> Task :danger-kotlin:runnerProcessResources NO-SOURCE
> Task :danger-kotlin:runnerMainKlibrary
> Task :danger-kotlin:compileTestKotlinRunner NO-SOURCE
> Task :danger-kotlin:linkDebugTestRunner NO-SOURCE
> Task :danger-kotlin:runnerTest SKIPPED
> Task :danger-kotlin:allTests
> Task :danger-kotlin:check
> Task :danger-kotlin:build
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.3/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 1m 31s
5 actionable tasks: 5 executed
mkdir -p /usr/local/bin
mkdir -p /usr/local/lib/danger
cp -f danger-kotlin/build/bin/runner/releaseExecutable/danger-kotlin.kexe /usr/local/bin/danger-kotlin
cp -f danger-kotlin-library/build/libs/danger-kotlin.jar /usr/local/lib/danger/danger-kotlin.jar
+ source /root/.bash_profile
++ export PATH=/usr/local/kotlinc/bin:/root/.bitrise/tools:/bitrise/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go/bin:/opt/android-sdk-linux/platform-tools:/opt/android-sdk-linux/cmdline-tools/latest/bin:/opt/android-sdk-linux/cmdline-tools/4.0/bin:/opt/gradle/gradle-6.3/bin/:/opt/android-sdk-linux/ndk-bundle
++ PATH=/usr/local/kotlinc/bin:/root/.bitrise/tools:/bitrise/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go/bin:/opt/android-sdk-linux/platform-tools:/opt/android-sdk-linux/cmdline-tools/latest/bin:/opt/android-sdk-linux/cmdline-tools/4.0/bin:/opt/gradle/gradle-6.3/bin/:/opt/android-sdk-linux/ndk-bundle
+ danger-kotlin ci
Executing $(which danger) ci --process danger-kotlin --passURLForDSL  - pid 12370
Executing kotlinc -script-templates systems.danger.kts.DangerFileScript -cp /usr/local/lib/danger/danger-kotlin.jar -script Dangerfile.df.kts /tmp/danger-dsl.json danger_out.json - pid 12391
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.intellij.util.ReflectionUtil to method java.util.ResourceBundle.setParent(java.util.ResourceBundle)
WARNING: Please consider reporting this to the maintainers of com.intellij.util.ReflectionUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
java.text.ParseException: Unparseable date: "2021-10-01T11:33:35.491+02:00"
	at java.base/java.text.DateFormat.parse(DateFormat.java:395)
	at systems.danger.kotlin.DangerRunnerKt.fromISO8601UTC(DangerRunner.kt:27)
	at systems.danger.kotlin.Rfc3339DateJsonAdapter.fromJson(DangerRunner.kt:44)
	at systems.danger.kotlin.Rfc3339DateJsonAdapter.fromJson(DangerRunner.kt:40)
	at com.squareup.moshi.JsonAdapter$2.fromJson(JsonAdapter.java:137)
	at com.squareup.moshi.kotlin.reflect.KotlinJsonAdapter.fromJson(KotlinJsonAdapter.kt:83)
	at com.squareup.moshi.JsonAdapter$2.fromJson(JsonAdapter.java:137)
	at com.squareup.moshi.kotlin.reflect.KotlinJsonAdapter.fromJson(KotlinJsonAdapter.kt:83)
	at com.squareup.moshi.JsonAdapter$2.fromJson(JsonAdapter.java:137)
	at com.squareup.moshi.kotlin.reflect.KotlinJsonAdapter.fromJson(KotlinJsonAdapter.kt:83)
	at com.squareup.moshi.JsonAdapter$2.fromJson(JsonAdapter.java:137)
	at com.squareup.moshi.kotlin.reflect.KotlinJsonAdapter.fromJson(KotlinJsonAdapter.kt:83)
	at com.squareup.moshi.JsonAdapter$2.fromJson(JsonAdapter.java:137)
	at com.squareup.moshi.JsonAdapter.fromJson(JsonAdapter.java:41)
	at systems.danger.kotlin.DangerRunner.<init>(DangerRunner.kt:125)
	at systems.danger.kotlin.DangerRunnerKt.Danger(DangerRunner.kt:238)
	at Dangerfile_df.<init>(Dangerfile.df.kts:68)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
	at kotlin.script.experimental.jvm.BasicJvmScriptEvaluator.evalWithConfigAndOtherScriptsResults(BasicJvmScriptEvaluator.kt:96)
	at kotlin.script.experimental.jvm.BasicJvmScriptEvaluator.invoke$suspendImpl(BasicJvmScriptEvaluator.kt:41)
	at kotlin.script.experimental.jvm.BasicJvmScriptEvaluator.invoke(BasicJvmScriptEvaluator.kt)
	at org.jetbrains.kotlin.scripting.compiler.plugin.AbstractScriptEvaluationExtension$doEval$1.invokeSuspend(AbstractScriptEvaluationExtension.kt:143)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
	at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:274)
	at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:84)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59)
	at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:38)
	at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)
	at org.jetbrains.kotlin.scripting.compiler.plugin.AbstractScriptEvaluationExtension.doEval(AbstractScriptEvaluationExtension.kt:135)
	at org.jetbrains.kotlin.scripting.compiler.plugin.AbstractScriptEvaluationExtension.eval(AbstractScriptEvaluationExtension.kt:123)
	at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:102)
	at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:52)
	at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:88)
	at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:44)
	at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:98)
	at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:76)
	at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:45)
	at org.jetbrains.kotlin.cli.common.CLITool$Companion.doMainNoExit(CLITool.kt:227)
	at org.jetbrains.kotlin.cli.common.CLITool$Companion.doMainNoExit$default(CLITool.kt:222)
	at org.jetbrains.kotlin.cli.common.CLITool$Companion.doMain(CLITool.kt:214)
	at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler$Companion.main(K2JVMCompiler.kt:271)
	at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.main(K2JVMCompiler.kt)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.jetbrains.kotlin.preloading.Preloader.run(Preloader.java:87)
	at org.jetbrains.kotlin.preloading.Preloader.main(Preloader.java:44)
java.text.ParseException: Unparseable date: "2021-10-01T11:33:35.491+02:00"
	at java.base/java.text.DateFormat.parse(DateFormat.java:395)
	at systems.danger.kotlin.DangerRunnerKt.fromISO8601UTC(DangerRunner.kt:30)
	at systems.danger.kotlin.Rfc3339DateJsonAdapter.fromJson(DangerRunner.kt:44)
	at systems.danger.kotlin.Rfc3339DateJsonAdapter.fromJson(DangerRunner.kt:40)
	at com.squareup.moshi.JsonAdapter$2.fromJson(JsonAdapter.java:137)
	at com.squareup.moshi.kotlin.reflect.KotlinJsonAdapter.fromJson(KotlinJsonAdapter.kt:83)
	at com.squareup.moshi.JsonAdapter$2.fromJson(JsonAdapter.java:137)
	at com.squareup.moshi.kotlin.reflect.KotlinJsonAdapter.fromJson(KotlinJsonAdapter.kt:83)
	at com.squareup.moshi.JsonAdapter$2.fromJson(JsonAdapter.java:137)
	at com.squareup.moshi.kotlin.reflect.KotlinJsonAdapter.fromJson(KotlinJsonAdapter.kt:83)
	at com.squareup.moshi.JsonAdapter$2.fromJson(JsonAdapter.java:137)
	at com.squareup.moshi.kotlin.reflect.KotlinJsonAdapter.fromJson(KotlinJsonAdapter.kt:83)
	at com.squareup.moshi.JsonAdapter$2.fromJson(JsonAdapter.java:137)
	at com.squareup.moshi.JsonAdapter.fromJson(JsonAdapter.java:41)
	at systems.danger.kotlin.DangerRunner.<init>(DangerRunner.kt:125)
	at systems.danger.kotlin.DangerRunnerKt.Danger(DangerRunner.kt:238)
	at Dangerfile_df.<init>(Dangerfile.df.kts:68)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
	at kotlin.script.experimental.jvm.BasicJvmScriptEvaluator.evalWithConfigAndOtherScriptsResults(BasicJvmScriptEvaluator.kt:96)
	at kotlin.script.experimental.jvm.BasicJvmScriptEvaluator.invoke$suspendImpl(BasicJvmScriptEvaluator.kt:41)
	at kotlin.script.experimental.jvm.BasicJvmScriptEvaluator.invoke(BasicJvmScriptEvaluator.kt)
	at org.jetbrains.kotlin.scripting.compiler.plugin.AbstractScriptEvaluationExtension$doEval$1.invokeSuspend(AbstractScriptEvaluationExtension.kt:143)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
	at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:274)
	at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:84)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59)
	at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:38)
	at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)
	at org.jetbrains.kotlin.scripting.compiler.plugin.AbstractScriptEvaluationExtension.doEval(AbstractScriptEvaluationExtension.kt:135)
	at org.jetbrains.kotlin.scripting.compiler.plugin.AbstractScriptEvaluationExtension.eval(AbstractScriptEvaluationExtension.kt:123)
	at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:102)
	at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:52)
	at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:88)
	at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:44)
	at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:98)
	at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:76)
	at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:45)
	at org.jetbrains.kotlin.cli.common.CLITool$Companion.doMainNoExit(CLITool.kt:227)
	at org.jetbrains.kotlin.cli.common.CLITool$Companion.doMainNoExit$default(CLITool.kt:222)
	at org.jetbrains.kotlin.cli.common.CLITool$Companion.doMain(CLITool.kt:214)
	at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler$Companion.main(K2JVMCompiler.kt:271)
	at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.main(K2JVMCompiler.kt)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.jetbrains.kotlin.preloading.Preloader.run(Preloader.java:87)
	at org.jetbrains.kotlin.preloading.Preloader.main(Preloader.java:44)
java.lang.NullPointerException
	at systems.danger.kotlin.Rfc3339DateJsonAdapter.fromJson(DangerRunner.kt:44)
	at systems.danger.kotlin.Rfc3339DateJsonAdapter.fromJson(DangerRunner.kt:40)
	at com.squareup.moshi.JsonAdapter$2.fromJson(JsonAdapter.java:137)
	at com.squareup.moshi.kotlin.reflect.KotlinJsonAdapter.fromJson(KotlinJsonAdapter.kt:83)
	at com.squareup.moshi.JsonAdapter$2.fromJson(JsonAdapter.java:137)
	at com.squareup.moshi.kotlin.reflect.KotlinJsonAdapter.fromJson(KotlinJsonAdapter.kt:83)
	at com.squareup.moshi.JsonAdapter$2.fromJson(JsonAdapter.java:137)
	at com.squareup.moshi.kotlin.reflect.KotlinJsonAdapter.fromJson(KotlinJsonAdapter.kt:83)
	at com.squareup.moshi.JsonAdapter$2.fromJson(JsonAdapter.java:137)
	at com.squareup.moshi.kotlin.reflect.KotlinJsonAdapter.fromJson(KotlinJsonAdapter.kt:83)
	at com.squareup.moshi.JsonAdapter$2.fromJson(JsonAdapter.java:137)
	at com.squareup.moshi.JsonAdapter.fromJson(JsonAdapter.java:41)
	at systems.danger.kotlin.DangerRunner.<init>(DangerRunner.kt:125)
	at systems.danger.kotlin.DangerRunnerKt.Danger(DangerRunner.kt:238)
	at Dangerfile_df.<init>(Dangerfile.df.kts:68)
Uncaught Kotlin exception: kotlin.Exception: Command kotlinc -script-templates systems.danger.kts.DangerFileScript -cp /usr/local/lib/danger/danger-kotlin.jar -script Dangerfile.df.kts /tmp/danger-dsl.json danger_out.json exited with code 768
    at kfun:systems.danger.cmd.Cmd#exec(){} (0x228518)
    at kfun:systems.danger.cmd.dangerfile.DangerFile#execute(kotlin.String;kotlin.String){} (0x22915b)
    at kfun:systems.danger.DangerKotlin#run(){} (0x227408)
    at Init_and_run_start (0x22c005)
    at __libc_start_main (0x7f4e572c10b3)
    at  (0x211029)
    at  ((nil))
Failing the build, there is 1 fail.
Feedback: https://gitlab.niji.fr/Anthony-etMoi/AnthonyEtMoi-Android/merge_requests/2112#note_571355
Uncaught Kotlin exception: kotlin.Exception: Command $(which danger) ci --process danger-kotlin --passURLForDSL  exited with code 256
    at kfun:systems.danger.cmd.Cmd#exec(){} (0x228518)
    at kfun:systems.danger.cmd.dangerjs.DangerJS#process(kotlin.String;kotlin.String;kotlin.collections.List<kotlin.String>){} (0x229764)
    at Init_and_run_start (0x22c364)
    at __libc_start_main (0x7f62db61e0b3)
    at  (0x211029)
    at  ((nil))
| 

@gianluz any idea ? I already saw some issue about date, wasn't fixed ?

@afaucogney
Copy link
Author

@gianluz I succeed update my laptop !
Do now I can run locally and debug. Is there any procedure to run danger in debug-mode easily ? and target a specific danger file ?

@afaucogney
Copy link
Author

When we look at the documentation https://docs.gitlab.com/ee/api/merge_requests.html, it seems there are some gap with the json file that is used in the project. Could someone confirm ?

@gianluz
Copy link
Member

gianluz commented Jan 13, 2022

to target a specific Dangerfile you can use
--dangerfile path/to/OtherDangerfile.df.kts

@gianluz
Copy link
Member

gianluz commented Jan 13, 2022

i haven't verified personally but DangerKotlin maps data coming back from danger-js, the model we need to map is the one coming from danger-js and not the one coming from the gitlab api. @f-meloni correct me if i'm wrong

@f-meloni
Copy link
Member

You can use DEBUG='*' danger-kotlin ... that should make danger-js print a much more detailed Danger-JS output

@f-meloni
Copy link
Member

to get the whole json that Danger Kotlin receives, you can use danger-kotlin pr $PR_LINK --json > test.json

@Sandesh333333
Copy link

I was not able to install previous version, but here is the log of the script that install and run danger-kt on my ci

I'm running Danger on Bitrise with a Linux stack

The script that run Danger is:

sudo apt-get install -y libncurses5
bash <(curl -s https://raw.githubusercontent.com/danger/kotlin/master/scripts/install.sh)
source ~/.bash_profile
danger-kotlin ci

My DangerFile is:

import systems.danger.kotlin.*

danger(args) {
    warn("PR is classed as Work in Progress")
}

The log:

+ sudo apt-get install -y libncurses5
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libgpm2 libtinfo5
Suggested packages:
  gpm
The following NEW packages will be installed:
  libgpm2 libncurses5 libtinfo5
0 upgraded, 3 newly installed, 0 to remove and 1 not upgraded.
Need to get 195 kB of archives.
After this operation, 925 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu focal/main amd64 libgpm2 amd64 1.20.7-5 [15.1 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal/universe amd64 libtinfo5 amd64 6.2-0ubuntu2 [83.0 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal/universe amd64 libncurses5 amd64 6.2-0ubuntu2 [96.9 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 195 kB in 1s (220 kB/s)
Selecting previously unselected package libgpm2:amd64.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 87871 files and directories currently installed.)
Preparing to unpack .../libgpm2_1.20.7-5_amd64.deb ...
Unpacking libgpm2:amd64 (1.20.7-5) ...
Selecting previously unselected package libtinfo5:amd64.
Preparing to unpack .../libtinfo5_6.2-0ubuntu2_amd64.deb ...
Unpacking libtinfo5:amd64 (6.2-0ubuntu2) ...
Selecting previously unselected package libncurses5:amd64.
Preparing to unpack .../libncurses5_6.2-0ubuntu2_amd64.deb ...
Unpacking libncurses5:amd64 (6.2-0ubuntu2) ...
Setting up libgpm2:amd64 (1.20.7-5) ...
Setting up libtinfo5:amd64 (6.2-0ubuntu2) ...
Setting up libncurses5:amd64 (6.2-0ubuntu2) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
+ bash /dev/fd/63
++ curl -s https://raw.githubusercontent.com/danger/kotlin/master/scripts/install.sh
Installing danger
npm WARN deprecated @babel/[email protected]: 🚨 This package has been deprecated in favor of separate inclusion of a polyfill and regenerator-runtime (when needed). See the @babel/polyfill docs (https://babeljs.io/docs/en/babel-polyfill) for more information.
npm WARN deprecated [email protected]: The gitlab package has found a new home in the @gitbeaker organization. For the latest gitlab node library, check out @gitbeaker/node. A full list of the features can be found here: https://github.com/jdalrymple/gitbeaker#readme
npm WARN deprecated [email protected]: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
added 159 packages, and audited 160 packages in 6s
6 packages are looking for funding
  run `npm fund` for details
found 0 vulnerabilities
npm notice 
npm notice New major version of npm available! 7.24.2 -> 8.1.2
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.1.2>
npm notice Run `npm install -g [email protected]` to update!
npm notice 
Installing kotlin compiler 1.4.31
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   630  100   630    0     0   3333      0 --:--:-- --:--:-- --:--:--  3315

100 59.9M  100 59.9M    0     0  67.2M      0 --:--:-- --:--:-- --:--:-- 67.2M
Archive:  kotlin-compiler.zip
   creating: /usr/local/kotlinc/
  inflating: /usr/local/kotlinc/build.txt  
   creating: /usr/local/kotlinc/bin/
  inflating: /usr/local/kotlinc/bin/kapt  
  inflating: /usr/local/kotlinc/bin/kapt.bat  
  inflating: /usr/local/kotlinc/bin/kotlin  
  inflating: /usr/local/kotlinc/bin/kotlin-dce-js  
  inflating: /usr/local/kotlinc/bin/kotlin-dce-js.bat  
  inflating: /usr/local/kotlinc/bin/kotlin.bat  
  inflating: /usr/local/kotlinc/bin/kotlinc  
  inflating: /usr/local/kotlinc/bin/kotlinc-js  
  inflating: /usr/local/kotlinc/bin/kotlinc-js.bat  
  inflating: /usr/local/kotlinc/bin/kotlinc-jvm  
  inflating: /usr/local/kotlinc/bin/kotlinc-jvm.bat  
  inflating: /usr/local/kotlinc/bin/kotlinc.bat  
   creating: /usr/local/kotlinc/lib/
  inflating: /usr/local/kotlinc/lib/allopen-compiler-plugin.jar  
  inflating: /usr/local/kotlinc/lib/android-extensions-compiler.jar  
  inflating: /usr/local/kotlinc/lib/android-extensions-runtime.jar  
  inflating: /usr/local/kotlinc/lib/annotations-13.0.jar  
  inflating: /usr/local/kotlinc/lib/js.engines.jar  
  inflating: /usr/local/kotlinc/lib/jvm-abi-gen.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-annotation-processing-cli.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-annotation-processing-runtime.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-annotation-processing.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-annotations-android.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-annotations-jvm-sources.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-annotations-jvm.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-ant.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-compiler.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-coroutines-experimental-compat-sources.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-coroutines-experimental-compat.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-daemon-client.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-daemon.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-imports-dumper-compiler-plugin.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-main-kts.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-preloader.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-reflect-sources.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-reflect.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-runner.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-script-runtime-sources.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-script-runtime.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-scripting-common.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-scripting-compiler-impl.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-scripting-compiler.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-scripting-js.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-scripting-jvm.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-stdlib-jdk7-sources.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-stdlib-jdk7.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-stdlib-jdk8-sources.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-stdlib-jdk8.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-stdlib-js-sources.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-stdlib-js.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-stdlib-sources.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-stdlib.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-test-js-sources.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-test-js.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-test-junit-sources.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-test-junit.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-test-junit5-sources.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-test-junit5.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-test-sources.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-test-testng-sources.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-test-testng.jar  
  inflating: /usr/local/kotlinc/lib/kotlin-test.jar  
  inflating: /usr/local/kotlinc/lib/kotlinx-coroutines-core.jar  
  inflating: /usr/local/kotlinc/lib/kotlinx-serialization-compiler-plugin.jar  
  inflating: /usr/local/kotlinc/lib/mutability-annotations-compat.jar  
  inflating: /usr/local/kotlinc/lib/noarg-compiler-plugin.jar  
  inflating: /usr/local/kotlinc/lib/parcelize-compiler.jar  
  inflating: /usr/local/kotlinc/lib/parcelize-runtime.jar  
  inflating: /usr/local/kotlinc/lib/sam-with-receiver-compiler-plugin.jar  
  inflating: /usr/local/kotlinc/lib/trove4j.jar  
   creating: /usr/local/kotlinc/license/
  inflating: /usr/local/kotlinc/license/COPYRIGHT.txt  
  inflating: /usr/local/kotlinc/license/LICENSE.txt  
  inflating: /usr/local/kotlinc/license/NOTICE.txt  
  inflating: /usr/local/kotlinc/license/README.md  
   creating: /usr/local/kotlinc/license/third_party/
  inflating: /usr/local/kotlinc/license/third_party/aosp_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/args4j_LICENSE.txt  
  inflating: /usr/local/kotlinc/license/third_party/asm_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/asmble_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/boost_LICENSE.txt  
  inflating: /usr/local/kotlinc/license/third_party/closure-compiler_LICENSE.txt  
  inflating: /usr/local/kotlinc/license/third_party/dart_LICENSE.txt  
  inflating: /usr/local/kotlinc/license/third_party/fastutil_licence  
  inflating: /usr/local/kotlinc/license/third_party/gradle_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/guava_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/gwt_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/jquery_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/jshashtable_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/karma-teamcity-reporter_LICENSE.txt  
  inflating: /usr/local/kotlinc/license/third_party/karma_LICENSE.txt  
  inflating: /usr/local/kotlinc/license/third_party/lodash_LICENSE.txt  
  inflating: /usr/local/kotlinc/license/third_party/maven_LICENSE.txt  
  inflating: /usr/local/kotlinc/license/third_party/mocha-teamcity-reporter_LICENSE.txt  
  inflating: /usr/local/kotlinc/license/third_party/pcollections_LICENSE.txt  
  inflating: /usr/local/kotlinc/license/third_party/prototype_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/qunit_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/rhino_LICENSE.txt  
  inflating: /usr/local/kotlinc/license/third_party/scala_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/teamcity-service-messages_LICENSE.txt  
  inflating: /usr/local/kotlinc/license/third_party/trove_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/trove_readme_license.txt  
   creating: /usr/local/kotlinc/license/third_party/testdata/
  inflating: /usr/local/kotlinc/license/third_party/testdata/dagger_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/testdata/eclipse_distribution_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/testdata/eclipse_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/testdata/findbugs_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/testdata/lombok_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/testdata/rxjava_license.txt  
  inflating: /usr/local/kotlinc/license/third_party/testdata/spring_license.txt  
Cloning into '_danger-kotlin'...
Note: switching to '7b22c8beac4dc8ef45df622b2940c36e2c394d99'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
  git switch -c <new-branch-name>
Or undo this operation with:
  git switch -
Turn off this advice by setting config variable advice.detachedHead to false
./gradlew build -p danger-plugin-installer
Downloading https://services.gradle.org/distributions/gradle-6.3-bin.zip
.........10%..........20%..........30%.........40%..........50%..........60%.........70%..........80%..........90%..........100%
Starting a Gradle Daemon (subsequent builds will be faster)
> Configure project :
Secret key SONATYPE_USER not found. Falling back to default
Secret key SONATYPE_PASS not found. Falling back to default
> Configure project :danger-kotlin
Kotlin Multiplatform Projects are an Alpha feature. See: https://kotlinlang.org/docs/reference/evolution/components-stability.html. To hide this message, add 'kotlin.mpp.stability.nowarn=true' to the Gradle properties.
Please wait while Kotlin/Native compiler 1.5.10 is being installed.
Download https://download.jetbrains.com/kotlin/native/builds/releases/1.5.10/linux/kotlin-native-prebuilt-linux-1.5.10.tar.gz (88.01 MB)
Download https://download.jetbrains.com/kotlin/native/builds/releases/1.5.10/linux/kotlin-native-prebuilt-linux-1.5.10.tar.gz finished, took 4 s 506 ms
Unpack Kotlin/Native compiler to /root/.konan/kotlin-native-prebuilt-linux-1.5.10
Unpack Kotlin/Native compiler to /root/.konan/kotlin-native-prebuilt-linux-1.5.10 finished, took 2 s 523 ms
> Configure project :danger-kotlin-sdk
Secret key SONATYPE_USER not found. Falling back to default
Secret key SONATYPE_PASS not found. Falling back to default
> Task :danger-plugin-installer:compileKotlin
w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
    /root/.gradle/wrapper/dists/gradle-6.3-bin/8tpu6egwsccjzp10c1jckl0rx/gradle-6.3/lib/kotlin-stdlib-1.3.70.jar (version 1.3)
    /root/.gradle/wrapper/dists/gradle-6.3-bin/8tpu6egwsccjzp10c1jckl0rx/gradle-6.3/lib/kotlin-stdlib-common-1.3.70.jar (version 1.3)
    /root/.gradle/wrapper/dists/gradle-6.3-bin/8tpu6egwsccjzp10c1jckl0rx/gradle-6.3/lib/kotlin-stdlib-jdk8-1.3.70.jar (version 1.3)
    /root/.gradle/wrapper/dists/gradle-6.3-bin/8tpu6egwsccjzp10c1jckl0rx/gradle-6.3/lib/kotlin-stdlib-jdk7-1.3.70.jar (version 1.3)
    /root/.gradle/wrapper/dists/gradle-6.3-bin/8tpu6egwsccjzp10c1jckl0rx/gradle-6.3/lib/kotlin-reflect-1.3.70.jar (version 1.3)
    /root/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.5.10/3f4af7aff21c4ec46e3cdd645639d0a63a68d3d0/kotlin-stdlib-jdk8-1.5.10.jar (version 1.5)
    /root/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.5.10/c49d0703d16c6cb1526cc07b9b46486da1dd8a60/kotlin-stdlib-jdk7-1.5.10.jar (version 1.5)
    /root/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.5.10/da6a904b132f0402fa4d79169a3c1770598d4702/kotlin-stdlib-1.5.10.jar (version 1.5)
    /root/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.5.10/6b84d926e28493be69daf673e40076f89492ef7/kotlin-stdlib-common-1.5.10.jar (version 1.5)
w: Consider providing an explicit dependency on kotlin-reflect 1.5 to prevent strange errors
w: Some runtime JAR files in the classpath have an incompatible version. Consider removing them from the classpath
> Task :danger-plugin-installer:compileJava NO-SOURCE
> Task :danger-plugin-installer:pluginDescriptors
> Task :danger-plugin-installer:processResources
> Task :danger-plugin-installer:classes
> Task :danger-plugin-installer:inspectClassesForKotlinIC
> Task :danger-plugin-installer:jar
> Task :danger-plugin-installer:assemble
> Task :danger-plugin-installer:compileTestKotlin NO-SOURCE
> Task :danger-plugin-installer:pluginUnderTestMetadata
> Task :danger-plugin-installer:compileTestJava NO-SOURCE
> Task :danger-plugin-installer:processTestResources NO-SOURCE
> Task :danger-plugin-installer:testClasses UP-TO-DATE
> Task :danger-plugin-installer:test NO-SOURCE
> Task :danger-plugin-installer:validatePlugins
> Task :danger-plugin-installer:check
> Task :danger-plugin-installer:build
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.3/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 1m 30s
7 actionable tasks: 7 executed
./gradlew install -p danger-plugin-installer
> Configure project :
Secret key SONATYPE_USER not found. Falling back to default
Secret key SONATYPE_PASS not found. Falling back to default
> Configure project :danger-kotlin
Kotlin Multiplatform Projects are an Alpha feature. See: https://kotlinlang.org/docs/reference/evolution/components-stability.html. To hide this message, add 'kotlin.mpp.stability.nowarn=true' to the Gradle properties.
> Configure project :danger-kotlin-sdk
Secret key SONATYPE_USER not found. Falling back to default
Secret key SONATYPE_PASS not found. Falling back to default
> Task :danger-plugin-installer:compileKotlin UP-TO-DATE
> Task :danger-plugin-installer:compileJava NO-SOURCE
> Task :danger-plugin-installer:pluginDescriptors UP-TO-DATE
> Task :danger-plugin-installer:processResources UP-TO-DATE
> Task :danger-plugin-installer:classes UP-TO-DATE
> Task :danger-plugin-installer:inspectClassesForKotlinIC UP-TO-DATE
> Task :danger-plugin-installer:jar UP-TO-DATE
> Task :danger-plugin-installer:install
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.3/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 3s
6 actionable tasks: 1 executed, 5 up-to-date
./gradlew shadowJar -p danger-kotlin-library
> Configure project :
Secret key SONATYPE_USER not found. Falling back to default
Secret key SONATYPE_PASS not found. Falling back to default
> Configure project :danger-kotlin
Kotlin Multiplatform Projects are an Alpha feature. See: https://kotlinlang.org/docs/reference/evolution/components-stability.html. To hide this message, add 'kotlin.mpp.stability.nowarn=true' to the Gradle properties.
> Configure project :danger-kotlin-sdk
Secret key SONATYPE_USER not found. Falling back to default
Secret key SONATYPE_PASS not found. Falling back to default
> Task :danger-kotlin-kts:compileKotlin
> Task :danger-kotlin-kts:compileJava NO-SOURCE
> Task :danger-kotlin-kts:processResources NO-SOURCE
> Task :danger-kotlin-kts:classes UP-TO-DATE
> Task :danger-kotlin-kts:inspectClassesForKotlinIC
> Task :danger-kotlin-kts:jar
> Task :danger-kotlin-sdk:compileKotlin
> Task :danger-kotlin-sdk:compileJava NO-SOURCE
> Task :danger-kotlin-sdk:processResources NO-SOURCE
> Task :danger-kotlin-sdk:classes UP-TO-DATE
> Task :danger-kotlin-sdk:inspectClassesForKotlinIC
> Task :danger-kotlin-sdk:jar
> Task :danger-kotlin-library:compileKotlin
w: JVM target 1.6 is deprecated and will be removed in a future release. Please migrate to JVM target 1.8 or above
w: /bitrise/src/_danger-kotlin/danger-kotlin-library/src/main/kotlin/systems/danger/kotlin/models/danger/DangerResults.kt: (1, 22): This declaration is experimental and its usage should be marked with '@kotlinx.serialization.ExperimentalSerializationApi' or '@OptIn(kotlinx.serialization.ExperimentalSerializationApi::class)'
w: /bitrise/src/_danger-kotlin/danger-kotlin-library/src/main/kotlin/systems/danger/kotlin/models/github/GitHub.kt: (1, 22): This declaration is experimental and its usage should be marked with '@kotlinx.serialization.ExperimentalSerializationApi' or '@OptIn(kotlinx.serialization.ExperimentalSerializationApi::class)'
w: /bitrise/src/_danger-kotlin/danger-kotlin-library/src/main/kotlin/systems/danger/kotlin/models/gitlab/GitLab.kt: (1, 22): This declaration is experimental and its usage should be marked with '@kotlinx.serialization.ExperimentalSerializationApi' or '@OptIn(kotlinx.serialization.ExperimentalSerializationApi::class)'
> Task :danger-kotlin-library:compileJava NO-SOURCE
> Task :danger-kotlin-library:processResources NO-SOURCE
> Task :danger-kotlin-library:classes UP-TO-DATE
> Task :danger-kotlin-library:shadowJar
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.3/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 27s
8 actionable tasks: 8 executed
./gradlew build -p danger-kotlin-kts
> Configure project :
Secret key SONATYPE_USER not found. Falling back to default
Secret key SONATYPE_PASS not found. Falling back to default
> Configure project :danger-kotlin
Kotlin Multiplatform Projects are an Alpha feature. See: https://kotlinlang.org/docs/reference/evolution/components-stability.html. To hide this message, add 'kotlin.mpp.stability.nowarn=true' to the Gradle properties.
> Configure project :danger-kotlin-sdk
Secret key SONATYPE_USER not found. Falling back to default
Secret key SONATYPE_PASS not found. Falling back to default
> Task :danger-kotlin-kts:compileKotlin UP-TO-DATE
> Task :danger-kotlin-kts:compileJava NO-SOURCE
> Task :danger-kotlin-kts:processResources NO-SOURCE
> Task :danger-kotlin-kts:classes UP-TO-DATE
> Task :danger-kotlin-kts:inspectClassesForKotlinIC UP-TO-DATE
> Task :danger-kotlin-kts:jar UP-TO-DATE
> Task :danger-kotlin-kts:assemble UP-TO-DATE
> Task :danger-kotlin-kts:compileTestKotlin NO-SOURCE
> Task :danger-kotlin-kts:compileTestJava NO-SOURCE
> Task :danger-kotlin-kts:processTestResources NO-SOURCE
> Task :danger-kotlin-kts:testClasses UP-TO-DATE
> Task :danger-kotlin-kts:test NO-SOURCE
> Task :danger-kotlin-kts:check UP-TO-DATE
> Task :danger-kotlin-kts:build UP-TO-DATE
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.3/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 1s
3 actionable tasks: 3 up-to-date
./gradlew build -p danger-kotlin
> Configure project :
Secret key SONATYPE_USER not found. Falling back to default
Secret key SONATYPE_PASS not found. Falling back to default
> Configure project :danger-kotlin
Kotlin Multiplatform Projects are an Alpha feature. See: https://kotlinlang.org/docs/reference/evolution/components-stability.html. To hide this message, add 'kotlin.mpp.stability.nowarn=true' to the Gradle properties.
> Configure project :danger-kotlin-sdk
Secret key SONATYPE_USER not found. Falling back to default
Secret key SONATYPE_PASS not found. Falling back to default
> Task :danger-kotlin:compileKotlinRunner
Downloading native dependencies (LLVM, sysroot etc). This is a one-time action performed only on the first run of the compiler.

Downloading dependency: https://download.jetbrains.com/kotlin/native/x86_64-unknown-linux-gnu-gcc-8.3.0-glibc-2.19-kernel-4.9-2.tar.gz (0 bytes/97.1 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/x86_64-unknown-linux-gnu-gcc-8.3.0-glibc-2.19-kernel-4.9-2.tar.gz (23.1 MiB/97.1 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/x86_64-unknown-linux-gnu-gcc-8.3.0-glibc-2.19-kernel-4.9-2.tar.gz (49.3 MiB/97.1 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/x86_64-unknown-linux-gnu-gcc-8.3.0-glibc-2.19-kernel-4.9-2.tar.gz (69.3 MiB/97.1 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/x86_64-unknown-linux-gnu-gcc-8.3.0-glibc-2.19-kernel-4.9-2.tar.gz (90.2 MiB/97.1 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/x86_64-unknown-linux-gnu-gcc-8.3.0-glibc-2.19-kernel-4.9-2.tar.gz (97.1 MiB/97.1 MiB). Done.
Extracting dependency: /root/.konan/cache/x86_64-unknown-linux-gnu-gcc-8.3.0-glibc-2.19-kernel-4.9-2.tar.gz into /root/.konan/dependencies

Downloading dependency: https://download.jetbrains.com/kotlin/native/libffi-3.2.1-2-linux-x86-64.tar.gz (0 bytes/55.1 kiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/libffi-3.2.1-2-linux-x86-64.tar.gz (55.1 kiB/55.1 kiB). Done.
Extracting dependency: /root/.konan/cache/libffi-3.2.1-2-linux-x86-64.tar.gz into /root/.konan/dependencies

Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (0 bytes/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (1023.0 kiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (2.0 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (3.0 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (4.0 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (5.0 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (5.9 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (6.9 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (7.9 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (8.9 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (9.9 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (10.9 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (11.9 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (12.9 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (13.4 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (14.3 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (15.3 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (16.3 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (17.3 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (18.5 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (19.4 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (20.4 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (21.4 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (22.6 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (23.6 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (24.6 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (25.6 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (26.6 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (27.6 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (28.0 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (28.9 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (29.9 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (31.0 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (32.0 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (33.0 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (34.1 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (35.1 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (36.1 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (37.1 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (38.0 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (39.1 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (40.0 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (41.0 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (41.7 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (42.7 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (43.8 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (44.9 MiB/45.5 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/lldb-3-linux.tar.gz (45.5 MiB/45.5 MiB). Done.
Extracting dependency: /root/.konan/cache/lldb-3-linux.tar.gz into /root/.konan/dependencies

Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (0 bytes/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (26.4 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (52.2 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (78.0 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (104.6 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (130.5 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (156.3 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (183.1 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (208.7 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (234.7 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (261.2 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (284.0 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (310.2 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (336.3 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (362.4 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (388.2 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (415.1 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (441.7 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (467.3 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (493.4 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (519.2 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (545.3 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (565.8 MiB/581.9 MiB). 
Downloading dependency: https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz (581.9 MiB/581.9 MiB). Done.
Extracting dependency: /root/.konan/cache/clang-llvm-8.0.0-linux-x86-64.tar.gz into /root/.konan/dependencies
w: /bitrise/src/_danger-kotlin/danger-kotlin/src/runnerMain/kotlin/systems.danger/cmd/dangerfile/DangerFile.kt: (60, 24): 'toInt(): Int' is deprecated. Conversion of Char to Number is deprecated. Use Char.code property instead.
> Task :danger-kotlin:linkDebugExecutableRunner
> Task :danger-kotlin:linkReleaseExecutableRunner
> Task :danger-kotlin:compileKotlinMetadata NO-SOURCE
> Task :danger-kotlin:metadataMainClasses UP-TO-DATE
> Task :danger-kotlin:metadataJar
> Task :danger-kotlin:assemble
> Task :danger-kotlin:runnerProcessResources NO-SOURCE
> Task :danger-kotlin:runnerMainKlibrary
> Task :danger-kotlin:compileTestKotlinRunner NO-SOURCE
> Task :danger-kotlin:linkDebugTestRunner NO-SOURCE
> Task :danger-kotlin:runnerTest SKIPPED
> Task :danger-kotlin:allTests
> Task :danger-kotlin:check
> Task :danger-kotlin:build
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.3/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 2m 16s
5 actionable tasks: 5 executed
mkdir -p /usr/local/bin
mkdir -p /usr/local/lib/danger
mkdir -p /usr/local/lib/danger/libs
cp -f danger-kotlin/build/bin/runner/releaseExecutable/danger-kotlin.kexe /usr/local/bin/danger-kotlin
cp -f danger-kotlin-library/build/libs/danger-kotlin.jar /usr/local/lib/danger/danger-kotlin.jar
+ source /root/.bash_profile
++ export PATH=/usr/local/kotlinc/bin:/root/.bitrise/tools:/bitrise/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go/bin:/opt/android-sdk-linux/platform-tools:/opt/android-sdk-linux/cmdline-tools/latest/bin:/opt/android-sdk-linux/cmdline-tools/4.0/bin:/opt/gradle/gradle-6.3/bin/:/opt/android-sdk-linux/ndk-bundle
++ PATH=/usr/local/kotlinc/bin:/root/.bitrise/tools:/bitrise/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go/bin:/opt/android-sdk-linux/platform-tools:/opt/android-sdk-linux/cmdline-tools/latest/bin:/opt/android-sdk-linux/cmdline-tools/4.0/bin:/opt/gradle/gradle-6.3/bin/:/opt/android-sdk-linux/ndk-bundle
+ danger-kotlin ci
Executing $(which danger) ci --process danger-kotlin --passURLForDSL  - pid 11944
Executing kotlinc -script-templates systems.danger.kts.DangerFileScript -cp /usr/local/lib/danger/danger-kotlin.jar -script Dangerfile.df.kts /tmp/danger-dsl.json danger_out.json - pid 11965
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.intellij.util.ReflectionUtil to method java.util.ResourceBundle.setParent(java.util.ResourceBundle)
WARNING: Please consider reporting this to the maintainers of com.intellij.util.ReflectionUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
kotlinx.serialization.json.internal.JsonDecodingException: Unexpected JSON token at offset 10448: Unexpected symbol 'n' in numeric literal
JSON input: .....    "approvals_before_merge": null,
        "subscribed": tr.....
    at kotlinx.serialization.json.internal.JsonExceptionsKt.JsonDecodingException(JsonExceptions.kt:24)
    at kotlinx.serialization.json.internal.JsonExceptionsKt.JsonDecodingException(JsonExceptions.kt:32)
    at kotlinx.serialization.json.internal.JsonLexer.fail(JsonLexer.kt:479)
    at kotlinx.serialization.json.internal.JsonLexer.fail$default(JsonLexer.kt:478)
    at kotlinx.serialization.json.internal.JsonLexer.consumeNumericLiteral(JsonLexer.kt:517)
    at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeInt(StreamingJsonDecoder.kt:203)
    at kotlinx.serialization.encoding.AbstractDecoder.decodeIntElement(AbstractDecoder.kt:53)
    at systems.danger.kotlin.models.gitlab.GitLabMergeRequest$$serializer.deserialize(GitLab.kt:34)
    at systems.danger.kotlin.models.gitlab.GitLabMergeRequest$$serializer.deserialize(GitLab.kt:34)
    at kotlinx.serialization.json.internal.PolymorphicKt.decodeSerializableValuePolymorphic(Polymorphic.kt:63)
    at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableValue(StreamingJsonDecoder.kt:32)
    at kotlinx.serialization.encoding.AbstractDecoder.decodeSerializableValue(AbstractDecoder.kt:43)
    at kotlinx.serialization.encoding.AbstractDecoder.decodeSerializableElement(AbstractDecoder.kt:70)
    at systems.danger.kotlin.models.gitlab.GitLab$$serializer.deserialize(GitLab.kt:11)
    at systems.danger.kotlin.models.gitlab.GitLab$$serializer.deserialize(GitLab.kt:11)
    at kotlinx.serialization.json.internal.PolymorphicKt.decodeSerializableValuePolymorphic(Polymorphic.kt:63)
    at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableValue(StreamingJsonDecoder.kt:32)
    at kotlinx.serialization.encoding.AbstractDecoder.decodeSerializableValue(AbstractDecoder.kt:43)
    at kotlinx.serialization.encoding.AbstractDecoder.decodeNullableSerializableElement(AbstractDecoder.kt:79)
    at systems.danger.kotlin.models.danger.DangerDSL$$serializer.deserialize(DangerDSL.kt:14)
    at systems.danger.kotlin.models.danger.DangerDSL$$serializer.deserialize(DangerDSL.kt:14)
    at kotlinx.serialization.json.internal.PolymorphicKt.decodeSerializableValuePolymorphic(Polymorphic.kt:63)
    at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableValue(StreamingJsonDecoder.kt:32)
    at kotlinx.serialization.encoding.AbstractDecoder.decodeSerializableValue(AbstractDecoder.kt:43)
    at kotlinx.serialization.encoding.AbstractDecoder.decodeSerializableElement(AbstractDecoder.kt:70)
    at systems.danger.kotlin.models.danger.DSL$$serializer.deserialize(DangerDSL.kt:9)
    at systems.danger.kotlin.models.danger.DSL$$serializer.deserialize(DangerDSL.kt:9)
    at kotlinx.serialization.json.internal.PolymorphicKt.decodeSerializableValuePolymorphic(Polymorphic.kt:63)
    at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableValue(StreamingJsonDecoder.kt:32)
    at kotlinx.serialization.json.Json.decodeFromString(Json.kt:95)
    at systems.danger.kotlin.MainDangerRunner.<init>(MainDangerRunner.kt:131)
    at systems.danger.kotlin.MainScriptKt.Danger(MainScript.kt:49)
    at Dangerfile_df.<init>(Dangerfile.df.kts:68)
warning: some JAR files in the classpath have the Kotlin Runtime library bundled into them. This may cause difficult to debug problems if there's a different version of the Kotlin Runtime library in the classpath. Consider removing these libraries from the classpath
/usr/local/lib/danger/danger-kotlin.jar: warning: library has Kotlin runtime bundled into it
Uncaught Kotlin exception: kotlin.Exception: Command kotlinc -script-templates systems.danger.kts.DangerFileScript -cp /usr/local/lib/danger/danger-kotlin.jar -script Dangerfile.df.kts /tmp/danger-dsl.json danger_out.json exited with code 768
    at kfun:systems.danger.cmd.Cmd.exec#internal (0x41d751)
    at kfun:systems.danger.cmd.dangerfile.DangerFile#execute(kotlin.String;kotlin.String){} (0x41e271)
    at kfun:systems.danger.DangerKotlin#run(){} (0x41c68f)
    at kfun:#main(kotlin.Array<kotlin.String>){} (0x41b6f7)
    at Init_and_run_start (0x44c656)
    at __libc_start_main (0x7f9d1fad80b3)
    at  (0x405031)
    at  ((nil))
Failing the build, there is 1 fail.
Feedback: https://gitlab.xx.fr/XXXXX-Android/merge_requests/2112#note_571355
Uncaught Kotlin exception: kotlin.Exception: Command $(which danger) ci --process danger-kotlin --passURLForDSL  exited with code 256
    at kfun:systems.danger.cmd.Cmd.exec#internal (0x41d751)
    at kfun:systems.danger.cmd.dangerjs.DangerJS#process(systems.danger.cmd.Command;kotlin.String;kotlin.collections.List<kotlin.String>){} (0x41f2bb)
    at kfun:#main(kotlin.Array<kotlin.String>){} (0x41b95b)
    at Init_and_run_start (0x44c656)
    at __libc_start_main (0x7ff762b970b3)
    at  (0x405031)
    at  ((nil))`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants