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

Unify tests/samples naming pattern #264

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

davissuber
Copy link
Contributor

This pull request addresses an omission in #262, where we'd attempt to generate documents even for sample and test modules, which are not published.

In doing so, we noticed an opportunity to make the naming pattern more consistent for all nested modules in the project - namely, the :compiler:ast is compiler-ast (we figured it's for ease of publication), but despite the samples and tests modules being unpublished, unifying the naming pattern could make it look/feel more consistent and make preventing document generation a bit easier.

This commit follows the naming pattern we use for the compiler/compiler-ast
module nesting. Note that these tests/samples modules are not published so
these namings are purely for consistency reason and ease of identification.
outputDirectory.set(new File(buildDir, "docs/partial"))
moduleName.set(project.property("POM_ARTIFACT_ID").toString())
moduleVersion.set(project.property("VERSION_NAME").toString())
if (!project.name.contains("samples") && !project.name.contains("tests")) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is one of the main driver for the naming unification, without the rename, we'd have to check the project.parent.name since not all modules in "samples" contain the word "sample".

@@ -29,28 +29,35 @@ pluginManagement {
}

rootProject.name = 'motif'
include 'lib'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also did a alphabetization of this list in addition to the : to - adjustment.

@davissuber davissuber merged commit b57ab9b into uber:main Mar 25, 2024
4 checks passed
@davissuber davissuber deleted the ds-unify-test-sample-struct branch March 25, 2024 21:49
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.

2 participants