https://linen.dev logo
b

Balog Tamás

07/05/2023, 9:35 AM
Hi, I'm trying to include and use the WireMock TestContainers Java module in a gradle project, but I don't seem to be able to make Gradle download it. I've added it as
testImplementation 'org.wiremock.integrations.testcontainers:wiremock-testcontainers-module:1.0-alpha-5'
but I'm not sure if this is correct, if the module is available at all to use it like this, or I need more configuration. I must be missing some crucial information about the Java module, so forgive me if I'm asking something very trivial. 🙂
o

Oleg Nenashev

07/05/2023, 9:42 AM
Hello. Did you add GitHub Packages as a maven repository?
b

Balog Tamás

07/05/2023, 9:50 AM
I haven't. Can you send me the URL of that?
I will update the docs
Please ignore the link above. Adding proper guidelines
b

Balog Tamás

07/05/2023, 10:29 AM
Thank you.
o

Oleg Nenashev

07/05/2023, 10:40 AM
Looks like there's sosme issue even with GitHub Token, but you can always use jitpack
Copy code
<dependency>
      <groupId>com.github.wiremock</groupId>
      <artifactId>wiremock-testcontainers-java</artifactId>
      <version>${wiremock-testcontainers.version}</version>
      <scope>test</scope>
    </dependency>
Copy code
<repository>
      <id><http://jitpack.io|jitpack.io></id>
      <url><https://jitpack.io></url>
    </repository>
b

Balog Tamás

07/06/2023, 3:34 PM
Looks good.
39 Views