Completing a Gradle build file for a new project

Report a typo

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.

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'
}
apply plugintaskJavaExecdependencies

Create a free account to access the full topic