Gradle

Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 6

In gradle, JAR files are published to

Applying the Application plugin also implicitly applies the Java plugin.

Consider the following gradle build script:


task a {
doLast { println 'A'
}}
task b(dependsOn: a) {
doLast { println 'B'
}}
task c(dependsOn: a){
DoLast { println 'C'
}}

Consider the following gradle build script:


task a{
ext.myProperty = "Hello"
}
task b{
doLast {
println a.myProperty
println c.myProperty
}}
task c(dependsOn: b){
ext.myProperty = "Hey"
println "Hi"}
If the task gradle -q c is run, what is the output?

Finalizer tasks are automatically added to the task graph when the finalized task is scheduled to run.
Gradle Build Init plugin is an automatically applied plugin.
Gradle build scripts are written in _________.
Gradle build scripts use a combination of declarative and imperative statements.
Gradle dependencies are stored in builds.
Gradle is a _______ based build tool.
Gradle is an imperative build tool.
Gradle tasks can also be created and extended dynamically at runtime.
Gradle wrapper makes the execution of the build independent of the installed Gradle version.
How to check gradle version?
In android studio, what is the folder in which the build file is used to build the Android application?
In gradle a disabled task is labelled as _________.
In gradle it is useful to have a build that is more declarative as possible , since this
In gradle the init task creates a Gradle project, which contains _______________.
In gradle to specify, which projects belong to the build, and which file is used?
In Gradle, the java plugin searches for java production source code in the directory ___________.
In Jenkins, a build job performs _______.
In the android plugin for gradle, which two properties on the android configuration block are required?
Java plugin is a binary plugin.
Jobs are the unit of execution in Jenkins.
Lifecycle tasks typically have task actions.
Multiline comments in Gradle build files are included using _____ .
The external dependencies for the build script are defined using ___________.
The plugins provided by jenkins supports
The scala plugin applied in the gradle can deal with ____________.
The two build files generated by android studio are in ________________.
The war plugin enables the default JAR archive generation of the Java plugin.
The wrapper plugin can be auto-applied to the root project of the current build without modifying the build.gradle file.
To build Android project, which version of gradle is required?
To execute the hello task in the build file, type ___ on the command line.
Which are the two types of plugins in gradle?

Which method is used to attach a predicate to a skipping task?


Which of the following is a quality plugin of Gradle?
Which of the following is a quality plugin of Gradle?
Which of the following is Gradle's in-built task?
Which of the following statement is false?
Which of the following statement is true about Jenkins?
Which of the following statements are true?
Which plugin facilitates creating an executable JVM application _________.
Which plugins are configured while integrating gradle with Jenkins?
Which task is added by wrapper plugin to the project?
While building a java project with gradle, the JAR files are created in ____ after the execution of gradle build command.
ALL
1

AC

Hi hello hey

0
1
Scala Groovy or koltin
TRUE
0
JVM
0
1
0
gradle -v
gradle folder
DISABLED
Both
all
build.gradle settings.gradle
src/test/java
ALL
Build tool version and complie options
TRUE
0
0
/*ML*/
ALL
ALL
ALL
root fol of proj and app
TRUE
TRUE
1.12
Both

Script and binary

SKIP()
all
pmd
ALL
Rich command line interface
ALL
Only Maven script can be migrated to Gradle build script Only Ant script
JAVA PLUGIN
Gradle plugin and plugin of repository used
wrapper
BUILD/CLASSES
Which plugins are configured while integrating gradle with Jenkins?
In gradle, JAR files are published to
Jobs are the unit of execution in Jenkins.
Which of the following statement is true about Jenkins?
The plugins provided by jenkins supports
2
Gradle Plugin and Java plugin
ALL
0
ALL
ALL

You might also like