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

Fix task execution for certain configurations #1

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

alex-bach
Copy link

There is not JIRA page yet to document the issues.

Copy link

@poseidon-mysugr poseidon-mysugr left a comment

Choose a reason for hiding this comment

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

LGTM, but I'd remove all changes except the fix itself before opening a PR against upstream.

}
project.tasks.getByName("check").dependsOn(apiCheck)
}

// the task handed to isSatisfiedBy is never used, so it does not matter what we hand over.

Choose a reason for hiding this comment

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

I think passing this is actually the correct task. The gradle api is old java code, so this is intended to be some class in some other file, hence they pass the Task into the callback. with kotlin you almost never need it, because if used with a lambda, you capture it anyways. TL/DR: I'd just remove that comment.

@alex-bach alex-bach force-pushed the feature/BCV-1 branch 2 times, most recently from 2bf8b7f to 02527d0 Compare March 15, 2021 17:37
@alex-bach alex-bach changed the base branch from develop to master March 15, 2021 21:50
@alex-bach alex-bach changed the base branch from master to develop March 15, 2021 21:51
whether tasks should be executed. This fixes a bug where tasks would
not be executed, because srcDirs would not yet exist at configuration time.
@alex-bach alex-bach changed the title BCV-1 Fix task execution for certain configurations Fix task execution for certain configurations Mar 15, 2021
Copy link

@poseidon-mysugr poseidon-mysugr left a comment

Choose a reason for hiding this comment

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

LGTM!

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.

2 participants