Multiline comments in Gradle build files are included using -all
Gradle build scripts are written in-Groovy or kotlin
Gradle build scripts use a combination of declarative and imperative statements.-true
In gradle, a disabled task is labelled as-
Gradle tasks can also be created and extended dynamically at runtime-true
Hi Hello Hey
To execute the hello task in the build file, type ___ on the command line.gradle hello or gradle -q hello
task a {
doLast { println 'A'
}}
task b(dependsOn: a) {
doLast { println 'B'
}}
task c(dependsOn: a){
DoLast { println 'C'
}}
AC
========
Which of the following statement is true about Jenkins?-all
Jobs are the unit of execution in Jenkins.-true
In Jenkins, a build job performs-all
Which are the two types of plugins in gradle?-binary and script
In gradle, JAR files are published to-all
Which plugins are configured while integrating gradle with Jenkins?-Gradle Plugin And plugin of
repository used
=========
The wrapper plugin can be auto-applied to the root project of the current build without modifying the
build.gradle file.-True
Finalizer tasks are automatically added to the task graph when the finalized task is scheduled to run.-
True
Gradle wrapper makes the execution of the build independent of the installed Gradle version.-True
Gradle supports multiple project templates called archetypes-False
Lifecycle tasks typically have task actions-False
Which of the following statements are true?-Ant or Maven script can be migrated to Gradle build script
In Gradle, the java plugin searches for java production source code in the directory-/src/main/java
In Gradle , the java plugin searches for java test source code in the directory -/src/test/java
The first line added in the build script to make the Android plug-in available for a Gradle build is-apply
plugin: 'com.android.application'
Which method is used to attach a predicate to a skipping task?-onlyif
Which of the following statement is false?-Gradle is an imperative build tool
In gradle to specify, which projects belong to the build, and which file is used?-settings.gradle
The war plugin enables the default JAR archive generation of the Java plugin-False
Which of the following is a quality plugin of Gradle?-all
Which of the following is Gradle's in-built task?-all
Applying the Application plugin also implicitly applies the Java plugin.-True
Gradle requires a Java JDK or JRE and Groovy to be installed-False
Gradle - Fabricating Systems
Gradle is an imperative build tool.
false
Which task is added by wrapper plugin to the project?
wrapper
In Gradle, the Java plugin searches for Java production source code in the directory ___________....
src/main/java
The external dependencies for the build script are defined using ___________.
All
Gradle Build Init plugin is an automatically applied plugin.
true
Gradle supports multiple project templates called archetypes ________.
false
In Gradle , the java plugin searches for java test source code in the directory .......
src/test/java
In Gradle, to specify, which projects belong to the build, and which file is used? wrong
build.gradle
While building a Java project with gradle, the JAR files are created in _______ after the execution of
gradle build command.
build/libs
Which are the two types of plugins in Gradle?
script and binary
In Gradle, JAR files are published to _________.
All
Applying the Application plugin also implicitly applies the Java plugin.
true
In Gradle, the Java plug-in provides tasks to __________.
all
Gradle wrapper makes the execution of the build independent of the installed Gradle version.
true
In gradle the init task creates a Gradle project, which contains _______________.
All the options mentioned
Which of the following statement is false? wrong
Gradle is equipped with a rich command-line interface.
The build task added by the Java plugin ___________.
Performs a full build of the project.
The scala plugin applied in the Gradle can deal with ____________.
All
Gradle requires a Java JDK or JRE and Groovy to be installed.
false
The first line added in the build script to make the Android plug-in available for a Gradle build is
apply plugin: 'com.android.application'