Skip to content

Commit

Permalink
Some more details on automatic inclusion of dependency configurations.
Browse files Browse the repository at this point in the history
  • Loading branch information
marchermans committed May 13, 2024
1 parent cdf26c6 commit 6bca406
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ This configuration is used to add dependencies to your local projects runtime on

#### LocalRunRuntime (Per SourceSet)
This configuration is used to add dependencies to the local runtime of the runs you add the SourceSets too, without exposing them to the runtime of other runs.
This requires automatic dependency injection from sourcesets per run to be enabled (see below).

#### RunRuntime (Per Run)
This configuration is used to add dependencies to the runtime of a specific run only, without exposing them to the runtime of other runs.
Expand All @@ -271,6 +272,24 @@ runs {
}
}
```
##### Automatic inclusion of a sourcesets local run runtime configuration in a runs configuration
By default, the local run runtime configuration of a sourceset is automatically included in the runs configuration of the run.
If you want to disable this, you can set the following property in your gradle.properties:
```properties
neogradle.subsystems.conventions.sourceset.automatic-inclusion-local-run-runtime=false
```
This is equivalent to setting the following in your build.gradle:
```groovy
runs {
configureEach { run ->
run.modSource sourceSets.main
run.dependencies {
runtime sourceSets.main.configurations.localRunRuntime
}
}
}
```
If this functionality is disabled then the relevant configurations local run runtime configurations will not be created.

### IDE Integrations
To disable the IDE integrations, you can set the following property in your gradle.properties:
Expand Down

0 comments on commit 6bca406

Please sign in to comment.