Skip to content

Support Isolated Projects#1139

Merged
Goooler merged 7 commits intomainfrom
g/20250110/isolated-projects
Mar 1, 2026
Merged

Support Isolated Projects#1139
Goooler merged 7 commits intomainfrom
g/20250110/isolated-projects

Conversation

@Goooler
Copy link
Member

@Goooler Goooler commented Jan 10, 2025

Refs #907.

https://docs.gradle.org/current/userguide/isolated_projects.html


  • CHANGELOG's "Unreleased" section has been updated, if applicable.

@Goooler Goooler force-pushed the g/20241225/migrate-func-tests branch 2 times, most recently from fa38161 to 17d7df6 Compare January 10, 2025 05:03
Base automatically changed from g/20241225/migrate-func-tests to main January 10, 2025 09:11
@Goooler Goooler changed the title Enable Isolated Projects flags in functional tests Support Isolated Projects Jan 10, 2025
@Goooler Goooler force-pushed the g/20250110/isolated-projects branch from 4fcc4c3 to 2998d4d Compare January 10, 2025 09:20
@Goooler
Copy link
Member Author

Goooler commented Jan 10, 2025

https://scans.gradle.com/s/yz3nrgegbl3vc/tests/overview?outcome=FAILED


  • Unknown location: Project ':server' cannot access 'Project.group' functionality on another project ':client'
  • Unknown location: Project ':server' cannot access 'Project.version' functionality on another project ':client'

(dependency.group == null || resolvedDependency.moduleGroup.matches(dependency.group!!.toRegex())) &&
resolvedDependency.moduleName.matches(dependency.name.toRegex()) &&
(dependency.version == null || resolvedDependency.moduleVersion.matches(dependency.version!!.toRegex()))


  • Unknown location: Project ':impl' cannot access 'Project.configurations' functionality on another project ':api'
  • Unknown location: Project ':impl' cannot access 'Project.files' functionality on another project ':api'

fun getApiJarsFromProject(project: Project): FileCollection {
val apiDependencies = project.configurations.findByName("api")?.dependencies
?: return project.files()
val runtimeConfiguration = project.runtimeConfiguration
val apiJars = mutableListOf<File>()
apiDependencies.forEach { dep ->
when (dep) {
is ProjectDependency -> {
apiJars.addAll(getApiJarsFromProject(dep.dependencyProjectCompat(project)))
addJar(runtimeConfiguration, dep, apiJars)
}

@Goooler

This comment was marked as outdated.

@gemini-code-assist

This comment was marked as outdated.

@Goooler

This comment was marked as outdated.

gemini-code-assist[bot]

This comment was marked as outdated.

@Goooler Goooler requested a review from Copilot March 1, 2025 09:13

This comment was marked as outdated.

@Goooler Goooler force-pushed the g/20250110/isolated-projects branch from af858ec to 116787f Compare July 13, 2025 03:01
@Goooler Goooler force-pushed the g/20250110/isolated-projects branch from 116787f to 38de84d Compare March 1, 2026 12:42
@Goooler Goooler force-pushed the g/20250110/isolated-projects branch from 8c5b6c4 to 45c8590 Compare March 1, 2026 14:12
@Goooler Goooler marked this pull request as ready for review March 1, 2026 14:12
@Goooler Goooler requested a review from Copilot March 1, 2026 14:13

This comment was marked as outdated.

This comment was marked as outdated.

Copy link
Contributor

Copilot AI commented Mar 1, 2026

@Goooler I've opened a new pull request, #1943, to work on those changes. Once the pull request is ready, I'll request review from you.

@Goooler Goooler force-pushed the g/20250110/isolated-projects branch from 45d21a9 to 504df7e Compare March 1, 2026 14:38
@Goooler Goooler requested a review from Copilot March 1, 2026 14:52

This comment was marked as outdated.

This comment was marked as outdated.

@Goooler Goooler enabled auto-merge (squash) March 1, 2026 15:26
@Goooler Goooler merged commit 09f5081 into main Mar 1, 2026
12 checks passed
@Goooler Goooler deleted the g/20250110/isolated-projects branch March 1, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants