Skip to content

Commit e40da32

Browse files
authored
Merge pull request #37 from gradle/dd/rename-output
Rename the generated report file
2 parents 308410b + 739ee3c commit e40da32

File tree

7 files changed

+11
-7
lines changed

7 files changed

+11
-7
lines changed

.github/workflows/gradle.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,6 @@ jobs:
7777
uses: actions/upload-artifact@v3
7878
with:
7979
name: plugin-json
80-
path: build/reports/github-dependency-report/github-dependency-manifest.json
80+
path: build/reports/github-dependency-graph-plugin/github-dependency-snapshot.json
81+
if-no-files-found: error
8182

plugin-self-test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
./gradlew :plugin:publishPluginMavenPublicationToLocalPluginsRepository
55

66
# Invoke a build extracting the GitHub Dependency Graph
7-
./gradlew --no-configuration-cache --no-build-cache -I plugin-self-test.init.gradle --console=plain $*
7+
./gradlew --no-configuration-cache --no-build-cache -I plugin-self-test.init.gradle $*
88

99
if [[ -z "${GITHUB_TOKEN}" ]]; then
1010
echo "GITHUB_TOKEN must be set in order to submit dependency graph"
@@ -16,5 +16,5 @@ else
1616
-H "Authorization: Bearer $GITHUB_TOKEN"\
1717
-H "X-GitHub-Api-Version: 2022-11-28" \
1818
https://api.github.com/repos/gradle/github-dependency-extractor/dependency-graph/snapshots \
19-
-d @build/reports/github-dependency-report/github-dependency-manifest.json
19+
-d @build/reports/github-dependency-graph-plugin/github-dependency-snapshot.json
2020
fi

plugin-self-test.init.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ initscript {
66
}
77
}
88
dependencies {
9-
classpath "org.gradle:github-dependency-graph-gradle-plugin:0.0.1"
9+
classpath "org.gradle:github-dependency-graph-gradle-plugin:+"
1010
}
1111
}
1212
apply plugin: GitHubDependencyGraphPlugin

plugin-test/src/test/groovy/org/gradle/github/dependencygraph/BaseExtractorTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ abstract class BaseExtractorTest extends Specification {
5050
SimpleGradleExecuter createExecuter() {
5151
// Create a new JsonManifestLoader for each invocation of the executer
5252
File manifestFile =
53-
testDirectory.file("build/reports/github-dependency-report/github-dependency-manifest.json")
53+
testDirectory.file("build/reports/github-dependency-graph-plugin/github-dependency-snapshot.json")
5454
loader = new JsonRepositorySnapshotLoader(manifestFile)
5555
return createExecuter(testGradleVersion)
5656
}

plugin/src/main/kotlin/org/gradle/github/dependencygraph/internal/DependencyFileWriter.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ private constructor(
2020
manifestFile.parentFile.mkdirs()
2121
manifestFile.writeText(JacksonJsonSerializer.serializeToJson(graph))
2222
writtenFile = true
23+
LOGGER.lifecycle("\nGitHubDependencyGraphPlugin: Wrote dependency snapshot to \n${manifestFile.canonicalPath}")
2324
return manifestFile
2425
}
2526

@@ -43,7 +44,7 @@ private constructor(
4344
return DependencyFileWriter(
4445
File(
4546
buildDirectory,
46-
"reports/github-dependency-report/github-dependency-manifest.json"
47+
"reports/github-dependency-graph-plugin/github-dependency-snapshot.json"
4748
),
4849
loggerWarning
4950
)

release/changes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
Preliminary release of dependency graph plugin.
2+
3+
- Moved generated report file to `build/reports/github-dependency-graph-plugin/github-dependency-snapshot.json`

release/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.1
1+
0.0.2

0 commit comments

Comments
 (0)