Skip to content
Advertisement

Tag: gradle

Plugin with id ‘maven’ not found

Plugin with id ‘maven’ not found. I got this error in IDEA that uses with 7.1, that is strange as maven is built-in plugin, and should be distributed with gradle. When running Gradle 6.3, it seems there is no such error. Answer In Gradle 7.x, The maven plugin has been removed. You should use the maven-publish plugin instead. Reference: https://docs.gradle.org/7.0/userguide/upgrading_version_6.html#removal_of_the_legacy_maven_plugin

addArguments(java.lang.String… arguments) method of ChromeOptions is giving error

For the below code of setting chromeoptions using addArguments() method is giving following error Code: This code was working fine with older version of Selenium dependency but now i upgraded all my dependencies to new versions for some reasons and it’s not working Selenium Dependencies: build.gradle: Java version I’m using: Chrome Version: Chrome Driver Version: Answer You miss the following

“No auto configuration classes found in META-INF/spring.factories” error on running Spring Boot jar artifact

I use openjdk 14.0.2, Gradle 7.1.1 and IntelliJ IDEA 2021.1.2. I have a Spring Boot project and can run it successfully. Now I want to create an executable jar file. This is build.gradle: I built main.jar artifact like it is described here; but executing this command: causes this error: For solving the problem I tried what is described here by

How to call class from another module in SpringBoot, Java

I have a Spring Boot multi-module gradle project, and I am trying to call class from another module. I have a HttpDataClient.java class that I would like to call in DataResolver.java class in another module. HttpDataClient.java So, this class should return some response data from Data service. After I would like to get that response data and do something in

How to avoid downloading gradle zip file while importing new project first time

I am new to java gradle and using Intellij IDE for development. I tried many config setting to avoid downloading gradle-5.6.4-bin.zip every time while importing new project first time as a gradle but Intellij is still downloading. I downloaded gradle setup(version Gradle 6.8.3) and did gardle variable setup but Intellij is trying to download gradle-5.6.4-bin.zip instead of using downloaded and

Error: Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8. -& Failed to apply plugin ‘com.android.internal.application’

I have tried all the possible solutions for this error. Require guidance here: I am using Windows Laptop : Android Studio 2020.3.1.22 Below is the build.graddle file: also my graddle wrapper properties: my output of ./gradlew –version Android Sdk version: C:UsersUser nameAppDataLocalAndroidSdk Gradle JDK: 11 version 11.0.12 C:Program FilesJavajdk-11.0.12 Java Version: Please guide to resolve this error: An exception occurred

./gradlew The operation couldn’t be completed. Unable to locate a Java Runtime

When I run ./gradlew from project folder I get: The same with java: I installed JDK in Android studio, seems it’s installed in ~/Library/Android/sdk/sources/android-28 Setting export JAVA_HOME=/Users/mrgloom/Library/Android/sdk/sources/android-28/ or export JAVA_HOME=/Users/mrgloom/Library/Android/sdk produce error like: How to specify java path for gradlew ? Answer Using JDK shipped with Android Studio and setting export JAVA_HOME=/Applications/Android Studio.app/Contents/jre/Contents/Home helped me.

Advertisement