-
Notifications
You must be signed in to change notification settings - Fork 39
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
diktat-gradle-plugin #514
diktat-gradle-plugin #514
Conversation
### What's done: * Added gradle plugin sources * Added gradle plugin to maven build
### What's done: * Added readme for gradle plugin * Disable gradle invocation on windows
### What's done: * Update build.gradle.kts
…' into feature/diktat-gradle-plugin#259
Codecov Report
@@ Coverage Diff @@
## master #514 +/- ##
=========================================
Coverage 81.79% 81.79%
Complexity 1596 1596
=========================================
Files 76 76
Lines 4026 4026
Branches 1278 1278
=========================================
Hits 3293 3293
Misses 215 215
Partials 518 518
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
### What's done: * Added instructions to README.md * Moved tasks to separate class * Fixed detekt check
…le-plugin#259 # Conflicts: # README.md
### What's done: * Generate sources in gradle * Updated README.md
### What's done: * Fix detekt run on gradle plugin marker
### What's done: * Support for gradle <6.4 * Refactoring
…' into feature/diktat-gradle-plugin#259
### What's done: * Detekt code style
### What's done: * Diktat code style
### What's done: * Disable version check to use JavaExec on gradle 6.8+ for now
diktat-gradle-plugin/src/main/kotlin/org/cqfn/diktat/plugin/gradle/DiktatExtension.kt
Show resolved
Hide resolved
diktat-gradle-plugin/src/main/kotlin/org/cqfn/diktat/plugin/gradle/DiktatGradlePlugin.kt
Show resolved
Hide resolved
diktat-gradle-plugin/src/main/kotlin/org/cqfn/diktat/plugin/gradle/DiktatGradlePlugin.kt
Outdated
Show resolved
Hide resolved
// configuration to provide JavaExec with correct classpath | ||
val diktatConfiguration = project.configurations.create(DIKTAT_CONFIGURATION) { configuration -> | ||
configuration.isVisible = false | ||
configuration.dependencies.add(project.dependencies.create("org.jetbrains.kotlin:kotlin-stdlib:1.4.10")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there any way not to hardcode dependencies?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added passing versions via properties from maven and a little of codegen to use them in plugin: 300fa1d
diktat-gradle-plugin/src/main/kotlin/org/cqfn/diktat/plugin/gradle/Utils.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
### What's done: * Fixes after review
### What's done: * Supply versions via project property
### What's done: * Minor changes
What's done:
This pull request closes #259
This should work on gradle 6.4+, because in this version they have introducesAdded version check and usage ofmainClass
property forJavaExec
instead of soon to be deprecatedmain
.main
for older gradle versions, tested it on gradle 5.0.Fixme
JavaExec
.