janbarari / gradle-analytics-plugin

A free Gradle plugin to analyze your project builds. It provides unique visual and text metrics in HTML format.
MIT License
159 stars 5 forks source link

Starting an external process `git rev-parse` is not suported during configuration time on Gradle 8.1 #121

Closed Nek-12 closed 1 year ago

Nek-12 commented 1 year ago

After upgrading to gradle 8.1 build started failing with

Configuration cache problems found in this build.

1 problem was found storing the configuration cache.
- Plugin 'io.github.janbarari.gradle-analytics-plugin': external process started 'git rev-parse --abbrev-ref HEAD'
  See https://docs.gradle.org/8.1/userguide/configuration_cache.html#config_cache:requirements:external_processes

See the complete report at file://configuration-cache-report.html
> Starting an external process 'git rev-parse --abbrev-ref HEAD' during configuration time is unsupported.

Configuration:

gradleAnalyticsPlugin {

    database {
        local = sqlite {
            path = "${rootProject.rootDir}/scripts/analytics"
            name = "analytics"
        }
    }

    trackingTasks = setOf(
        "assembleRelease",
    )

    trackingBranches = setOf(
        "master",
    )

    // outputPath = "${rootProject.rootDir}/scripts/analytics"
}

Analytics Plugin: 1.0.0-beta9