I am using gradle version 7.3.3 and Oralce JDK 1.8.0_192.
When I run gradle clean build --scan in Intellij, it's failing with the following error.
FAILURE: Build failed with an exception
Where:
Auto-applied by using --scan
What went wrong:
Plugin [id: 'com.gradle.enterprise', version: '3.7', artifact: 'com.gradle:gradle-enterprise-gradle-plugin:3.7'] was not found in any of the following sources:
Gradle Core Plugins (plugin not in 'org.gradle' namespace)
Plugin Repositories (could not resolve plugin artifact 'com.gradle:gradle-enterprise-gradle-plugin:3.7')
Searched in the following repositories:
pluginBootStrap (https://podearprod.rt.com/artifactory/train-maven-plugin-local)
Related
I am new to gradle and not able to debug the following issue whenever I am trying to build any project.
I am using the command (gradle clean build)
FAILURE: Build failed with an exception.
What went wrong:
org/gradle/api/internal/ExternalProcessStartedListener
I am using gradle version 7.4.2
Any help is greatly appreciated.
i am trying to configure build of a java project through jenkins.
I have installed the maven plugin and configured the "settings.xml" file.
During the build, I get the following error message:
[ERROR] Failed to execute goal on project HRWebSuite: Could not resolve dependencies for project sirfin:HRWebSuite:war:3.0: Could not find artifact org.zkoss.exporter:exporter:jar:0.0.1-SNAPSHOT at specified path /var/lib/jenkins/workspace/HrWebSuiteFutureV3-Test3\WebContent\WEB-INF\lib\exporter.jar -> [Help 1]
The library is present in the specified path and I could not find it as maven dependencies.
I have attempted to rebuild the jar for https://github.com/square/okhttp library. However, this is the error I get after first cloning it and then calling "gradle assemble". Is there something incorrect about my method?
FAILURE: Build failed with an exception.
Where:
Build file '/Users/test/okhttptest/okhttp/build.gradle' line: 75
What went wrong:
Plugin [id: 'ru.vyarus.animalsniffer', version: '1.5.1'] was not found in any of the following sources:
Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
Plugin Repositories (could not resolve plugin artifact 'ru.vyarus.animalsniffer:ru.vyarus.animalsniffer.gradle.plugin:1.5.1')
Searched in the following repositories:
Gradle Central Plugin Repository
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 617ms
You problem is that you are using a locally installed gradle version since your call is "gradle assemble". your gradle version is propably too old so you it can't handle the plugin.
This repository has a gradle-wrapper (gradlew) checked in.
https://docs.gradle.org/current/userguide/gradle_wrapper.html
change your call into ./gradlew assemble and the wrapper will handle the download of the required gradle version and will handle all the dependencies for you.
I'm not familiar with Spring eco and to run gradle to install required modules.
I just cloned this spring boot repo and tried to run it
git#github.com:didinj/springboot-mongodb-security.git
Plugin [id: 'org.springframework.boot', version: '2.1.7.RELEASE'] was not found in any of the following sources:
* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Exception is:
org.gradle.api.plugins.UnknownPluginException: Plugin [id: 'org.springframework.boot', version: '2.1.7.RELEASE'] was not found in any of the following sources:
- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (could not resolve plugin artifact 'org.springframework.boot:org.springframework.boot.gradle.plugin:2.1.7.RELEASE')
Searched in the following repositories:
Gradle Central Plugin Repository
at .....
How come? Does this mean the 'org.springframework.boot', version: '2.1.7.RELEASE' is not in this world anymore? If so, the package management system is holly crap.
What should I do? I cloned bunch of git repos from the github and try to run gradle and always have this problem.
Java ecosystem is too broken. Unlike NPM or ruby gem which is so stable and no-brain to use.
Is there related to my gradle setting, java version, or anything else?
Use JDK 8. Change or config MongoDB at https://github.com/didinj/springboot-mongodb-security/blob/master/src/main/resources/application.properties
git clone https://github.com/didinj/springboot-mongodb-security.git
cd springboot-mongodb-security
gradlew bootRun
There is no 2.1.7.RELEASE version of this plugin available at Maven Central Repository (which is used in your build.gradle script), since this version is outdated. But it's still accessible at Gradle Plugin Repository (https://mvnrepository.com/artifact/org.springframework.boot/org.springframework.boot.gradle.plugin/2.1.17.RELEASE).
So you should either use least available plugin version from Central repository (2.2.0.RELEASE) or add Gradle Plugin Repository to the repositories section of your build.gradle
repositories {
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
}
trying to build the hadoop-common project using
the command,
mvn generate-sources generate-test-sources
The build failed with error:
[ERROR] Failed to execute goal on project hadoop-annotations: Could not resolve dependencies for project org.apache.hadoop:hadoop-annotations:jar:3.0.0-SNAPSHOT: Could not find artifact jdk.tools:jdk.tools:jar:1.6 at specified path /usr/lib/jvm/java-11-openjdk-amd64/../lib/tools.jar -> http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
The tools.jar is missing in openjdk-11 version.
Hadoop requires Java 8 to build, still.
Java 11 progress can be tracked at https://issues.apache.org/jira/browse/HADOOP-15338