GithubHelp home page GithubHelp logo

How to build standalone jar? about wiremock HOT 7 CLOSED

wiremock avatar wiremock commented on July 19, 2024
How to build standalone jar?

from wiremock.

Comments (7)

tomakehurst avatar tomakehurst commented on July 19, 2024

Hi,

Two options:

  1. If you just want to use the JAR (rather than modifying it in any way) you can download it directly from Maven Central: http://repo1.maven.org/maven2/com/github/tomakehurst/wiremock/1.31/wiremock-1.31-standalone.jar

  2. if you want to build it, use the following:
    gradle clean build jarAll

Hope that helps,
Tom

from wiremock.

jkindwall avatar jkindwall commented on July 19, 2024

Thanks.

Tried that gradle build command, but I'm still getting a failure on the "signArchives" task and it never gets far enough to create the standalone jar.

However I was able to download the standalone jar from the link you provided, and that should be sufficient for now.

from wiremock.

tomakehurst avatar tomakehurst commented on July 19, 2024

Ah sorry, I forgot to mention you need to install PGP for the signing step to work.

from wiremock.

oneeyedhobbit avatar oneeyedhobbit commented on July 19, 2024

Sorry for posting in an old issue @tomakehurst, but I'm wondering if you have a basic build/development environment setup doc somewhere on github or wiremock.org?

I'm trying to integrate wiremock into an automated testing framework currently using cppunit (but hopefully moving to catch). I've come across a couple of issues that ended up being unrelated to wiremock, but it would be lovely to be able to build and debug wiremock via, say, intellij or eclipse. Its been a while since I've used Java extensively (and even then it was android); do you have any sort of quick start guide you would consider sharing?

Apologies if such a guide already exists and I haven't uncovered it in my searches!

from wiremock.

tomakehurst avatar tomakehurst commented on July 19, 2024

Assume you mean building WireMock from source?

To test ./gradlew test
To build both JARs: ./gradlew clean jar shadowJar

from wiremock.

kratikagoyel avatar kratikagoyel commented on July 19, 2024

I tried running gradle clean build jarAll

But Facing issues:

FAILURE: Build failed with an exception.

  • Where:
    Build file '/home/kritikagoyal/repos/wiremock/build.gradle' line: 128

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

Could not create an instance of type org.gradle.api.internal.artifacts.publish.DecoratingPublishArtifact_Decorated.
java.lang.UnsupportedOperationException (no error message)

  • Try:
    Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Exception is:
    org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':jarAll'.
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:103)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:73)
    at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)
    at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:59)
    at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
    at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:59)
    at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:101)
    at org.gradle.api.internal.tasks.execution.FinalizeInputFilePropertiesTaskExecuter.execute(FinalizeInputFilePropertiesTaskExecuter.java:44)
    at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:91)
    at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:62)
    at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:59)
    at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
    at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
    at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:256)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:317)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:309)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:185)

from wiremock.

kratikagoyel avatar kratikagoyel commented on July 19, 2024

@tomakehurst kindly take a look

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.