Adding POI library to Gradle

Hello, since 2 days i’m trying to add POI library to Gradle but unfortunately it doesn’t work.
i tried the command gradle clean build it doesn’t fix the issue.

My gradle.build

apply plugin: 'java'
apply plugin: 'application'

mainClassName = 'CalendarQuickstart'
sourceCompatibility = 11
targetCompatibility = 11
version = '1.0'

repositories {
    mavenCentral()
}

dependencies {
    implementation 'com.google.api-client:google-api-client:2.0.0'
    implementation 'com.google.oauth-client:google-oauth-client-jetty:1.34.1'
    implementation 'com.google.apis:google-api-services-calendar:v3-rev20220715-2.0.0'
    implementation 'org.apache.poi:poi:5.2.3'
    implementation 'org.apache.poi:poi-ooxml:5.2.3'
}

That’s not at all a Gradle topic.
You simply did not import the classes you try to use.