Skip to content

Commit

Permalink
Switched from creating tasks to register for Jacoco and Jar plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
musketyr authored and aalmiray committed Jun 8, 2022
1 parent e744cb7 commit 6d0a67a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ class JacocoPlugin extends AbstractKordampPlugin {
Task jacocoReportTask = project.tasks.findByName(taskName)

if (!jacocoReportTask) {
jacocoReportTask = project.tasks.create(taskName, JacocoReport) { t ->
jacocoReportTask = project.tasks.register(taskName, JacocoReport) { t ->
t.dependsOn testTask
t.group = 'Reporting'
t.description = "Generates code coverage report for the ${testTask.name} task."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class JarPlugin extends AbstractKordampPlugin {
Task jarTask = project.tasks.findByName(taskName)

if (!jarTask) {
jarTask = project.tasks.create(taskName, Jar) {
jarTask = project.tasks.register(taskName, Jar) {
dependsOn project.sourceSets.main.output
group = org.gradle.api.plugins.BasePlugin.BUILD_GROUP
description = 'Assembles a jar archive'
Expand Down

1 comment on commit 6d0a67a

@paulk-asert
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Would be great to see a release including this! 😉😜🙃

Please sign in to comment.