telekom / testerra-xray-connector

testerra-xray-connector is used for synchronizing test results with Xray plugin for Atlassian Jira.
Apache License 2.0
4 stars 1 forks source link

Project should build without proprietary init.gradle #13

Open Zsar opened 2 years ago

Zsar commented 2 years ago

Describe the bug

To Reproduce Steps to reproduce the behavior:

  1. check out the repository on a non-MMS computer
  2. gradle build

Expected behavior A project with build tool integration should build when checked out.

Observed behavior It does not.

Screenshots

C:\Users\smby\Projekte\testerra-xray-connector>gradle build
> Task :compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
   > Cannot resolve external dependency io.testerra:core:1.9 because no repositories are defined.
     Required by:
         project :
   > Cannot resolve external dependency org.reflections:reflections:0.9.12 because no repositories are defined.
     Required by:
         project :
   > Cannot resolve external dependency commons-codec:commons-codec:1.13 because no repositories are defined.
     Required by:
         project :
   > Cannot resolve external dependency org.glassfish.jersey.core:jersey-client:2.31 because no repositories are defined.
     Required by:
         project :
   > Cannot resolve external dependency javax.ws.rs:javax.ws.rs-api:2.0.1 because no repositories are defined.
     Required by:
         project :
   > Cannot resolve external dependency com.sun.jersey:jersey-client:1.19.3 because no repositories are defined.
     Required by:
         project :
   > Cannot resolve external dependency com.sun.jersey.contribs:jersey-multipart:1.19.3 because no repositories are defined.
     Required by:
         project :
   > Cannot resolve external dependency com.fasterxml.jackson.core:jackson-core:2.3.1 because no repositories are defined.
     Required by:
         project :
   > Cannot resolve external dependency com.fasterxml.jackson.core:jackson-databind:2.3.1 because no repositories are defined.
     Required by:
         project :

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s
1 actionable task: 1 executed

Test n/A

Environment(please complete the following information):

Hardware (please complete the following information):

Additional context E.g. testerra-appium-connector does not have this issue.

The issue is caused by this setup:

The issue can be fixed by the following setup:

=> public users will use maven-central, MMS coworkers will use MMS-internal repository, everyone can build the project.