You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a multiproject-build each project use their own gradle.properties while accessed from a settings.gradle file.
Current Behavior
Each project in a multiproject-build use the gradle.properties of the rootProject if accessed from a settings.gradle file and ignore the properties of the gradle.properties file declared in the directory of the included project.
Context
It had the expected behaviour with 6.1.1 and changed with 6.2.
We have many generic tasks used by many projects and their behaviour can be changed by setting properties. For example we conditionally include some default projects (composite build) if the project is of a specific type (this type is set via property in the gradle.properties). Sure we can move these props into the project-specific settings.gradle file, but this seems kind of inefficient.
To ensure `GradleProperties` is loaded before processing the settings scripts of
any included builds.
The integration with instant execution is mediated by the newly introduced
`GradlePropertiesController` service which guarantees `GradleProperties` is
loaded only once during a build and from the correct location.
Fixes#12381
To ensure `GradleProperties` is loaded before processing the settings scripts of
any included builds.
The integration with instant execution is mediated by the newly introduced
`GradlePropertiesController` service which guarantees `GradleProperties` is
loaded only once during a build and from the correct location.
Fixes#12381
Expected Behavior
In a multiproject-build each project use their own gradle.properties while accessed from a settings.gradle file.
Current Behavior
Each project in a multiproject-build use the gradle.properties of the rootProject if accessed from a settings.gradle file and ignore the properties of the gradle.properties file declared in the directory of the included project.
Context
It had the expected behaviour with 6.1.1 and changed with 6.2.
We have many generic tasks used by many projects and their behaviour can be changed by setting properties. For example we conditionally include some default projects (composite build) if the project is of a specific type (this type is set via property in the gradle.properties). Sure we can move these props into the project-specific settings.gradle file, but this seems kind of inefficient.
Steps to Reproduce
Github Example
Your Environment
6.2 Build scan
6.1.1 Build Scan
The text was updated successfully, but these errors were encountered: