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

Avoid snapshotting sourceLink.localDirectory input #2807

Merged
merged 5 commits into from Jan 13, 2023

Commits on Jan 10, 2023

  1. Avoid snapshotting sourceLink.localDirectory input

    A typical use case in a project with complex source root setup is to set sourceLink.localDirectory to the root of the project checkout dir and remoteUrl to the root of the project VCS url respectively.
    However, since this property was marked as InputDirectory, in that case Gradle snapshotted hashes of all files in this entire project directory before running the Dokka task (including for example .git and .gradle directories). This could be very slow in big projects and also result in various Gradle warnings.
    
    Now localDirectory is not an input property, but its relativized path is stored in another read-only input string property. Therefore, it invalidates task outputs when its value changes, but not when any content inside it.
    ilya-g committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    42a9b9c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1a8d17f View commit details
    Browse the repository at this point in the history

Commits on Jan 13, 2023

  1. Configuration menu
    Copy the full SHA
    4cd0146 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8abe7ea View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ef36595 View commit details
    Browse the repository at this point in the history