From 17d2777a0039403fb75789fefc2f5999430b92da Mon Sep 17 00:00:00 2001 From: Dejan Milisavljevic Date: Mon, 8 Apr 2024 15:44:54 +0200 Subject: [PATCH] SONAR-22017 Add eol date for active version --- gradle.properties | 7 +++++++ sonar-plugin-api-impl/build.gradle | 3 ++- .../src/main/resources/sq-version-eol.txt | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 sonar-plugin-api-impl/src/main/resources/sq-version-eol.txt diff --git a/gradle.properties b/gradle.properties index 0d9c37b07cc..37f68a9d3a5 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,12 @@ group=org.sonarsource.sonarqube version=10.5 + +# End Of Life date for the version. MMF-3763. format is yyyy-MM-dd +# 6 months from the release date for non LTA versions +# 30 months from the release date for LTA versions +# No change required for patch versions +versionEOL=2024-10-12 + pluginApiVersion=10.7.0.2191 description=Open source platform for continuous inspection of code quality projectTitle=SonarQube diff --git a/sonar-plugin-api-impl/build.gradle b/sonar-plugin-api-impl/build.gradle index 3731d7b28b0..8b7216073ed 100644 --- a/sonar-plugin-api-impl/build.gradle +++ b/sonar-plugin-api-impl/build.gradle @@ -29,7 +29,8 @@ dependencies { import org.apache.tools.ant.filters.ReplaceTokens processResources { filter ReplaceTokens, tokens: [ - 'project.version': project.version + 'project.version': project.version, + 'versionEOL': project.properties["versionEOL"] ] } diff --git a/sonar-plugin-api-impl/src/main/resources/sq-version-eol.txt b/sonar-plugin-api-impl/src/main/resources/sq-version-eol.txt new file mode 100644 index 00000000000..154f9322c6d --- /dev/null +++ b/sonar-plugin-api-impl/src/main/resources/sq-version-eol.txt @@ -0,0 +1 @@ +@versionEOL@ -- 2.39.5