Ryan Skraba created AVRO-3873:
---------------------------------
Summary: [Build][Java] use an avro.version property to help
releases
Key: AVRO-3873
URL: https://issues.apache.org/jira/browse/AVRO-3873
Project: Apache Avro
Issue Type: New Feature
Reporter: Ryan Skraba
The current release process requires updating a number of files. While many of
them are read from {{share/VERSION.txt}}, some of them need to be embedded
directly as strings.
It would be easier and more reliable to script the update process in the Java
pom.xml files if they were defined as properties. This is already the case in
our [avro
archetypes|https://github.com/apache/avro/blob/d75abd591540ef34a334a3d73314f2748c8d868d/lang/java/archetypes/avro-service-archetype/src/main/pom/pom.xml#L36].
The following pom files should be updated to define and use ${avro.version}:
*
lang/java/maven-plugin/src/test/resources/unit/idl/pom-injecting-velocity-tools.xml
* lang/java/maven-plugin/src/test/resources/unit/idl/pom.xml
*
lang/java/maven-plugin/src/test/resources/unit/protocol/pom-injecting-velocity-tools.xml
* lang/java/maven-plugin/src/test/resources/unit/protocol/pom.xml
* lang/java/maven-plugin/src/test/resources/unit/schema/pom-nonexistent-file.xml
*
lang/java/maven-plugin/src/test/resources/unit/schema/pom-nonexistent-second-file.xml
* lang/java/maven-plugin/src/test/resources/unit/schema/pom.xml
* doc/examples/java-example/pom.xml
* doc/examples/mr-example/pom.xml
--
This message was sent by Atlassian Jira
(v8.20.10#820010)