I am trying to integrate sonarqube gradle plugin with jdk7 but build is failing due to version mismatch.
Gralde version 4.3
JDK 1.7
Sonarqube-gradle plugin ??
2.0.1 was the last version to support Java 7
https://github.com/SonarSource/sonar-scanner-gradle/releases/tag/2.0.1
https://github.com/SonarSource/sonar-scanner-gradle/blob/2.0.1/build.gradle#L24..L25
Related
Although the build was started using java version: 1.8.0_242, vendor: AdoptOpenJDK, I'm getting the warning -tag option is not supported on Java version < 1.4. When building with javadoc:jar, the build fails because of the custom tags.
This is a quite old build using maven-javadoc-plugin:2.10.4. I cannot just ramp it up to 3+, and 2.10.4 seems to be newest version of 2.10.
Any ideas?
I have a problem with Gradle. I'm trying to make a mod for Minecraft 1.12.2 and I'm using Intellij IDEA. Everything works fine for the version 1.16.4, but if I want to build a mod for the 1.12 I get this error:
Failed to apply plugin 'net.minecraftforge.gradle'.
Found Gradle version Gradle 7.4. Versions Gradle 6.0.0 and newer are not supported in FG3, FG4 however supports Versions 6.8.1 and newer. Consider upgrading.
It's supposed to do something with apply plugin: 'net.minecraftforge.gradle' in the build.gradle file.
I don't have much experience with this sort of stuff so please help me. Thanks in advance
to write a mod for 1.12.2, Forge provides a build.gradle file. In this, the 3.+ (FG3) is specified as the ForgeGradle version.
The current version of Gradle (7.4.2) only supports ForgeGradle versions from FG4 and newer.
FG3 - older than Gradle version 6.0.0
FG4 - Gradle version 6.8.1 and newer
You now have two options:
You take the Gradle version 7.4.2 and make a mod for a Minecraft version with a ForgeGradle version from FG4 or newer.
You take an older Gradle version.
I'm using STS 4.6 and getting below error while using Gradle 6.8.3. I was able to build project using Gradle 4.10 but for JDK 11 I had to upgrade Gradle version. Please assist how to resolve this
Support for clients using a tooling API version older than 3.0 was removed in Gradle 5.0. You are currently using tooling API version 2.2.1. You should upgrade your tooling API client to version 3.0 or later.
I solved this by uninstalling 'Gradle IDE' plugin provided by Pivotal and installing 'Eclipse Buildship plugin for Gradle' - Refer this
What is the latest version of Gradle supported by TeamCity 7 ?
By using the gradle wrapper, you should be able to use the latest 2.8 gradle release with Teamcity 7
I am running a build with sonarqube 4.5.1 and JDK 6. I am getting this following error:
[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.6:sonar (default-cli) on project test-util: The plugin java is not supported with Java 1.6.0_26: org/sonar/plugins/java/JavaPlugin : Unsupported major.minor version 51.0
I found one document on internet which says that JDK 6 is no longer supported to run SonarQube starting from 4.5.1.
Could anyone please confirm , if this error message is because JDK 6 is no longer supported with sonarqube 4.5.1?
Thanks in advance.
Yes, you need JDK 7 or later (see How to fix: Unsupported major.minor version 51.0 error?).
You can still build your project with JDK 6, but SonarQube analysis should be executed by JDK 7 or later.
You can run Sonar 4.5.1 version with jdk1.6 , provided you give a sonar-maven-plugin jar which is compatible with java6.
sonar-maven-plugin version 2.4 is not compatible with java 6 and it works with java 7.
We are also doing the same, compiling the project with Java 6 and running sonar analysis with Java 7.
Can anyone provide the sonar-maven-plugin version < 2.4 which is compatible with java 6.
As of now i am trying with sonar-maven-plugin 2.3.1 but don't know whether it will work, will update the result soon.