Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Include platform projects when running from Gradle or the IDE #7728

Merged
merged 1 commit into from
Oct 25, 2023

Conversation

sschuberth
Copy link
Member

Use a Gradle 8.4 dependencyScope 1 to extend the runtimeClasspath with the pluginClasspath. This improves the solution from 1708ac3 by supporting to run ORT from Gradle or the IDE with platform projects / plugins in the classpath, but still do not publish them as part of the "dependencyManagement" in the POM. See 2 for context.

Use a Gradle 8.4 `dependencyScope` [1] to extend the `runtimeClasspath`
with the `pluginClasspath`. This improves the solution from 1708ac3 by
supporting to run ORT from Gradle or the IDE with platform projects /
plugins in the classpath, but still do not publish them as part of the
"dependencyManagement" in the POM. See [2] for context.

[1]: https://docs.gradle.org/8.4/release-notes.html#easier-to-create-role-focused-configurations
[2]: gradle/gradle#10861 (comment)

Signed-off-by: Sebastian Schuberth <[email protected]>
@sschuberth sschuberth requested a review from a team as a code owner October 20, 2023 11:13
@sschuberth sschuberth enabled auto-merge (rebase) October 20, 2023 11:13
@codecov
Copy link

codecov bot commented Oct 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (94f5687) 67.80% compared to head (40961f3) 67.80%.
Report is 10 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #7728   +/-   ##
=========================================
  Coverage     67.80%   67.80%           
- Complexity     2045     2049    +4     
=========================================
  Files           352      352           
  Lines         16827    16853   +26     
  Branches       2379     2396   +17     
=========================================
+ Hits          11410    11428   +18     
- Misses         4427     4433    +6     
- Partials        990      992    +2     
Flag Coverage Δ
funTest-docker 67.85% <ø> (-0.02%) ⬇️
funTest-non-docker 36.44% <ø> (+0.01%) ⬆️
test 34.32% <ø> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 2 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sschuberth sschuberth disabled auto-merge October 25, 2023 09:22
@sschuberth
Copy link
Member Author

Merging as urgently needed by third-party ORT development.

@sschuberth sschuberth merged commit 52e90c1 into main Oct 25, 2023
22 checks passed
@sschuberth sschuberth deleted the fix-dev-run-with-platform-projects branch October 25, 2023 09:23
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.

1 participant