mirror of
https://github.com/gradle/actions.git
synced 2025-08-26 11:51:27 +08:00
17 lines
648 B
Groovy
17 lines
648 B
Groovy
buildscript {
|
|
def getInputParam = { String name ->
|
|
def envVarName = name.toUpperCase().replace('.', '_').replace('-', '_')
|
|
return System.getProperty(name) ?: System.getenv(envVarName)
|
|
}
|
|
def pluginRepositoryUrl = getInputParam('gradle.plugin-repository.url') ?: 'https://plugins.gradle.org/m2'
|
|
def dependencyGraphPluginVersion = getInputParam('dependency-graph-plugin.version') ?: '1.2.1'
|
|
|
|
repositories {
|
|
maven { url pluginRepositoryUrl }
|
|
}
|
|
dependencies {
|
|
classpath "org.gradle:github-dependency-graph-gradle-plugin:${dependencyGraphPluginVersion}"
|
|
}
|
|
}
|
|
apply plugin: org.gradle.github.GitHubDependencyGraphPlugin
|