You are working on a new Java project and you've decided to use Gradle as your build tool. You've created the necessary directories and files for your project. In addition, you've already started to setup your build.gradle file for the project, but some parts are not completely filled. Your task is to fill the blanks in code to correctly specify the repositories for dependencies, dependencies needed for your project.
Gradle build configuration
Completing a Gradle build file for a new project
Report a typo
Fill in the gaps with the relevant elements
: 'java'
repositories {
mavenCentral()
}
{
implementation 'com.google.guava:guava:28.2-jre'
}
buildApp(type: ) {
classpath = sourceSets.main.runtimeClasspath
main = 'org.example.Main'
}
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.