Skip to content

Commit

Permalink
Add missing syntax highlighting in README.md (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonMarquis authored Apr 28, 2024
1 parent caaf698 commit 11c773d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This plugin is designed to be used in a GitHub Actions workflow, and is tightly
For other uses, the [core plugin](https://plugins.gradle.org/plugin/org.gradle.github-dependency-graph-gradle-plugin) (`org.gradle.github.GitHubDependencyGraphPlugin`)
should be applied to the `Gradle` instance via a Gradle init script as follows:

```
```groovy
import org.gradle.github.GitHubDependencyGraphPlugin
initscript {
repositories {
Expand Down Expand Up @@ -106,7 +106,7 @@ the you should be able to update your `dependency-verification.xml` file using `

However, if this doesn't work, you can add the following to your `dependency-verificaton.xml` file:

```
```xml
<trusted-keys>
<trusted-key id="7B79ADD11F8A779FE90FD3D0893A028475557671" group="org.gradle" name="github-dependency-graph-gradle-plugin"/>
</trusted-keys>
Expand All @@ -132,7 +132,7 @@ apply plugin: org.gradle.dependencygraph.simple.SimpleDependencyGraphPlugin

and then execute the task to resolve all dependencies in your project:

```
```shell
./gradlew -I init.gradle --dependency-verification=off --no-configuration-cache --no-configure-on-demand :ForceDependencyResolutionPlugin_resolveAllDependencies
```

Expand All @@ -147,7 +147,7 @@ After generating the dependency reports as described, it is possible to determin
3. Use the built-in [dependencyInsight](https://docs.gradle.org/current/userguide/viewing_debugging_dependencies.html#dependency_insights) task to determine exactly how the dependency was resolved. The `path` indicates the project where the task should be executed, and the `configuration` is an input to the task.

For example, given the following from the `dependency-resolution.json` report:
```
```json
"dependency" : "com.google.guava:guava:32.1.3-jre",
"effectiveScope" : "Unknown",
"resolvedBy" : [ {
Expand All @@ -158,7 +158,7 @@ For example, given the following from the `dependency-resolution.json` report:
```

You would run the command:
```
```shell
./gradlew :my-subproject:dependencyInsight --configuration compileClasspath --dependency com.google.guava:guava:32.1.3-jre
```

Expand Down

0 comments on commit 11c773d

Please sign in to comment.