[
https://issues.apache.org/jira/browse/BEAM-4382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16484496#comment-16484496
]
Scott Wegner commented on BEAM-4382:
------------------------------------
I spoke with [~lcwik] and he added some context on how we might accomplish #2
(Convert the archetype generation to gradle):
* The archetype output is just a JAR file, so we should be able to use the
gradle Jar task to produce the matching jar.
* The Maven build also includes tests which compare the generated files to an
expected set (with token replacement). It's not clear how this could be
converted into the Gradle build without re-implementing a lot of the logic.
* Since these archetypes don't change often, it should be sufficient to rely
on the post-commits which actually generate a project from the NightlySnapshot
archetypes and run a pipeline from it. Thus, it would be ok to remove the unit
tests which are difficult to port.
> Maven archetype generation should not depend on parent pom files
> -----------------------------------------------------------------
>
> Key: BEAM-4382
> URL: https://issues.apache.org/jira/browse/BEAM-4382
> Project: Beam
> Issue Type: Improvement
> Components: build-system
> Reporter: Scott Wegner
> Priority: Minor
>
> Currently, the sdks/java/maven-archetype projects shell out to maven in order
> to generate the archetypes. The project pom files use parent pom's, and thus
> create a dependency on maintaining the existing Maven pom files.
> We should break the dependency from this project to the rest of the pom files
> such that they can eventually be retired.
> Some ideas for breaking the dependency:
> 1. Move the necessary logic inherited from the parent pom's directly into the
> archetype project pom files and remove the parent dependency. There shouldn't
> be much that the archetype build actually depends on.
> 2. Convert the archetype generation to gradle. I'm not sure whether a native
> Gradle plugin exists, but the logic for jar generation should be simple.
> There has been some conversation [on the dev
> list|https://lists.apache.org/thread.html/c52a34d2e7cbb59f5c2d27a8ccebe542a21a214aab30bfb6f6f6f9cc@%3Cdev.beam.apache.org%3E]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)