You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Luke Cwik (JIRA)" <ji...@apache.org> on 2019/04/01 17:07:01 UTC
[jira] [Comment Edited] (BEAM-4046) Decouple gradle project names
and maven artifact ids
[ https://issues.apache.org/jira/browse/BEAM-4046?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16806991#comment-16806991 ]
Luke Cwik edited comment on BEAM-4046 at 4/1/19 5:06 PM:
---------------------------------------------------------
Michael, what your suggesting makes sense to me. We also ran into two other problems:
* we had more then one Gradle project with the same directory name even though they were under a different parent folder (I think it was "core") and that was leading to some strange build time behavior.
* we use the project names during [javadoc generation|https://github.com/apache/beam/blob/master/sdks/java/javadoc/build.gradle].
was (Author: lcwik):
Michael, what your suggesting makes sense to me. We also ran into two other problems:
During the gradle migration, we used to have something like:
* we had more then one Gradle project with the same directory name even though they were under a different parent folder (I think it was "core") and that was leading to some strange build time behavior.
* we use the project names during [javadoc generation|https://github.com/apache/beam/blob/master/sdks/java/javadoc/build.gradle].
> Decouple gradle project names and maven artifact ids
> ----------------------------------------------------
>
> Key: BEAM-4046
> URL: https://issues.apache.org/jira/browse/BEAM-4046
> Project: Beam
> Issue Type: Sub-task
> Components: build-system
> Reporter: Kenneth Knowles
> Priority: Major
>
> In our first draft, we had gradle projects like {{":beam-sdks-java-core"}}. It is clumsy and requires a hacky settings.gradle that is not idiomatic.
> In our second draft, we changed them to names that work well with Gradle, like {{":sdks:java:core"}}. This caused Maven artifact IDs to be wonky.
> In our third draft, we regressed to the first draft to get the Maven artifact ids right.
> These should be able to be decoupled. It seems there are many StackOverflow questions on the subject.
> Since it is unidiomatic and a poor user experience, if it does turn out to be mandatory then it needs to be documented inline everywhere - the settings.gradle should say why it is so bizarre, and each build.gradle should indicate what its project id is.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)