diff --git a/build.gradle b/build.gradle index 32d020da..d6a33639 100644 --- a/build.gradle +++ b/build.gradle @@ -134,7 +134,9 @@ jib { (project.hasProperty('latest') && project.property('latest') == 'true') ? 'latest' : 'snapshot' ].join('') tags = [project.version].with (true) { - add "t"+ DateTimeFormatter.ofPattern("yyyyMMddHHmm").withZone(ZoneId.of('UTC')).format(Instant.now()) + if (!project.hasProperty('latest') || project.property('latest') != 'true') { + add "t"+ DateTimeFormatter.ofPattern("yyyyMMddHHmm").withZone(ZoneId.of('UTC')).format(Instant.now()) + } add project.version.toString().replaceAll('(\\d+\\.\\d+).+', '$1') } }