------------------------------------------------------------
Gradle 6.7.1
------------------------------------------------------------
Build time: 2020-11-16 17:09:24 UTC
Revision: 2972ff02f3210d2ceed2f1ea880f026acfbab5c0
Kotlin: 1.3.72
Groovy: 2.5.12
Ant: Apache Ant(TM) version 1.10.8 compiled on May 10 2020
JVM: 11.0.10 (Red Hat, Inc. 11.0.10+9)
OS: Linux 5.11.7-200.fc33.x86_64 amd64
***@localhost ~/p/d/j/D/Gradle_Challenge (master) [1]> jfrog rt gradle-config
Configuration file already exists at /home/***/projects/demo/jfrog-demo/DevRel/Gradle_Challenge/.jfrog/projects/gradle.yaml. Override it? (y/n) [n]? y
Resolve dependencies from Artifactory? (y/n) [y]? y
Set Artifactory server ID [Default-Server]:
Set repository for dependencies resolution (press Tab for options): maven-challenge-remote
Deploy project artifacts to Artifactory? (y/n) [y]?
Set Artifactory server ID [Default-Server]:
Set repository for artifacts deployment (press Tab for options): maven-challenge-local
Deploy Maven descriptors? (y/n) [n]?
Deploy Ivy descriptors? (y/n) [n]?
Is the Gradle Artifactory Plugin already applied in the build script? (y/n) [n]?
Use Gradle wrapper? (y/n) [n]?
[Info] gradle build config successfully created.
***@localhost ~/p/d/j/D/Gradle_Challenge (master)> jfrog rt gradle clean artifactoryPublish -b build.gradle --build-name gradle-challenge --build-number 1.0.0
[Info] Running gradle command: /home/***/.sdkman/candidates/gradle/current/bin/gradle --init-script /home/***/.jfrog/dependencies/gradle/4.18.0/gradle.init clean artifactoryPublish -b build.gradle
FAILURE: Build failed with an exception.
* Where:
Build file '/home/***/projects/demo/jfrog-demo/DevRel/Gradle_Challenge/build.gradle' line: 27
* What went wrong:
A problem occurred evaluating root project 'Gradle_Challenge'.
> Failed to apply plugin 'com.jfrog.artifactory'.
> Cannot cast object 'org.jfrog.gradle.plugin.artifactory.dsl.ArtifactoryPluginConvention@1840d5d1' with class 'org.jfrog.gradle.plugin.artifactory.dsl.ArtifactoryPluginConvention' to class 'org.jfrog.gradle.plugin.artifactory.dsl.ArtifactoryPluginConvention'
* 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 1s
[Error] exit status 1
***@localhost ~/p/d/j/D/Gradle_Challenge (master) [1]> jfrog --version
jfrog version 1.45.2
Error while following instructions for Gradle from
https://www.jfrog.com/confluence/display/JFROG/QuickStart+Guide%3A+Maven+and+Gradle.
Previously tried same insructions for Maven and worked OK.
Repo commit: https://github.com/jfrog/DevRel/commit/2295f6ac94f0cbd786cbc73ed5f46ee9aa6605b6
Shell:
Gradle:
SDKMAN!:
OS:
Full error log: