Giter Club home page Giter Club logo

Comments (7)

slf4j avatar slf4j commented on May 18, 2024

I tried compiling the sources , but received invalid source release error ! :(

Creating properties on demand (a.k.a. dynamic properties) has been deprecated an
d is scheduled to be removed in Gradle 2.0. Please read http://gradle.org/docs/c
urrent/dsl/org.gradle.api.plugins.ExtraPropertiesExtension.html for information
on the replacement for dynamic properties.
Deprecated dynamic property: "sonatypeUser" on "root project 'wiremock-1.33'", v
alue: "default".
Deprecated dynamic property: "sonatypePassword" on "root project 'wiremock-1.33'
", value: "default".
:compileJava
javac: invalid source release: 1.6
Usage: javac
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs are u
sed
-classpath Specify where to find user class files
-cp Specify where to find user class files
-sourcepath Specify where to find input source files
-bootclasspath Override location of bootstrap class files
-extdirs Override location of installed extensions
-endorseddirs Override location of endorsed standards path
-d Specify where to place generated class files
-encoding Specify character encoding used by source files
-source Provide source compatibility with specified release

-target Generate class files for specific VM version
-version Version information
-help Print a synopsis of standard options
-X Print a synopsis of nonstandard options
-J Pass directly to the runtime system

:compileJava FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':compileJava'.

    Compilation failed; see the compiler error output for details.

from wiremock.

tomakehurst avatar tomakehurst commented on May 18, 2024

Unfortunately the build is pinned to v1.6, so that's the minimum JVM version you'll need to use the JAR from Maven Central.

When you tried building it, did you change to sourceCompatibility = 1.5?

from wiremock.

slf4j avatar slf4j commented on May 18, 2024

Yes I even did that . But it throwed some compilation errors. Looks like some of the 1.6 features like static are being used in the code.

Is there any chance of making the source code work with 1.5 ?

My intention is to use this wiremock with one of my legacy java project which runs in jdk1.5. We want to mock few restful third party client responses.

I have tested wiremock with jdk1.6/maven in a standalone setup and it works perfectly.

from wiremock.

tomakehurst avatar tomakehurst commented on May 18, 2024

To be honest given the very limited time I've got to devote to this at the moment, 1.5 language support isn't likely to make it near the top of the list any time soon.

Perhaps you could build your project with a runtime version of 1.6 but source version of 1.5? I've never tried this, but I believe it's possible to vary the two separately.

from wiremock.

slf4j avatar slf4j commented on May 18, 2024

My runtime version in the application server (jvm) is 1.5 .

from wiremock.

tomakehurst avatar tomakehurst commented on May 18, 2024

What I mean is something like this in your POM (perhaps in a separate testing profile):

<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.1</version> <configuration> <source>1.5</source> <target>1.6</target> </configuration> </plugin>

from wiremock.

tomakehurst avatar tomakehurst commented on May 18, 2024

I just putting this in WireMock's build.properties:
sourceCompatibility = 1.5
targetCompatibility = 1.5

And it built fine with no changes using a 1.7 JDK. If this is still an issue for you, it's probably worth giving this a try.

from wiremock.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.