diff --git a/0001-set-Java-version-for-Sonar-to-1.5.patch b/0001-set-Java-version-for-Sonar-to-1.5.patch new file mode 100644 index 0000000000000000000000000000000000000000..03b873bb4ffe206bb66d93f1a48a0f94e31e9fcc --- /dev/null +++ b/0001-set-Java-version-for-Sonar-to-1.5.patch @@ -0,0 +1,21 @@ +From 209b5ccdef14a9da1435b2edaf801b00caffd248 Mon Sep 17 00:00:00 2001 +From: Keegan Witt +Date: Tue, 12 Apr 2016 01:41:21 -0400 +Subject: [PATCH] set Java version for Sonar to 1.5 + +--- + sonar-project.properties | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/sonar-project.properties b/sonar-project.properties +index 5794b1e1..8b37e9f5 100644 +--- a/sonar-project.properties ++++ b/sonar-project.properties +@@ -2,3 +2,4 @@ sonar.projectKey=org.codehaus.gmavenplus:gmavenplus-plugin + sonar.projectName=GMavenPlus Plugin + sonar.projectVersion=master + sonar.sources=src/main ++sonar.java.source=1.5 +-- +2.39.0.windows.2 + diff --git a/gmavenplus-plugin.spec b/gmavenplus-plugin.spec index 907eeb9ee9696090f08bc44d4bef991c54ca2909..cc2e0a8deb57803f4c8031824e579480abaf6505 100644 --- a/gmavenplus-plugin.spec +++ b/gmavenplus-plugin.spec @@ -1,11 +1,13 @@ Name: gmavenplus-plugin Version: 1.5 -Release: 8 +Release: 9 Summary: Integrates Groovy into Maven projects License: ASL 2.0 URL: http://groovy.github.io/GMavenPlus/ Source0: https://github.com/groovy/GMavenPlus/archive/%{version}.tar.gz +Patch0: 0001-set-Java-version-for-Sonar-to-1.5.patch + BuildRequires: maven-local mvn(jline:jline) mvn(junit:junit) mvn(org.apache.ant:ant) BuildRequires: mvn(org.apache.ant:ant-antlr) mvn(org.apache.ant:ant-junit) BuildRequires: mvn(org.apache.ant:ant-launcher) mvn(org.apache.ivy:ivy) @@ -73,6 +75,9 @@ rm README.markdown.orig %files help -f .mfiles-javadoc %changelog +* Sun Jan 29 20223 xingxing - 1.5-9 +- set Java version for Sonar to 1.5 + * Thu Jun 3 2021 baizhonggui - 1.5-8 - Fix building error: /usr/bin/git: No such file or directory - Add git in BuildRequires