-
Notifications
You must be signed in to change notification settings - Fork 16
Add initial JVM example #1
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
Conversation
3rdparty/jvm/com/google/guava/BUILD
Outdated
group="com.google.guava", | ||
artifact="guava", | ||
version="31.0.1-jre", | ||
# Because `guava` provides a package which does not match its `group`, we explicitly list it here, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment applies to acyclic as well but perhaps you're expecting they read the whole repo at which point the comment becomes redundant?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it makes sense to duplicate with acylic
too. We shouldn't assume that people have read this already. Duplication is often a good thing in docs.
"version": "0.2.1", | ||
"packaging": "jar" | ||
}, | ||
"directDependencies": [], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Obviously not for now or even maybe ever but camelCase snake_case mixing in the keys is twitch-inducing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Relatedly, probably better to add a versioning field for the lockfile format now rather than later.
/.pants.d/ | ||
/dist/ | ||
/.pids | ||
/.pants.workdir.file_lock* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mental TODO to move the pid and file lock under .pants.d at some point?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! What do you think about splitting into example-java
and example-scala
...? I know that's more code to maintain, but I suspect there are lots of Java-only shops where the Scala stuff would be distracting.
3rdparty/jvm/com/google/guava/BUILD
Outdated
group="com.google.guava", | ||
artifact="guava", | ||
version="31.0.1-jre", | ||
# Because `guava` provides a package which does not match its `group`, we explicitly list it here, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it makes sense to duplicate with acylic
too. We shouldn't assume that people have read this already. Duplication is often a good thing in docs.
I'm going to leave it for now because ~all of our past consumers used Scala, but I'll add notes to the |
pants.toml
Outdated
# backend can be used independently, so there is no need to expose Scala BUILD file | ||
# symbols if you have a pure-Java repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto pure-scala
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's far less common to have a Scala repo with no Java at all, so I think it's fine not to belabor this point.
README.md
Outdated
and Scala backends can be independently enabled, so there is no need to expose Scala BUILD file | ||
symbols if you have a pure-Java repository. See comments in the `backends` section of | ||
[`pants.toml`](./pants.toml). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pure Scala too?
No description provided.