fix: Added version.txt to main resources during build.
@@ -27,6 +27,12 @@ apply plugin: 'io.spring.dependency-management'
apply from: 'docs.gradle'
+final def resources = new File("${projectDir}/src/main/resources")
+final def versionFile = new File(resources, "version.txt")
+resources.mkdirs()
+versionFile.delete()
+versionFile << version
+
def createArtifactName() {
return "${buildDir}/libs/${project.name}-${version}.jar"
}
