Add dependencies from javax.mail with Grable plugin

I was trying to add the dependencies of javax.mail to our project. I am trying to use javax.mail to check the contents of an account confirmation email using outlook. I installed the latest version of grable and java to do so.
The build.grable file is as follows:

plugins {
id ‘java’
id “com.katalon.gradle-plugin” version “0.0.7”
}
repositories {
mavenCentral()
}
dependencies {
compile ‘com.sun.mail:javax.mail:1.6.2’
}

When I build the project with grable on the windows command prompt, I am given the following output:

1 actionable task: 1 executed
C:\Users\tchargan\Katalon Studio\SESEmailTest>gradle katalonCopyDependencies

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use ‘–warning-mode all’ to show the individual deprecation warnings.
See Command-Line Interface

Any support would be appreciated.

Thank you.

@timh

Just downgrade Gradle to v5.x and run again.

Thanks