Skip to content

Instantly share code, notes, and snippets.

@kenrachynski
Created August 25, 2017 16:41
Show Gist options
  • Select an option

  • Save kenrachynski/5494bd10bc34767826ccb00ec9e1aa0f to your computer and use it in GitHub Desktop.

Select an option

Save kenrachynski/5494bd10bc34767826ccb00ec9e1aa0f to your computer and use it in GitHub Desktop.
Gradle 4 exception
artifactory_user=tang
artifactory_password=*secret*key*
artifactory_contextUrl=http://artifactory.tang.local:8081/artifactory
> gradle --version
------------------------------------------------------------
Gradle 4.1
------------------------------------------------------------
Build time: 2017-08-07 14:38:48 UTC
Revision: 941559e020f6c357ebb08d5c67acdb858a3defc2
Groovy: 2.4.11
Ant: Apache Ant(TM) version 1.9.6 compiled on June 29 2015
JVM: 1.8.0_121 (Oracle Corporation 25.121-b13)
OS: Mac OS X 10.12.6 x86_64
> gradle
FAILURE: Build failed with an exception.
* Where:
Settings file '/Users/krachynski/projects/tmp/gradle/settings.gradle' line: 1
* What went wrong:
A problem occurred evaluating settings 'gradle'.
> Could not find method pluginRepositories() for arguments [settings_b62d425u9mi1ys2wqbqmtg11z$_run_closure1@19ec1146] on settings 'gradle' of type org.gradle.initialization.DefaultSettings.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 0s
> ./gradlew --version   1
------------------------------------------------------------
Gradle 3.4.1
------------------------------------------------------------
Build time: 2017-03-03 19:45:41 UTC
Revision: 9eb76efdd3d034dc506c719dac2955efb5ff9a93
Groovy: 2.4.7
Ant: Apache Ant(TM) version 1.9.6 compiled on June 29 2015
JVM: 1.8.0_121 (Oracle Corporation 25.121-b13)
OS: Mac OS X 10.12.6 x86_64
> ./gradlew
:help
Welcome to Gradle 3.4.1.
To run a build, run gradlew <task> ...
To see a list of available tasks, run gradlew tasks
To see a list of command-line options, run gradlew --help
To see more detail about a task, run gradlew help --task <task>
BUILD SUCCESSFUL
Total time: 0.839 secs
pluginRepositories {
maven {
url "${artifactory_contextUrl}/plugins-snapshot"
}
gradlePluginPortal()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment