Add code insight to plugin

Hi,
I’m trying to integrate code insight.

for some reason when I import the package:
com.atlassian.bitbucket.codeinsights.report.InsightReportService

I get this error :
package com.atlassian.bitbucket.codeinsights does not exist

Am I missing something?

Thanks!

Hi @HadarEpstein,

Do you have a dependency on the code-insights-api package?

        <dependency>
            <groupId>com.atlassian.bitbucket.server</groupId>
            <artifactId>bitbucket-code-insights-api</artifactId>
            <scope>provided</scope>
        </dependency>