Skip to content

Conversation

@jmewes
Copy link
Contributor

@jmewes jmewes commented Mar 15, 2021

Due to version dependencies in the used plugins, we'll need to upgrade
the Kotlin version to 1.4.20 and Gradle to version 6.

With this the currently used linter version doesn't work anymore:


$ ./gradlew formatKotlin lintKotlin
Starting a Gradle Daemon, 2 incompatible and 5 stopped Daemons could not be reused, use --status for details
> Task :restdocs-api-spec:formatKotlinMain FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':restdocs-api-spec:formatKotlinMain'.
> There was a failure while executing work items
   > A failure occurred while executing org.jmailen.gradle.kotlinter.tasks.format.FormatWorkerRunnable
      > org/jetbrains/kotlin/lexer/KtTokens.FUN_KEYWORD

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

After application of the auto fix after the version upgrade,
there will be a lot of changed lines. That's why this is coming
as a separate pull request.

Due to version dependencies in the used plugins, we'll need to upgrade
the Kotlin version to 1.4.20 and Gradle to version 6.

This this the currently used linter version doesn't work anymore:

```

$ ./gradlew formatKotlin lintKotlin
Starting a Gradle Daemon, 2 incompatible and 5 stopped Daemons could not be reused, use --status for details
> Task :restdocs-api-spec:formatKotlinMain FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':restdocs-api-spec:formatKotlinMain'.
> There was a failure while executing work items
   > A failure occurred while executing org.jmailen.gradle.kotlinter.tasks.format.FormatWorkerRunnable
      > org/jetbrains/kotlin/lexer/KtTokens.FUN_KEYWORD

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

```

After application of the auto fix after the version upgrade,
there will be a lot of changed lines. That's why this is coming
as a separate pull request.
@jmewes
Copy link
Contributor Author

jmewes commented Mar 15, 2021

The changes in this PR were auto generated by the following command:

./gradlew formatKotlin lintKotlin

@jmewes
Copy link
Contributor Author

jmewes commented Mar 15, 2021

Also see jeremymailen/kotlinter-gradle#93

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.05%) to 92.542% when pulling 826ef4f on jmewes:issue/GH-153_upgrade-linter into e4e3751 on ePages-de:master.

@ogoranskyy ogoranskyy self-assigned this Mar 15, 2021
@jmewes jmewes merged commit 9546f4e into ePages-de:master Mar 15, 2021
@jmewes jmewes deleted the issue/GH-153_upgrade-linter branch March 15, 2021 14:14
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

Successfully merging this pull request may close these issues.

3 participants