Skip to content

Commit

Permalink
Use v1.1.0 of plugin from staging
Browse files Browse the repository at this point in the history
  • Loading branch information
bigdaz committed Jan 11, 2024
1 parent 6dfecfc commit c92ea2f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ buildscript {
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 pluginRepositoryUrl = getInputParam('gradle.plugin-repository.url') ?: 'https://plugins.grdev.net/m2'

repositories {
maven { url pluginRepositoryUrl }
}
dependencies {
classpath "org.gradle:github-dependency-graph-gradle-plugin:1.0.0"
classpath "org.gradle:github-dependency-graph-gradle-plugin:1.1.0"
}
}
apply plugin: org.gradle.github.GitHubDependencyGraphPlugin
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ if (isTopLevelBuild) {
return
}

def githubOutput = System.getenv("GITHUB_OUTPUT")
if (githubOutput) {
new File(githubOutput) << "dependency-graph-file=${reportFile.absolutePath}\n"
}

println "Generating dependency graph into '${reportFile}'"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ class TestDependencyGraph extends BaseInitScriptTest {

then:
assert reportFile.exists()
assert gitHubOutputFile.text == "dependency-graph-file=${reportFile.absolutePath}\n"

where:
testGradleVersion << [GRADLE_8_X]
Expand Down Expand Up @@ -116,7 +115,6 @@ class TestDependencyGraph extends BaseInitScriptTest {
GITHUB_DEPENDENCY_GRAPH_SHA: "123456",
GITHUB_DEPENDENCY_GRAPH_WORKSPACE: testProjectDir.absolutePath,
DEPENDENCY_GRAPH_REPORT_DIR: reportsDir.absolutePath,
GITHUB_OUTPUT: gitHubOutputFile.absolutePath
]
}

Expand All @@ -127,8 +125,4 @@ class TestDependencyGraph extends BaseInitScriptTest {
def getReportFile() {
return new File(reportsDir, "CORRELATOR.json")
}

def getGitHubOutputFile() {
return new File(testProjectDir, "GITHUB_OUTPUT")
}
}

0 comments on commit c92ea2f

Please sign in to comment.