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.phuriphanvichai, 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 -
Thanks for the step by step tutorial. It works really well!
0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛