Not able to upload JaCoCo report to SonarQube Cloud for my Gradle project

I’ve got a Gradle project imported into Sonar Cloud - telegram-forwarder-bot.

Project’s source code is here - yvasyliev/telegram-forwarder-bot.

According to Adding coverage in a Gradle project guide, I added jacoco and org.sonarqube plugins and enabled JaCoCo XML report generation in the build.gradle.

If I run ./gradlew build sonar --info locally, from the console output I will see that the report is uploaded to Sonar Cloud, and in Sonar Cloud overview tab I will see a new scan run. However, I will not find any clue of test coverage.

Sensor JaCoCo XML Report Importer [jacoco]
Importing 1 report(s). Turn your logs in debug mode in order to see the exhaustive list.
Sensor JaCoCo XML Report Importer [jacoco] (done) | time=82ms
Full console output
PS C:\Users\Yevhen\IdeaProjects\reddit-telegram-forwarder> ./gradlew sonar --info
Initialized native services in: C:\Users\Yevhen\.gradle\native
Initialized jansi services in: C:\Users\Yevhen\.gradle\native
Removing 0 daemon stop events from registry
Previous Daemon (26028) stopped at Wed Jul 16 22:22:44 EEST 2025 by user or operating system
Previous Daemon (1388) stopped at Wed Jul 16 22:22:44 EEST 2025 by user or operating system
Starting a Gradle Daemon, 1 busy and 2 stopped Daemons could not be reused, use --status for details
Starting process 'Gradle build daemon'. Working directory: C:\Users\Yevhen\.gradle\daemon\8.14.2 Command: C:\Users\Yevhen\.jdks\corretto-21.0.3\bin\java.exe --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=A
LL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens=java.base/java.uti
l=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-ope
ns=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.xml/javax.xml.namespace=ALL-UNNAMED -XX:MaxMetaspaceSize=384m -XX:+HeapDumpOnOutOfMemoryError -Xms
256m -Xmx512m -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -cp C:\Users\Yevhen\.gradle\wrapper\dists\gradle-8.14.2-bin\2pb3mgt1p815evrl3wea
nttgr\gradle-8.14.2\lib\gradle-daemon-main-8.14.2.jar -javaagent:C:\Users\Yevhen\.gradle\wrapper\dists\gradle-8.14.2-bin\2pb3mgt1p815evrl3weanttgr\gradle-8.14.2\lib\agents\gradle-instrumentation-agent-8.14.2.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 8.14.2
Successfully started process 'Gradle build daemon'
An attempt to start the daemon took 2.005 secs.
The client will now receive all logging from the daemon (pid: 9500). The daemon log file: C:\Users\Yevhen\.gradle\daemon\8.14.2\daemon-9500.out.log                     
Starting build in new daemon [memory: 512 MiB]
Using 12 worker leases.
Received JVM installation metadata from 'C:\Users\Yevhen\.jdks\corretto-21.0.3': {JAVA_HOME=C:\Users\Yevhen\.jdks\corretto-21.0.3, JAVA_VERSION=21.0.3, JAVA_VENDOR=Amazon.com Inc., RUNTIME_NAME=OpenJDK Runtime Environment, RUNTIME_VERSION=21.0.3+9-LTS, VM_NAME=OpenJDK 64-Bit Server VM, VM_VERSION=21.0.3+9-LTS, VM_VENDOR=Amazon.com Inc., OS_ARCH=amd64}
Watching the file system is configured to be enabled if available
Now considering [C:\Users\Yevhen\IdeaProjects\reddit-telegram-forwarder] as hierarchies to watch
File system watching is active
Starting Build
Invalidating in-memory cache of C:\Users\Yevhen\.gradle\caches\journal-1\file-access.bin
Invalidating in-memory cache of C:\Users\Yevhen\.gradle\caches\8.14.2\fileHashes\fileHashes.bin
Invalidating in-memory cache of C:\Users\Yevhen\.gradle\caches\8.14.2\fileHashes\resourceHashesCache.bin
Resource missing. [HTTP HEAD: https://plugins.gradle.org/m2/com/gradle/develocity/com.gradle.develocity.gradle.plugin/4.0.2/com.gradle.develocity.gradle.plugin-4.0.2.jar]
Resolved plugin [id: 'com.gradle.develocity', version: '4.0.2']
Invalidating in-memory cache of C:\Users\Yevhen\.gradle\caches\journal-1\file-access.bin
Invalidating in-memory cache of C:\Users\Yevhen\.gradle\caches\8.14.2\fileHashes\fileHashes.bin
Invalidating in-memory cache of C:\Users\Yevhen\.gradle\caches\8.14.2\fileHashes\resourceHashesCache.bin
Invalidating in-memory cache of C:\Users\Yevhen\.gradle\caches\journal-1\file-access.bin
Invalidating in-memory cache of C:\Users\Yevhen\.gradle\caches\8.14.2\fileHashes\fileHashes.bin
Invalidating in-memory cache of C:\Users\Yevhen\.gradle\caches\8.14.2\fileHashes\resourceHashesCache.bin
Settings evaluated using settings file 'C:\Users\Yevhen\IdeaProjects\reddit-telegram-forwarder\settings.gradle'.
Invalidating in-memory cache of C:\Users\Yevhen\.gradle\caches\journal-1\file-access.bin
Invalidating in-memory cache of C:\Users\Yevhen\.gradle\caches\8.14.2\fileHashes\fileHashes.bin
Invalidating in-memory cache of C:\Users\Yevhen\.gradle\caches\8.14.2\fileHashes\resourceHashesCache.bin
Projects loaded. Root project using build file 'C:\Users\Yevhen\IdeaProjects\reddit-telegram-forwarder\build.gradle'.
Included projects: [root project 'telegram-forwarder-bot']

> Configure project :
Evaluating root project 'telegram-forwarder-bot' using build file 'C:\Users\Yevhen\IdeaProjects\reddit-telegram-forwarder\build.gradle'.
Caching disabled for Groovy DSL script compilation (cp_proj) because:
  Build cache is disabled
  Not worth caching.
Compiling build file 'C:\Users\Yevhen\IdeaProjects\reddit-telegram-forwarder\build.gradle' using SubsetScriptTransformer.
Invalidating in-memory cache of C:\Users\Yevhen\.gradle\caches\8.14.2\fileHashes\fileHashes.bin
Invalidating in-memory cache of C:\Users\Yevhen\.gradle\caches\8.14.2\fileHashes\resourceHashesCache.bin

Invalidating in-memory cache of C:\Users\Yevhen\.gradle\caches\journal-1\file-access.bin

> Configure project :
Resolved plugin [id: 'java']
Resolved plugin [id: 'org.springframework.boot', version: '3.5.3']
Resolved plugin [id: 'io.spring.dependency-management', version: '1.1.7']
Resolved plugin [id: 'jacoco']
Resolved plugin [id: 'org.sonarqube', version: '6.2.0.5505']
Resolved plugin [id: 'checkstyle']
Invalidating in-memory cache of C:\Users\Yevhen\.gradle\caches\8.14.2\fileHashes\fileHashes.bin
Invalidating in-memory cache of C:\Users\Yevhen\.gradle\caches\8.14.2\fileHashes\resourceHashesCache.bin
Invalidating in-memory cache of C:\Users\Yevhen\.gradle\caches\8.14.2\fileHashes\fileHashes.bin
Invalidating in-memory cache of C:\Users\Yevhen\.gradle\caches\8.14.2\fileHashes\resourceHashesCache.bin
Applying dependency management to configuration 'annotationProcessor' in project 'telegram-forwarder-bot'
Applying dependency management to configuration 'apiElements' in project 'telegram-forwarder-bot'
Applying dependency management to configuration 'archives' in project 'telegram-forwarder-bot'
Applying dependency management to configuration 'bootArchives' in project 'telegram-forwarder-bot'
Applying dependency management to configuration 'compileClasspath' in project 'telegram-forwarder-bot'
Applying dependency management to configuration 'compileOnly' in project 'telegram-forwarder-bot'
Applying dependency management to configuration 'default' in project 'telegram-forwarder-bot'
Applying dependency management to configuration 'developmentOnly' in project 'telegram-forwarder-bot'
Applying dependency management to configuration 'implementation' in project 'telegram-forwarder-bot'
Applying dependency management to configuration 'mainSourceElements' in project 'telegram-forwarder-bot'
Applying dependency management to configuration 'productionRuntimeClasspath' in project 'telegram-forwarder-bot'
Applying dependency management to configuration 'runtimeClasspath' in project 'telegram-forwarder-bot'
Applying dependency management to configuration 'runtimeElements' in project 'telegram-forwarder-bot'
Applying dependency management to configuration 'runtimeOnly' in project 'telegram-forwarder-bot'
Applying dependency management to configuration 'testAndDevelopmentOnly' in project 'telegram-forwarder-bot'
Applying dependency management to configuration 'testAnnotationProcessor' in project 'telegram-forwarder-bot'
Applying dependency management to configuration 'testCompileClasspath' in project 'telegram-forwarder-bot'
Applying dependency management to configuration 'testCompileOnly' in project 'telegram-forwarder-bot'
Applying dependency management to configuration 'testImplementation' in project 'telegram-forwarder-bot'
Applying dependency management to configuration 'testResultsElementsForTest' in project 'telegram-forwarder-bot'
Applying dependency management to configuration 'testRuntimeClasspath' in project 'telegram-forwarder-bot'
Applying dependency management to configuration 'testRuntimeOnly' in project 'telegram-forwarder-bot'
Applying dependency management to configuration 'jacocoAgent' in project 'telegram-forwarder-bot'
Applying dependency management to configuration 'jacocoAnt' in project 'telegram-forwarder-bot'
Applying dependency management to configuration 'coverageDataElementsForTest' in project 'telegram-forwarder-bot'
Applying dependency management to configuration 'checkstyle' in project 'telegram-forwarder-bot'
Invalidating in-memory cache of C:\Users\Yevhen\.gradle\caches\journal-1\file-access.bin
Applying dependency management to configuration 'mockitoAgent' in project 'telegram-forwarder-bot'
Resolving global dependency management for project 'telegram-forwarder-bot'
Invalidating in-memory cache of C:\Users\Yevhen\.gradle\caches\journal-1\file-access.bin
Excluding []
All projects evaluated.
Task name matched 'sonar'
Selected primary task 'sonar' from project :
Tasks to be executed: [task ':sonar']
Tasks that were excluded: []
Resolve mutations for :sonar (Thread[#183,Execution worker Thread 4,5,main]) started.
:sonar (Thread[#183,Execution worker Thread 4,5,main]) started.
Starting process 'command 'C:\Users\Yevhen\.jdks\corretto-21.0.6\bin\java.exe''. Working directory: C:\Users\Yevhen\.gradle\.tmp\tmp-jvm17517445421854662163probe Command: C:\Users\Yevhen\.jdks\corretto-21.0.6\bin\java.exe -Xmx32m -Xms32m -cp . JavaProbe
Successfully started process 'command 'C:\Users\Yevhen\.jdks\corretto-21.0.6\bin\java.exe''
Received JVM installation metadata from 'C:\Users\Yevhen\.jdks\corretto-21.0.6': {JAVA_HOME=C:\Users\Yevhen\.jdks\corretto-21.0.6, JAVA_VERSION=21.0.6, JAVA_VENDOR=Amazon.com Inc., RUNTIME_NAME=OpenJDK Runtime Environment, RUNTIME_VERSION=21.0.6+7-LTS, VM_NAME=OpenJDK 64-Bit Server VM, VM_VERSION=21.0.6+7-LTS, VM_VENDOR=Amazon.com Inc., OS_ARCH=amd64}
Starting process 'command 'C:\Users\Yevhen\.jdks\corretto-21.0.7\bin\java.exe''. Working directory: C:\Users\Yevhen\.gradle\.tmp\tmp-jvm17802324945087444687probe Command: C:\Users\Yevhen\.jdks\corretto-21.0.7\bin\java.exe -Xmx32m -Xms32m -cp . JavaProbe
Successfully started process 'command 'C:\Users\Yevhen\.jdks\corretto-21.0.7\bin\java.exe''
Received JVM installation metadata from 'C:\Users\Yevhen\.jdks\corretto-21.0.7': {JAVA_HOME=C:\Users\Yevhen\.jdks\corretto-21.0.7, JAVA_VERSION=21.0.7, JAVA_VENDOR=Amazon.com Inc., RUNTIME_NAME=OpenJDK Runtime Environment, RUNTIME_VERSION=21.0.7+6-LTS, VM_NAME=OpenJDK 64-Bit Server VM, VM_VERSION=21.0.7+6-LTS, VM_VENDOR=Amazon.com Inc., OS_ARCH=amd64}
Starting process 'command 'C:\Users\Yevhen\.jdks\corretto-21.0.4\bin\java.exe''. Working directory: C:\Users\Yevhen\.gradle\.tmp\tmp-jvm1953976115932391698probe Command: C:\Users\Yevhen\.jdks\corretto-21.0.4\bin\java.exe -Xmx32m -Xms32m -cp . JavaProbe
Successfully started process 'command 'C:\Users\Yevhen\.jdks\corretto-21.0.4\bin\java.exe''
Received JVM installation metadata from 'C:\Users\Yevhen\.jdks\corretto-21.0.4': {JAVA_HOME=C:\Users\Yevhen\.jdks\corretto-21.0.4, JAVA_VERSION=21.0.4, JAVA_VENDOR=Amazon.com Inc., RUNTIME_NAME=OpenJDK Runtime Environment, RUNTIME_VERSION=21.0.4+7-LTS, VM_NAME=OpenJDK 64-Bit Server VM, VM_VERSION=21.0.4+7-LTS, VM_VENDOR=Amazon.com Inc., OS_ARCH=amd64}

> Task :sonar
Starting process 'command 'C:\Users\Yevhen\.jdks\temurin-17.0.15\bin\java.exe''. Working directory: C:\Users\Yevhen\.gradle\.tmp\tmp-jvm3440964154681427860probe Command: C:\Users\Yevhen\.jdks\temurin-17.0.15\bin\java.exe -Xmx32m -Xms32m -cp . JavaProbe
Successfully started process 'command 'C:\Users\Yevhen\.jdks\temurin-17.0.15\bin\java.exe''
Received JVM installation metadata from 'C:\Users\Yevhen\.jdks\temurin-17.0.15': {JAVA_HOME=C:\Users\Yevhen\.jdks\temurin-17.0.15, JAVA_VERSION=17.0.15, JAVA_VENDOR=Ecl
ipse Adoptium, RUNTIME_NAME=OpenJDK Runtime Environment, RUNTIME_VERSION=17.0.15+6, VM_NAME=OpenJDK 64-Bit Server VM, VM_VERSION=17.0.15+6, VM_VENDOR=Eclipse Adoptium, OS_ARCH=amd64}
Starting process 'command 'C:\Users\Yevhen\.jdks\corretto-21.0.5\bin\java.exe''. Working directory: C:\Users\Yevhen\.gradle\.tmp\tmp-jvm12801734174789976760probe Command: C:\Users\Yevhen\.jdks\corretto-21.0.5\bin\java.exe -Xmx32m -Xms32m -cp . JavaProbe
Successfully started process 'command 'C:\Users\Yevhen\.jdks\corretto-21.0.5\bin\java.exe''
Received JVM installation metadata from 'C:\Users\Yevhen\.jdks\corretto-21.0.5': {JAVA_HOME=C:\Users\Yevhen\.jdks\corretto-21.0.5, JAVA_VERSION=21.0.5, JAVA_VENDOR=Amaz
on.com Inc., RUNTIME_NAME=OpenJDK Runtime Environment, RUNTIME_VERSION=21.0.5+11-LTS, VM_NAME=OpenJDK 64-Bit Server VM, VM_VERSION=21.0.5+11-LTS, VM_VENDOR=Amazon.com Inc., OS_ARCH=amd64}
Excluding []
Excluding []
Excluding []
Excluding []
Caching disabled for task ':sonar' because:
  Build cache is disabled
Task ':sonar' is not up-to-date because:
  Task has not declared any outputs despite executing actions.
org.sonarqube Gradle plugin 6.2.0.5505
Java 21.0.3 Amazon.com Inc. (64-bit)
Windows 11 10.0 (amd64)
User cache: C:\Users\Yevhen\.sonar\cache
Communicating with SonarQube Cloud
JRE provisioning: os[windows], arch[amd64]

Starting SonarScanner Engine...
Java 17.0.11 Eclipse Adoptium (64-bit)
Load global settings
Load global settings (done) | time=583ms
Server id: 1BD809FA-AWHW8ct9-T_TB3XqouNu
Loading required plugins
Load plugins index
Load plugins index (done) | time=97ms
Load/download plugins
Load/download plugins (done) | time=80ms
Load project settings for component key: 'io.github.yvasyliev.telegramforwarderbot:telegram-forwarder-bot'
Load project settings for component key: 'io.github.yvasyliev.telegramforwarderbot:telegram-forwarder-bot' (done) | time=270ms
Process project properties
Project key: io.github.yvasyliev.telegramforwarderbot:telegram-forwarder-bot
Base dir: C:\Users\Yevhen\IdeaProjects\reddit-telegram-forwarder
Working dir: C:\Users\Yevhen\IdeaProjects\reddit-telegram-forwarder\build\sonar
Load project branches
Load project branches (done) | time=200ms
Check ALM binding of project 'io.github.yvasyliev.telegramforwarderbot:telegram-forwarder-bot'
Detected project binding: NOT_BOUND
Check ALM binding of project 'io.github.yvasyliev.telegramforwarderbot:telegram-forwarder-bot' (done) | time=69ms
Load project pull requests
Load project pull requests (done) | time=127ms
Load branch configuration
Load branch configuration (done) | time=0ms
Load quality profiles
Load quality profiles (done) | time=377ms
Load active rules
Load active rules (done) | time=1326ms
Organization key: yvasyliev
Preprocessing files...
2 languages detected in 51 preprocessed files (done) | time=462ms
0 files ignored because of inclusion/exclusion patterns
0 files ignored because of scm ignore settings
Loading plugins for detected languages
Load/download plugins
Load/download plugins (done) | time=177ms
SonarJasmin relies on SonarSecurity to define the JS/TS security rule repositories.
Load project repositories
Load project repositories (done) | time=144ms
Indexing files...
Project configuration:
  Excluded sources: **/build-wrapper-dump.json
51 files indexed (done) | time=23ms
Quality profile for java: Sonar way
Quality profile for web: Sonar way
------------- Run sensors on module telegram-forwarder-bot
SonarJasmin relies on SonarSecurity to define the JS/TS security rule repositories.
Load metrics repository
Load metrics repository (done) | time=68ms
Sensor cache enabled
Load sensor cache
Load sensor cache (88 KB) | time=822ms
Sensor JavaSensor [java]
Configured Java source version (sonar.java.source): 21, preview features enabled (sonar.java.enablePreview): false
Server-side caching is enabled. The Java analyzer will not try to leverage data from a previous analysis.
No "Main" source files to scan.
Using ECJ batch to parse 45 Test java source files with batch size 183 KB.
Starting batch processing.
The Java analyzer cannot skip unchanged files in this context. A full analysis is performed for all files.
100% analyzed
Batch processing: Done.
Did not optimize analysis for any files, performed a full analysis for all 45 files.
No "Generated" source files to scan.
Sensor JavaSensor [java] (done) | time=3535ms
Sensor JaCoCo XML Report Importer [jacoco]
Importing 1 report(s). Turn your logs in debug mode in order to see the exhaustive list.
Sensor JaCoCo XML Report Importer [jacoco] (done) | time=82ms
Sensor Java Config Sensor [iac]
0 source files to be analyzed
0/0 source files have been analyzed
Sensor Java Config Sensor [iac] (done) | time=34ms
Sensor JavaScript inside HTML analysis [javascript]
Detected os: Windows 11 arch: amd64 alpine: false. Platform: WIN_X64
Deploy location C:\Users\Yevhen\.sonar\js\node-runtime, tagetRuntime: C:\Users\Yevhen\.sonar\js\node-runtime\node.exe,  version: C:\Users\Yevhen\.sonar\js\node-runtime\version.txt
Using embedded Node.js runtime.
Using Node.js executable: 'C:\Users\Yevhen\.sonar\js\node-runtime\node.exe'.
Memory configuration: OS (14020 MB), Node.js (2096 MB).
WebSocket client connected on /ws
6 source files to be analyzed
Plugin version: [11.0.0.33655]
6/6 source files have been analyzed
Hit the cache for 0 out of 6
Miss the cache for 6 out of 6: ANALYSIS_MODE_INELIGIBLE [6/6]
Sensor JavaScript inside HTML analysis [javascript] (done) | time=14577ms
Sensor CSS Rules [javascript]
6 source files to be analyzed
6/6 source files have been analyzed
Hit the cache for 0 out of 0
Miss the cache for 0 out of 0
Sensor CSS Rules [javascript] (done) | time=120ms
Sensor ThymeLeaf template sensor [securityjavafrontend]
Sensor ThymeLeaf template sensor [securityjavafrontend] (done) | time=543ms
Sensor SurefireSensor [java]
parsing [C:\Users\Yevhen\IdeaProjects\reddit-telegram-forwarder\build\test-results\test]
Sensor SurefireSensor [java] (done) | time=321ms
Sensor HTML [web]
Sensor HTML [web] (done) | time=129ms
Sensor IaC Docker Sensor [iac]
0 source files to be analyzed
0/0 source files have been analyzed
Sensor IaC Docker Sensor [iac] (done) | time=157ms
Sensor Serverless configuration file sensor [security]
0 Serverless function entries were found in the project
0 Serverless function handlers were kept as entrypoints
Sensor Serverless configuration file sensor [security] (done) | time=9ms
Sensor AWS SAM template file sensor [security]
Sensor AWS SAM template file sensor [security] (done) | time=1ms
Sensor AWS SAM Inline template file sensor [security]
Sensor AWS SAM Inline template file sensor [security] (done) | time=2ms
Sensor javabugs [dbd]
No IR files have been included for analysis.
Sensor javabugs [dbd] (done) | time=8ms
Sensor pythonbugs [dbd]
No IR files have been included for analysis.
Sensor pythonbugs [dbd] (done) | time=0ms
Sensor EnterpriseTextAndSecretsSensor [textenterprise]
Available processors: 12
Using 12 threads for analysis.
Start fetching files for the text and secrets analysis
Using Git CLI to retrieve untracked files
Retrieving language associated files and files included via "sonar.text.inclusions" that are tracked by git
Starting the text and secrets analysis
51 source files to be analyzed for the text and secrets analysis
51/51 source files have been analyzed for the text and secrets analysis
Start fetching files for the binary file analysis
There are no files to be analyzed for the binary file analysis
Sensor EnterpriseTextAndSecretsSensor [textenterprise] (done) | time=2196ms
Sensor JavaSecuritySensor [security]
27 taint analysis rules enabled.
Analyzing 6 UCFGs to detect vulnerabilities.
No entry points found.
java security sensor: Begin: 2025-07-16T19:24:02.615159900Z, End: 2025-07-16T19:24:06.445649200Z, Duration: 00:00:03.830
  Load type hierarchy and UCFGs: Begin: 2025-07-16T19:24:02.628332900Z, End: 2025-07-16T19:24:02.841075700Z, Duration: 00:00:00.212
    Load type hierarchy: Begin: 2025-07-16T19:24:02.628332900Z, End: 2025-07-16T19:24:02.693815100Z, Duration: 00:00:00.065
    Load UCFGs: Begin: 2025-07-16T19:24:02.693815100Z, End: 2025-07-16T19:24:02.841075700Z, Duration: 00:00:00.147
  Check cache: Begin: 2025-07-16T19:24:02.841075700Z, End: 2025-07-16T19:24:02.841075700Z, Duration: 00:00:00.000
    Load cache: Begin: 2025-07-16T19:24:02.841075700Z, End: 2025-07-16T19:24:02.841075700Z, Duration: 00:00:00.000
  Create runtime call graph: Begin: 2025-07-16T19:24:02.841075700Z, End: 2025-07-16T19:24:02.844405100Z, Duration: 00:00:00.003
    Variable Type Analysis #1: Begin: 2025-07-16T19:24:02.844405100Z, End: 2025-07-16T19:24:02.844405100Z, Duration: 00:00:00.000
      Create runtime type propagation graph: Begin: 2025-07-16T19:24:02.844405100Z, End: 2025-07-16T19:24:02.844405100Z, Duration: 00:00:00.000
      Run SCC (Tarjan) on 0 nodes: Begin: 2025-07-16T19:24:02.844405100Z, End: 2025-07-16T19:24:02.844405100Z, Duration: 00:00:00.000
      Propagate runtime types to strongly connected components: Begin: 2025-07-16T19:24:02.844405100Z, End: 2025-07-16T19:24:02.844405100Z, Duration: 00:00:00.000      
    Variable Type Analysis #2: Begin: 2025-07-16T19:24:02.844405100Z, End: 2025-07-16T19:24:02.844405100Z, Duration: 00:00:00.000
      Create runtime type propagation graph: Begin: 2025-07-16T19:24:02.844405100Z, End: 2025-07-16T19:24:02.844405100Z, Duration: 00:00:00.000
      Run SCC (Tarjan) on 0 nodes: Begin: 2025-07-16T19:24:02.844405100Z, End: 2025-07-16T19:24:02.844405100Z, Duration: 00:00:00.000
      Propagate runtime types to strongly connected components: Begin: 2025-07-16T19:24:02.844405100Z, End: 2025-07-16T19:24:02.844405100Z, Duration: 00:00:00.000      
  Load config: Begin: 2025-07-16T19:24:02.844405100Z, End: 2025-07-16T19:24:06.422994900Z, Duration: 00:00:03.578
  Compute entry points: Begin: 2025-07-16T19:24:06.422994900Z, End: 2025-07-16T19:24:06.439711800Z, Duration: 00:00:00.016
java security sensor peak memory: 723 MB
Sensor JavaSecuritySensor [security] (done) | time=3836ms
Sensor CSharpSecuritySensor [security]
26 taint analysis rules enabled.
No UCFGs have been included for analysis.
csharp security sensor: Begin: 2025-07-16T19:24:06.445649200Z, End: 2025-07-16T19:24:06.445649200Z, Duration: 00:00:00.000
  Load type hierarchy and UCFGs: Begin: 2025-07-16T19:24:06.445649200Z, End: 2025-07-16T19:24:06.445649200Z, Duration: 00:00:00.000
    Load type hierarchy: Begin: 2025-07-16T19:24:06.445649200Z, End: 2025-07-16T19:24:06.445649200Z, Duration: 00:00:00.000
    Load UCFGs: Begin: 2025-07-16T19:24:06.445649200Z, End: 2025-07-16T19:24:06.445649200Z, Duration: 00:00:00.000
csharp security sensor peak memory: 205 MB
Sensor CSharpSecuritySensor [security] (done) | time=8ms
Sensor PhpSecuritySensor [security]
18 taint analysis rules enabled.
No UCFGs have been included for analysis.
php security sensor: Begin: 2025-07-16T19:24:06.453823500Z, End: 2025-07-16T19:24:06.453823500Z, Duration: 00:00:00.000
  Load type hierarchy and UCFGs: Begin: 2025-07-16T19:24:06.453823500Z, End: 2025-07-16T19:24:06.453823500Z, Duration: 00:00:00.000
    Load type hierarchy: Begin: 2025-07-16T19:24:06.453823500Z, End: 2025-07-16T19:24:06.453823500Z, Duration: 00:00:00.000
    Load UCFGs: Begin: 2025-07-16T19:24:06.453823500Z, End: 2025-07-16T19:24:06.453823500Z, Duration: 00:00:00.000
php security sensor peak memory: 205 MB
Sensor PhpSecuritySensor [security] (done) | time=0ms
Sensor PythonSecuritySensor [security]
21 taint analysis rules enabled.
No UCFGs have been included for analysis.
python security sensor: Begin: 2025-07-16T19:24:06.453823500Z, End: 2025-07-16T19:24:06.453823500Z, Duration: 00:00:00.000
  Load type hierarchy and UCFGs: Begin: 2025-07-16T19:24:06.453823500Z, End: 2025-07-16T19:24:06.453823500Z, Duration: 00:00:00.000
    Load type hierarchy: Begin: 2025-07-16T19:24:06.453823500Z, End: 2025-07-16T19:24:06.453823500Z, Duration: 00:00:00.000
    Load UCFGs: Begin: 2025-07-16T19:24:06.453823500Z, End: 2025-07-16T19:24:06.453823500Z, Duration: 00:00:00.000
python security sensor peak memory: 205 MB
Sensor PythonSecuritySensor [security] (done) | time=0ms
Sensor JsSecuritySensor [security]
Sensor JsSecuritySensor [security] (done) | time=8ms
Sensor KotlinSecuritySensor [security]
26 taint analysis rules enabled.
No UCFGs have been included for analysis.
kotlin security sensor: Begin: 2025-07-16T19:24:06.461543400Z, End: 2025-07-16T19:24:06.461543400Z, Duration: 00:00:00.000
  Load type hierarchy and UCFGs: Begin: 2025-07-16T19:24:06.461543400Z, End: 2025-07-16T19:24:06.461543400Z, Duration: 00:00:00.000
    Load type hierarchy: Begin: 2025-07-16T19:24:06.461543400Z, End: 2025-07-16T19:24:06.461543400Z, Duration: 00:00:00.000
    Load UCFGs: Begin: 2025-07-16T19:24:06.461543400Z, End: 2025-07-16T19:24:06.461543400Z, Duration: 00:00:00.000
kotlin security sensor peak memory: 205 MB
Sensor KotlinSecuritySensor [security] (done) | time=0ms
Sensor GoSecuritySensor [security]
9 taint analysis rules enabled.
No UCFGs have been included for analysis.
go security sensor: Begin: 2025-07-16T19:24:06.461543400Z, End: 2025-07-16T19:24:06.461543400Z, Duration: 00:00:00.000
  Load type hierarchy and UCFGs: Begin: 2025-07-16T19:24:06.461543400Z, End: 2025-07-16T19:24:06.461543400Z, Duration: 00:00:00.000
    Load type hierarchy: Begin: 2025-07-16T19:24:06.461543400Z, End: 2025-07-16T19:24:06.461543400Z, Duration: 00:00:00.000
    Load UCFGs: Begin: 2025-07-16T19:24:06.461543400Z, End: 2025-07-16T19:24:06.461543400Z, Duration: 00:00:00.000
go security sensor peak memory: 205 MB
Sensor GoSecuritySensor [security] (done) | time=0ms
------------- Run sensors on project
Sensor JavaArchitectureSensor [architecture]
* Protobuf reading starting | memory total=792 | free=561 | used=230 (MB)
* Reading SonarArchitecture IR data from directory "C:\Users\Yevhen\IdeaProjects\reddit-telegram-forwarder\build\sonar\architecture\java"
* Files successfully loaded: "45" out of "45"
* Protobuf reading complete | memory total=792 | free=537 | used=254 (MB)
* Build file hiGraphs complete | memory total=792 | free=526 | used=265 (MB)
* Slicing complete | memory total=792 | free=526 | used=265 (MB)
* Cycle detection complete | memory total=792 | free=526 | used=265 (MB)
* Build file hiGraphs complete | memory total=792 | free=523 | used=268 (MB)
* Slicing complete | memory total=792 | free=523 | used=268 (MB)
* Export complete | memory total=792 | free=521 | used=270 (MB)
Sensor JavaArchitectureSensor [architecture] (done) | time=739ms
Sensor Zero Coverage Sensor
Sensor Zero Coverage Sensor (done) | time=0ms
Sensor Java CPD Block Indexer
Sensor Java CPD Block Indexer (done) | time=0ms
------------- Gather SCA dependencies on project
Checking if SCA is enabled for organization yvasyliev
Dependency analysis skipped
CPD Executor 6 files had no CPD blocks
CPD Executor Calculating CPD for 0 files
CPD Executor CPD calculation finished (done) | time=0ms
Analysis report generated in 534ms, dir size=507 KB
Analysis report compressed in 567ms, zip size=171 KB
Analysis report uploaded in 457ms
ANALYSIS SUCCESSFUL, you can find the results at: https://sonarcloud.io/dashboard?id=io.github.yvasyliev.telegramforwarderbot%3Atelegram-forwarder-bot
Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
More about the report processing at https://sonarcloud.io/api/ce/task?id=AZgUsb9ixVR4JdY0H5dV
Sensor cache published successfully
Analysis total time: 39.603 s
SonarScanner Engine completed successfully

BUILD SUCCESSFUL in 1m 22s
1 actionable task: 1 executed
Watched directory hierarchies: []

Publishing Build Scan...
https://gradle.com/s/vup7tmauzm2hc


I tried adding build/reports/jacoco/test/jacocoTestReport.xml to Administration > General Settings > JaCoCo > Paths to JaCoCo XML coverage report files as well as setting sonar.coverage.jacoco.xmlReportPaths property explicitly in the build.gradle, but the result is the same.

Automatic Analysis Method is disabled.

Could you please guide me through the correct way of uploading the JaCoCo report?

Hello!

It looks like the issue was caused by an extra line in your build.gradle:

property "sonar.sources", "src/main/resources/templates"

Removing this line resolved the problem, and now the coverage imports correctly (see my fork here).

The root cause was that the files covered by your tests were excluded from analysis because they weren’t included in sonar.sources. Once that line was removed, and the SonarScanner for Gradle’s defaults were being used again, SonarQube could see all your sources, and coverage was reported as expected.

1 Like

You’re right - I can see the coverage after removing sonar.sources line! :tada: Thank you a ton! :folded_hands:

I’ve noticed that there’s also an analysis warning

Some thymeleaf templates are not indexed : you may want to add "src/main/resources" in the scanned files of this project to detect java XSS vulnerabilities

So if you want to fix that issue, you can do something like this:

    property "sonar.sources", "src/main/"

Which will capture the src/main/resources folder, along with src/main/java

You could also try:

    property "sonar.sources", "src/main/java,src/main/resources"

Maybe that is what you were trying to fix originally :smiley:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.