diff --git a/build.gradle b/build.gradle index 4cd569d3d4..3abe8f15e5 100644 --- a/build.gradle +++ b/build.gradle @@ -240,6 +240,14 @@ project("grobid-core") { archives shadowJar archives mainJar } + + processResources { + filesMatching('grobid-version.txt') { + filter { + it.replace('project.version', project.property('version')) + } + } + } } project("grobid-home") { diff --git a/grobid-core/src/main/resources/grobid-version.txt b/grobid-core/src/main/resources/grobid-version.txt index 87a0f102eb..d09bee2ab4 100644 --- a/grobid-core/src/main/resources/grobid-version.txt +++ b/grobid-core/src/main/resources/grobid-version.txt @@ -1 +1 @@ -0.5.1-SNAPSHOT \ No newline at end of file +project.version \ No newline at end of file