You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@avro.apache.org by "Christophe Le Saec (Jira)" <ji...@apache.org> on 2022/09/16 10:24:00 UTC
[jira] [Commented] (AVRO-2406) Remove manual updating of the VERSION.txt
[ https://issues.apache.org/jira/browse/AVRO-2406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17605764#comment-17605764 ]
Christophe Le Saec commented on AVRO-2406:
------------------------------------------
If VERSION.txt was in properties format ({{version_avro=1.12.0}}), it would be possible to use [properties-maven-plugin|https://www.mojohaus.org/properties-maven-plugin/]
With
{code:xml}
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.1.0</version>
<executions>
<execution>
<phase>initialize</phase>
<goals><goal>read-project-properties</goal></goals>
</execution>
</executions>
<configuration>
<files>
<file>${basedir}/VERSION.txt</file>
</files>
</configuration>
</plugin>
{code}
And use the property directly in pom files :
{code:xml}
<groupId>org.apache.avro</groupId>
<artifactId>avro-toplevel</artifactId>
<version>${version_avro}</version>
{code}
So, no need to execute "mvn versions:set ..." command.
> Remove manual updating of the VERSION.txt
> -----------------------------------------
>
> Key: AVRO-2406
> URL: https://issues.apache.org/jira/browse/AVRO-2406
> Project: Apache Avro
> Issue Type: Improvement
> Components: build
> Affects Versions: 1.9.0
> Reporter: Fokko Driesprong
> Priority: Major
> Fix For: 1.12.0
>
>
> Right now we're still manually updating the VERSION.txt:
> https://cwiki.apache.org/confluence/display/AVRO/How+To+Release
> The process is cumbersome and error-prone. It would be better to automate the detection of this version. For example, generate this by extracting the version from the pom.xml.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)