rest-gradle-plugin icon indicating copy to clipboard operation
rest-gradle-plugin copied to clipboard

org/_10ne/gradle/rest/RestTask : Unsupported major.minor version 51.0

Open Espigah opened this issue 9 years ago • 7 comments

  • What went wrong: A problem occurred configuring root project 'Tom'.

    Could not open no_buildscript class cache for build file 'C:\Users\fabricio\Desktop\Gradle\Tom\build.gradle' (C:\Users\fabricio.gradle\caches\2.2.1\scripts\build_6iriy6v5ja1rt2fnd68x0n5xk\ProjectScript\no_buildscript). org/_10ne/gradle/rest/RestTask : Unsupported major.minor version 51.0

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

Espigah avatar Mar 26 '15 14:03 Espigah


Gradle 2.3

Build time: 2015-02-16 05:09:33 UTC Build number: none Revision: 586be72bf6e3df1ee7676d1f2a3afd9157341274

Groovy: 2.3.9 Ant: Apache Ant(TM) version 1.9.3 compiled on December 23 2013 JVM: 1.6.0_37 (Sun Microsystems Inc. 20.12-b01) OS: Windows NT (unknown) 6.2 amd64

Espigah avatar Mar 26 '15 14:03 Espigah

gradle check [buildinfo] Properties file path was not found! (Relevant only for builds running on a CI Server) :compileJava UP-TO-DATE :compileGroovy UP-TO-DATE :processResources UP-TO-DATE :classes UP-TO-DATE :compileTestJava UP-TO-DATE :compileTestGroovy UP-TO-DATE :processTestResources UP-TO-DATE :testClasses UP-TO-DATE :test

org._10ne.gradle.rest.RestTaskSpec > Configure and execute a request FAILED groovy.lang.MissingMethodException at RestTaskSpec.groovy:58

org._10ne.gradle.rest.RestTaskSpec > Configure and execute a preemptive authentication request FAILED groovy.lang.MissingMethodException at RestTaskSpec.groovy:94

org._10ne.gradle.rest.RestTaskSpec > Configure and execute a request with a custom header FAILED groovy.lang.MissingMethodException at RestTaskSpec.groovy:132

org._10ne.gradle.rest.RestTaskSpec > Configure and execute a request using a proxy FAILED groovy.lang.MissingMethodException at RestTaskSpec.groovy:162 groovy.lang.MissingMethodException at RestTaskSpec.groovy:162

6 tests completed, 4 failed :test FAILED

Espigah avatar Mar 26 '15 15:03 Espigah

You are using an older version of the jdk. Your best best is to git clone this project, then build it (gradle wrapper ; ./gradlew build) yourself.

Then put something like this in your build.gradle file

buildscript {
    // repositories ...
    dependencies {
        // other dependencies...
        classpath fileTree(dir: '../rest-gradle-plugin/build/libs', include: ['*.jar'])
    }
}

Buggaboo avatar Mar 10 '16 15:03 Buggaboo

... or install into your mavenLocal()

otrosien avatar Apr 19 '16 19:04 otrosien

Pull request #19 adds compatibility with older Java versions

benfortuna avatar May 18 '16 02:05 benfortuna

I'm having the same problem.

The error mesage is:

org/_10ne/gradle/rest/RestTask : Unsupported major.minor version 52.0

When will the pull request #19 be released?

theindra avatar May 29 '16 19:05 theindra

Released version 0.4.2 with pull requests #19 and #21

noamt avatar May 30 '16 07:05 noamt