Open krishnachaitanyareddy opened 4 years ago
I made few changes to gradle-wrapper.properties to new gradle link. Now i'm getting below
`./gradlew clean build Downloading https://downloads.gradle-dn.com/distributions/gradle-1.4-bin.zip ..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... Unzipping /Users/krishna/.gradle/wrapper/dists/gradle-1.4-bin/ka7flpc4t9igms41h3dpdhmt0/gradle-1.4-bin.zip to /Users/krishna/.gradle/wrapper/dists/gradle-1.4-bin/ka7flpc4t9igms41h3dpdhmt0 Set executable permissions for: /Users/krishna/.gradle/wrapper/dists/gradle-1.4-bin/ka7flpc4t9igms41h3dpdhmt0/gradle-1.4/bin/gradle Error listing versions of org.rundeck#rundeck-core;1.5+ using class org.gradle.api.internal.artifacts.repositories.resolver.MavenVersionLister$1. Will attempt an alternate way to list versions. This behaviour has been deprecated and is scheduled to be removed in Gradle 2.0
FAILURE: Build failed with an exception.
Where: Build file '/Users/krishna/code/corp/rundeck/salt-step/build.gradle' line: 79
What went wrong: A problem occurred evaluating root project 'rundeck-salt-plugin'.
Could not resolve all dependencies for configuration ':runtime'. Could not resolve org.rundeck:rundeck-core:1.5+. Required by: :rundeck-salt-plugin:0.4 Failed to list versions for org.rundeck#rundeck-core;1.5+. Could not list versions using M2 pattern 'http://repo1.maven.org/maven2/[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]'. Could not GET 'http://repo1.maven.org/maven2/org/rundeck/rundeck-core/'. Received status code 501 from server: HTTPS Required Could not resolve com.google.code.gson:gson:2.2.2. Required by: :rundeck-salt-plugin:0.4 Could not GET 'http://repo1.maven.org/maven2/com/google/code/gson/gson/2.2.2/gson-2.2.2.pom'. Received status code 501 from server: HTTPS Required Could not resolve com.google.guava:guava:14.0. Required by: :rundeck-salt-plugin:0.4 Could not GET 'http://repo1.maven.org/maven2/com/google/guava/guava/14.0/guava-14.0.pom'. Received status code 501 from server: HTTPS Required Could not resolve commons-validator:commons-validator:1.4.0. Required by: :rundeck-salt-plugin:0.4 Could not GET 'http://repo1.maven.org/maven2/commons-validator/commons-validator/1.4.0/commons-validator-1.4.0.pom'. Received status code 501 from server: HTTPS Required Could not resolve org.springframework:spring-context:3.2.2.RELEASE. Required by: :rundeck-salt-plugin:0.4 Could not GET 'http://repo1.maven.org/maven2/org/springframework/spring-context/3.2.2.RELEASE/spring-context-3.2.2.RELEASE.pom'. Received status code 501 from server: HTTPS Required Could not resolve org.apache.httpcomponents:httpclient:4.2.4. Required by: :rundeck-salt-plugin:0.4 Could not GET 'http://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.2.4/httpclient-4.2.4.pom'. Received status code 501 from server: HTTPS Required Could not resolve org.apache.commons:commons-io:1.3.2. Required by: :rundeck-salt-plugin:0.4 Could not GET 'http://repo1.maven.org/maven2/org/apache/commons/commons-io/1.3.2/commons-io-1.3.2.pom'. Received status code 501 from server: HTTPS Required Could not resolve com.google.code.findbugs:jsr305:2.0.1. Required by: :rundeck-salt-plugin:0.4 Could not GET 'http://repo1.maven.org/maven2/com/google/code/findbugs/jsr305/2.0.1/jsr305-2.0.1.pom'. Received status code 501 from server: HTTPS Required
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 18.18 secs`
I don't know if this is already solved but I got to compile it by changing the maven URL from http to https in gradle.properties.
Also, for gradle-wrapper to work I had to change to https the url in gradle/wrapper/gradle-wrapper.properties
Had to perform the same modifications as listed above, flipping to HTTPS to get to this point
./gradlew clean build --debug 09:46:51.757 [DEBUG] [org.gradle.logging.internal.DefaultLoggingConfigurer] Finished configuring with level: DEBUG, configurers: [org.gradle.logging.internal.OutputEventRenderer@71d15f18, org.gradle.logging.internal.logback.LogbackLoggingConfigurer@17695df3, org.gradle.logging.internal.JavaUtilLoggingConfigurer@6c9f5c0d] WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.jruby.ext.posix.util.FieldAccess (file:/home/user/.gradle/wrapper/dists/gradle-1.4-bin/3qf9ve1tumvav5egd5m6ofv9as/gradle-1.4/lib/jna-posix-1.0.3.jar) to field java.io.FileDescriptor.handle WARNING: Please consider reporting this to the maintainers of org.jruby.ext.posix.util.FieldAccess WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release 09:46:51.903 [ERROR] [org.gradle.BuildExceptionReporter] 09:46:51.905 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build aborted because of an internal error. 09:46:51.906 [ERROR] [org.gradle.BuildExceptionReporter] 09:46:51.907 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong: 09:46:51.909 [ERROR] [org.gradle.BuildExceptionReporter] Build aborted because of an unexpected internal error. Please file an issue at: http://forums.gradle.org.
Can't seem to figure out how to resolve this.
java -version openjdk version "11.0.11" 2021-04-20 OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.18.04) OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.18.04, mixed mode, sharing) javac 11.0.11
Hi,
While compiling, i'm getting below error
./gradlew clean build
Downloading http://services.gradle.org/distributions/gradle-1.4-bin.zipException in thread "main" java.io.IOException: Server returned HTTP response code: 403 for URL: http://services.gradle.org/distributions/gradle-1.4-bin.zip at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1900) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498) at org.gradle.wrapper.Download.downloadInternal(Download.java:63) at org.gradle.wrapper.Download.download(Download.java:49) at org.gradle.wrapper.Install.createDist(Install.java:51) at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129) at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:48)
gradle.properties
cat gradle.properties version = 0.4 rundeckPluginVersion = 1.1
mavenCentralUrl = http://repo1.maven.org/maven2
My Java version java -version java version "1.8.0_221" Java(TM) SE Runtime Environment (build 1.8.0_221-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.221-b11, mixed mode)