-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(gradle): track childProjects in properties report (#27488)
<!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior <!-- This is the behavior we have today --> ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #27160 (cherry picked from commit 7c45589)
- Loading branch information
1 parent
e17b775
commit cfdf9a0
Showing
5 changed files
with
150 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
109 changes: 109 additions & 0 deletions
109
packages/gradle/src/utils/__mocks__/gradle-properties-report-child-projects.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
|
||
------------------------------------------------------------ | ||
Root project 'My Application' | ||
------------------------------------------------------------ | ||
|
||
allprojects: [root project 'My Application', project ':app', project ':mylibrary'] | ||
android.nonTransitiveRClass: true | ||
android.useAndroidX: true | ||
ant: org.gradle.api.internal.project.DefaultAntBuilder@ee42530 | ||
antBuilderFactory: org.gradle.api.internal.project.DefaultAntBuilderFactory@5a5e3c76 | ||
artifacts: org.gradle.api.internal.artifacts.dsl.DefaultArtifactHandler_Decorated@3793af5a | ||
asDynamicObject: DynamicObject for root project 'My Application' | ||
baseClassLoaderScope: org.gradle.api.internal.initialization.DefaultClassLoaderScope@4dc8adab | ||
buildDir: /Users/emily/code/tmp/nx-android/build | ||
buildFile: /Users/emily/code/tmp/nx-android/build.gradle | ||
buildPath: : | ||
buildScriptSource: org.gradle.groovy.scripts.TextResourceScriptSource@622acc87 | ||
buildTreePath: : | ||
buildscript: org.gradle.api.internal.initialization.DefaultScriptHandler_Decorated@493cf138 | ||
childProjects: {app=project ':app', mylibrary=project ':mylibrary'} | ||
childProjectsUnchecked: {app=project ':app', mylibrary=project ':mylibrary'} | ||
class: class org.gradle.api.internal.project.DefaultProject_Decorated | ||
classLoaderScope: org.gradle.api.internal.initialization.DefaultClassLoaderScope@72a593e2 | ||
components: SoftwareComponent container | ||
configurationActions: org.gradle.configuration.project.DefaultProjectConfigurationActionContainer@63ff7e3a | ||
configurationTargetIdentifier: org.gradle.configuration.ConfigurationTargetIdentifier$1@6b52321b | ||
configurations: configuration container | ||
convention: org.gradle.internal.extensibility.DefaultConvention@5f289502 | ||
conventionMapping: org.gradle.internal.extensibility.ConventionAwareHelper@71b30aee | ||
crossProjectModelAccess: org.gradle.api.internal.project.DefaultCrossProjectModelAccess@69a5b44c | ||
defaultTasks: [] | ||
deferredProjectConfiguration: org.gradle.api.internal.project.DeferredProjectConfiguration@131d8189 | ||
dependencies: org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler_Decorated@806966d | ||
dependencyFactory: org.gradle.api.internal.artifacts.DefaultDependencyFactory@618b09f9 | ||
dependencyLocking: org.gradle.internal.locking.DefaultDependencyLockingHandler_Decorated@2548d650 | ||
dependencyMetaDataProvider: org.gradle.internal.service.scopes.ProjectScopeServices$ProjectBackedModuleMetaDataProvider@5a261ab9 | ||
dependencyReport: task ':dependencyReport' | ||
depth: 0 | ||
description: null | ||
detachedState: false | ||
displayName: root project 'My Application' | ||
ext: org.gradle.internal.extensibility.DefaultExtraPropertiesExtension@66af4a6e | ||
extensions: org.gradle.internal.extensibility.DefaultConvention@5f289502 | ||
fileOperations: org.gradle.api.internal.file.DefaultFileOperations@5f525383 | ||
fileResolver: org.gradle.api.internal.file.BaseDirFileResolver@3c4be46f | ||
gradle: build 'My Application' | ||
group: | ||
htmlDependencyReport: task ':htmlDependencyReport' | ||
identityPath: : | ||
inheritedScope: org.gradle.internal.extensibility.ExtensibleDynamicObject$InheritedDynamicObject@5652c28d | ||
internalStatus: property(java.lang.Object, fixed(class java.lang.String, release)) | ||
kotlin.code.style: official | ||
kotlin.plugin.loaded.in.projects.1.9.0: :app | ||
layout: org.gradle.api.internal.file.DefaultProjectLayout@750a8619 | ||
libs: extension 'libs' | ||
listenerBuildOperationDecorator: org.gradle.configuration.internal.DefaultListenerBuildOperationDecorator@4233a086 | ||
logger: org.gradle.internal.logging.slf4j.OutputEventListenerBackedLogger@27ef32e | ||
logging: org.gradle.internal.logging.services.DefaultLoggingManager@5a33f0dd | ||
model: root project 'My Application' | ||
modelIdentityDisplayName: null | ||
modelRegistry: org.gradle.model.internal.registry.DefaultModelRegistry@7b289fcc | ||
name: My Application | ||
normalization: org.gradle.normalization.internal.DefaultInputNormalizationHandler_Decorated@244027bf | ||
objects: org.gradle.api.internal.model.DefaultObjectFactory@5152579a | ||
org.gradle.jvmargs: -Xmx2048m -Dfile.encoding=UTF-8 | ||
owner: root project 'My Application' | ||
parent: null | ||
parentIdentifier: null | ||
path: : | ||
pluginContext: false | ||
pluginManager: org.gradle.api.internal.plugins.DefaultPluginManager_Decorated@14a2f075 | ||
plugins: [org.gradle.api.plugins.HelpTasksPlugin$Inject@611c939a, org.gradle.buildinit.plugins.BuildInitPlugin$Inject@2cd76269, org.gradle.buildinit.plugins.WrapperPlugin$Inject@2009557, org.gradle.api.plugins.ReportingBasePlugin$Inject@75934caa, org.gradle.api.plugins.ProjectReportsPlugin$Inject@bc7a22e] | ||
processOperations: org.gradle.process.internal.DefaultExecActionFactory$DecoratingExecActionFactory@2bcbdbd2 | ||
project: root project 'My Application' | ||
projectConfigurator: org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator@e136ccb | ||
projectDir: /Users/emily/code/tmp/nx-android | ||
projectEvaluationBroadcaster: ProjectEvaluationListener broadcast | ||
projectEvaluator: org.gradle.configuration.project.LifecycleProjectEvaluator@4d3e0414 | ||
projectPath: : | ||
projectReport: task ':projectReport' | ||
projectReportAll: task ':projectReportAll' | ||
projectReportDir: /Users/emily/code/tmp/nx-android/build/reports/project | ||
projectReportDirName: project | ||
projects: [root project 'My Application'] | ||
properties: {...} | ||
propertyReport: task ':propertyReport' | ||
providers: org.gradle.api.internal.provider.DefaultProviderFactory_Decorated@4e1c649e | ||
publicType: org.gradle.api.plugins.ProjectReportsPluginConvention | ||
reporting: extension 'reporting' | ||
repositories: repository container | ||
resources: org.gradle.api.internal.resources.DefaultResourceHandler@3bfc23c4 | ||
rootDir: /Users/emily/code/tmp/nx-android | ||
rootProject: root project 'My Application' | ||
rootScript: false | ||
script: false | ||
scriptHandlerFactory: org.gradle.api.internal.initialization.DefaultScriptHandlerFactory@2e1c6544 | ||
scriptPluginFactory: org.gradle.configuration.ScriptPluginFactorySelector@133fca37 | ||
serviceRegistryFactory: org.gradle.internal.service.scopes.BuildScopeServiceRegistryFactory@3e2a745a | ||
services: Project services | ||
standardOutputCapture: org.gradle.internal.logging.services.DefaultLoggingManager@5a33f0dd | ||
state: project state 'EXECUTED' | ||
status: release | ||
subprojects: [project ':app', project ':mylibrary'] | ||
taskDependencyFactory: org.gradle.api.internal.tasks.DefaultTaskDependencyFactory@64128258 | ||
taskReport: task ':taskReport' | ||
taskThatOwnsThisObject: null | ||
tasks: task set | ||
version: unspecified | ||
versionCatalogs: extension 'versionCatalogs' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters