I have Gradle version 2.12 installed on my Mac OS. But when I create a new Gradle project from scratch using IntelliJ, and then select 'Use default gradle wrapper (recommended)', I see the project will be set up with a Gradle Wrapper that is version 3.1 - as in the gradle-wrapper.properties file.
I'd like to understand how IntelliJ chooses version 3.1 as the default version? I can't seem to find where it is configured.
Related
have installed JDK 16.0.1 version and in eclipse have created a maven project and want to add cucumber dependencies, please help. have tried to copy the build and properties from others but version of java is different but changed to 16.0.1 but still not seeing the cucumber dependencies added
I wasn’t aware that maven ran with jdk 16.0.1. What version of maven are you running?
When importing a Grails 3+ project to IntelliJ IDEA Ultimate, the Gradle build stops at “Starting Gradle Daemon...”.
Screenshot of IntelliJ build window
This happens when a new Grails 3 project is created using the command “grails create-app projectName” and imported to IntelliJ IDEA using Gradle.
My system configuration:
macOS Catalina
IntelliJ IDEA Ultimate 2020.1
Java 8
Grails 3.3.5
Groovy 2.4.15
The Gradle build fails with no other error messages.
“gradle”, “./gradlew”, “./gradlew bootRun” commands work as expected on the terminal.
Check the Gradle JVM which is set for project and make sure it is compatible for the Gradle version used in project:
Try setting different JDKs including the 1.8 JDK there.
I'm using the Spring Tool Suite:
Version: 3.9.0.RELEASE
Build Id: 201707061903
Platform: Eclipse Neon.3 (4.6.3)
And the Gradle plugin installed:
Buildship: Eclipse Plug-ins for Gradle 2.1.1.v20170713-0942 org.eclipse.buildship.feature.group Eclipse Buildship
I'm trying to create a new Spring Starter Project, but I've this message when I select the type "Gradle (Buildship 1.x)" or "Gradle (Buildship 2.x)" or "Gradle (STS)"
Can not import using Gradle (Buildship 2.x) because Buildship Gradle
Tooling version 2.x is not installed. You can install it from Eclipse
Marketplace.
Any help?
Thanks, Andrea
Buildship 2.1.2 got released (available from the Eclipse Marketplace) and is fully compatible with STS 3.9.0 again.
Buildship 2.1.0 and 2.1.1 is not compatible with STS 3.9.0, more details can be found here:
https://github.com/spring-projects/spring-ide/issues/163
The solution is to install Buildship 2.0.x from the Eclipse Oxygen update site instead.
I was previously using Gradle 2.3 and the Gradle Android plugin 1.3.1.
After upgrading to 4.0.1 and 2.3.0 respectively, my build fails with the following message:
Task with name 'packageReleaseJar' not found in project
Is there a compatibility problem between these versions of Gradle? I believe this is not a custom defined task.
I keep on getting "Gradle Sync error" so i checked had version 1.8. updated to 1.10, then it said i need 1.9, so i downgraded to 1.9 it said i need 1.8, when i downgrade to 1.8 it says i need 1.9.
15:28:09 Failed to refresh Gradle project 'Calendar'
You are using Gradle version 1.8, which is not supported. Please use version 1.9.
Please point to a supported Gradle version in the project's Gradle settings or in the project's Gradle wrapper (if applicable.)
Fix Gradle wrapper and re-import project Gradle settings
15:28:26 Failed to refresh Gradle project 'Calendar'
You are using Gradle version 1.10, which is not supported. Please use version 1.9.
Please point to a supported Gradle version in the project's Gradle settings or in the project's Gradle wrapper (if applicable.)
Fix Gradle wrapper and re-import project Gradle settings
15:28:39 Failed to refresh Gradle project 'Calendar'
Gradle version 1.8 is required. Current version is 1.9. If using the gradle wrapper, try editing the distributionUrl in
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Android
Studio\gradle\wrapper\gradle-wrapper.properties to gradle-1.8-all.zip.
Please fix the project's Gradle settings.
Gradle 1.10 is not yet supported in AS, Android Tools Developer team is working on it and probably will be available in next release.
As of now make sure all your build.gradle files in the project using gradle 1.9 as dependency
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.7.+'
}
}
Update :
Gradle 1.10 is now supported in Android studio after release 0.4.3, so going forward you can start using 1.10 plugin by using 0.8.+ in your classpath like this
classpath 'com.android.tools.build:gradle:0.8.+'