Skip to content

Commit

Permalink
Merge pull request #527 from Tapchicoma/tapchicoma/495/eager-tasks-cr…
Browse files Browse the repository at this point in the history
…eation-failure

Register Kotlin script tasks first.
  • Loading branch information
Tapchicoma authored Sep 8, 2021
2 parents d945407 + ba63f8c commit 3862e9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
- Pre-commit hook causing conflicts ([issue: #443](https://github.com/JLLeitschuh/ktlint-gradle/issues/443)) ([#502](https://github.com/JLLeitschuh/ktlint-gradle/pull/502))
- `ktlintFormat` create empty directories in `src/` dir ([issue: #423](https://github.com/JLLeitschuh/ktlint-gradle/issues/423))
- Add Git hook task breaks configuration cache ([issue: #505](https://github.com/JLLeitschuh/ktlint-gradle/issues/505))
- Plugin failed to apply on eager tasks creation ([issue: #495](https://github.com/JLLeitschuh/ktlint-gradle/issues/495))

### Removed
- ?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ open class KtlintPlugin : Plugin<Project> {
// Apply the idea plugin
target.plugins.apply(KtlintIdeaPlugin::class.java)

holder.addKtLintTasksToKotlinPlugin()
holder.addKotlinScriptTasks()
holder.addKtLintTasksToKotlinPlugin()
holder.addGenerateBaselineTask()
holder.addGitHookTasks()
}
Expand Down

0 comments on commit 3862e9a

Please sign in to comment.