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

Migrate GradleInspector's custom plugin to github-dependency-graph-gradle-plugin #8377

Open
sschuberth opened this issue Mar 5, 2024 · 0 comments
Labels
analyzer About the analyzer tool enhancement Issues that are considered to be enhancements

Comments

@sschuberth
Copy link
Member

sschuberth commented Mar 5, 2024

Instead of maintain our own Gradle plugin, it should be pretty much straight forward to migrate to the official github-dependency-graph-gradle-plugin instead, applying SimpleDependencyGraphPlugin and running the ForceDependencyResolutionPlugin_resolveAllDependencies task similar to

// Running this like
//
// $ ./gradlew -I ~/Downloads/github-dependency-graph-gradle-plugin.init.gradle ForceDependencyResolutionPlugin_resolveAllDependencies
//
// creates these two files:
//
// - ./build/reports/dependency-graph-snapshots/dependency-graph.json
// - ./build/reports/dependency-graph-snapshots/dependency-list.txt

initscript {
    repositories {
        maven {
            url = uri("https://plugins.gradle.org/m2/")
        }
    }

    dependencies {
        classpath("org.gradle:github-dependency-graph-gradle-plugin:1.2.2")
    }
}

apply plugin: org.gradle.dependencygraph.simple.SimpleDependencyGraphPlugin

The only blocker I currently see might be gradle/github-dependency-graph-gradle-plugin#42, which would be needed to solve #7995.

@sschuberth sschuberth added enhancement Issues that are considered to be enhancements analyzer About the analyzer tool labels Mar 5, 2024
@sschuberth sschuberth changed the title Migrate GradleInspector's custom plugin to github-dependency-graph-gradle-plugin Migrate GradleInspector's custom plugin to github-dependency-graph-gradle-plugin Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer About the analyzer tool enhancement Issues that are considered to be enhancements
Projects
None yet
Development

No branches or pull requests

1 participant