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

Add appServicesRootDir attribute gradle should generally use instead … #6530

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mhammond
Copy link
Member

…of rootDir.

The intent is that this will be the same as rootDir when in app-services, but magically turn into the root of the app-services tree once in mozilla-central.

The intent here is to avoid needing to touch these files after "vendoring" into m-c. @rvandermeulen does this make sense to you?

…of rootDir.

The intent is that this will be the same as `rootDir` when in app-services, but magically
turn into the root of the app-services tree once in mozilla-central.
includeBuild('tools/nimbus-gradle-plugin') {
// We prefer `appServicesRootDir` over `rootDir` to help us on the path to the monorepo.
// (They are the same in app-services but different in moz-central)
def maybeAppServicesRootDir = new File(rootDir, "services/app-services")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some of this probably highlights my poor groovy/gradle skills, but I couldn't work out a sane way to share this variable both out and inside setupProject, so this is what I came up with.


if (gradle.rootProject.hasProperty("nightlyVersion")) {
if (gradle.hasProperty("mozconfig")) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Get something sane from a build in m-c - not clear how (or even if) we need a dedicated version string once landed.

@@ -2,9 +2,8 @@ plugins {
alias libs.plugins.gradle.python.envs
}

apply from: "$rootDir/build-scripts/component-common.gradle"
apply from: "$rootDir/build-scripts/protobuf-common.gradle"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

places no longer needs protobuf.

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