Hey there! This problem might be a bit unpredictable, but give it a go and let us know how you do!
You are tasked with creating a Gradle build script for a Java project, which is known to depend on version 28.2-jre of the 'com.google.guava:guava' library from Maven Central Repository. In addition, you need to define a custom task 'showDeps' that creates a dependency report. The lines of code that achieve this task are scrambled. Your job is to reorder them in a way they form a valid Gradle build script.Dependency management: libraries
Creating a Gradle build script for a Java project
Report a typo
Reorder lines using drag or arrows. Adjust indentation with left buttons
}
dependencies {
repositories {
}
}
}
task showDeps(type: ProjectReportsTask) {
apply plugin: 'java'
reports {
dependencies.enabled = true
compile 'com.google.guava:guava:28.2-jre'
mavenCentral()
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.