Real time Java SDK Consumer code - gradlew error

Hi,
We have got Java SDK - Real-Time-SDK-2.0.1.L1.java
I have been trying to run sample Consumer app inside, have been following https://github.com/Refinitiv/Real-Time-SDK/tree/master/Java
However, I am getting error as below ( I had to put gradle-5.4.1-bin.zip manually due to firewall, not sure below is related to that )....
C:\Software\Real-Time-SDK-2.0.1.L1.java\Real-Time-SDK-2.0.1.L1.java\setup\RTSDK-2.0.1.L1.java.rrg\RTSDK-2.0.1.L1.java.rrg\Java>gradlew runconsumer100
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Software\Real-Time-SDK-2.0.1.L1.java\Real-Time-SDK-2.0.1.L1.java\
setup\RTSDK-2.0.1.L1.java.rrg\RTSDK-2.0.1.L1.java.rrg\Java\build.gradle' line: 1
3
* What went wrong:
Plugin [id: 'net.saliman.cobertura', version: '2.5.1'] was not found in any of t
he following sources:
- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (could not resolve plugin artifact 'net.saliman.cobertura:
net.saliman.cobertura.gradle.plugin:2.5.1')
Searched in the following repositories:
Gradle Central Plugin Repository
* 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 2m 18s
Best Answer
-
I found this file gradle-cobertura-plugin-2.5.1.jar in the Gradle's cache directory C:\<prifile>\.gradle\caches\modules-2\files-2.1\net.saliman\gradle-cobertura-plugin\2.5.1\81aab8f4d8a6f8001cdc7f1937d4c6b0a412ec79.
If I removed this file and disabled the internet connection, I got the following error when running the gradlew command.
Starting a Gradle Daemon, 1 incompatible and 2 stopped Daemons could not be reused, use --status for details
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\D_DRIVE\temp\Real-Time-SDK-2.0.0.L1.java\Real-Time-SDK-2.0.0.L1.java\setup\RTSDK-2.0.0.L1.java.rrg\RTSDK-2.0.0.L1.java.rrg\Java\build.gradle' line: 13
* What went wrong:
Plugin [id: 'net.saliman.cobertura', version: '2.5.1'] was not found in any of the following sources:
- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (could not resolve plugin artifact 'net.saliman.cobertura:net.saliman.cobertura.gradle.plugin:2.5.1')
Searched in the following repositories:
Gradle Central Plugin Repository
* 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 10sHowever, after enabling the Internet connection and re-running the command, it can run properly.
I assume that it requires Internet access for Gradle to download dependencies.
0
Answers
-
@jirapongse.phuriphanvichai, Thanks for your response.
I will try downloading plugin from github, and build manually.. Hopefully that should resolve as I see 2 plugins being referred.
0 -
Hi Zoya,
I tried that, however I get same error.
C:\Software\Real-Time-SDK-2.0.1.L1.java\Real-Time-SDK-2.0.1.L1.java\setup\RTSDK-
2.0.1.L1.java.rrg\RTSDK-2.0.1.L1.java.rrg\Java>gradlew.bat jar
Starting a Gradle Daemon (subsequent builds will be faster)
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Software\Real-Time-SDK-2.0.1.L1.java\Real-Time-SDK-2.0.1.L1.java\
setup\RTSDK-2.0.1.L1.java.rrg\RTSDK-2.0.1.L1.java.rrg\Java\build.gradle' line: 1
3
* What went wrong:
Plugin [id: 'net.saliman.cobertura', version: '2.5.1'] was not found in any of t
he following sources:
- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (could not resolve plugin artifact 'net.saliman.cobertura:
net.saliman.cobertura.gradle.plugin:2.5.1')
Searched in the following repositories:
Gradle Central Plugin Repository
* 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 2m 27s
C:\Software\Real-Time-SDK-2.0.1.L1.java\Real-Time-SDK-2.0.1.L1.java\setup\RTSDK-
2.0.1.L1.java.rrg\RTSDK-2.0.1.L1.java.rrg\Java>0 -
Hello @chirag.soni,
Do you find "net.saliman.cobertura" in your local .gradle folder?
If you do not find it, this is the root of the issue, and I agree with @Jirapongse, in that you need to build on internet-enabled host so that dependencies can be downloaded.
You may be able to side-step the issue and build, by building on another host and moving the dependencies to the expected location on this host, but this seems to be a far from optimal approach, more complex and error-prone.
If you see it there via search, but "gradle jar build" does not find it, perhaps this discussion thread can be of help.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 685 Datastream
- 1.4K DSS
- 615 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 252 ETA
- 556 WebSocket API
- 38 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 652 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 193 TREP Infrastructure
- 228 TRKD
- 917 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛