::: Zany's Homepage ::: Zany Wiki | »çÀÌÆ® ÅëÇÕ °Ë»ö
 
 
 

[gradle] task ¸ñ·Ï È®ÀÎ.

°Ô½ÃÆÇ
JAVA
ÀÛ¼ºÀÚ
helix
ÀÛ¼ºÀÏ
2016-09-26 17:35:48
ÀÐÀº¼ö
2394
ÆòÁ¡
   
Ç¥½Ã¿É¼Ç
HTML»ç¿ë | ÀÚµ¿BRűנ| °ø¹é¹®ÀÚÇã¿ë | °¡¿îµ¥Á¤·Ä | °íÁ¤Æø±Û²Ã | ÀÚµ¿URL¸µÅ© | ¸¶¿ì½º¼±ÅÃ
°ü·Ã¸µÅ©01
http://https://discuss.gradle.org/t/how-to-print-task-graph/11509 
¡Ü lists all tasks, and the dependencies for each task.
gradle tasks --all
OR
¡Ü The new Gradle model can also list tasks created by Rules, with lots of info on them.
To use it, launch gradle model
gradle model


[zany@zany-mbp sample]$ gradle tasks --all
myValue
:tasks

------------------------------------------------------------
All tasks runnable from root project
------------------------------------------------------------

Build tasks
-----------
assemble - Assembles the outputs of this project. [jar]
build - Assembles and tests this project. [assemble, check]
buildDependents - Assembles and tests this project and all projects that depend on it. [build]
buildNeeded - Assembles and tests this project and all projects it depends on. [build]
classes - Assembles main classes.
    compileJava - Compiles main Java source.
    processResources - Processes main resources.
clean - Deletes the build directory.
jar - Assembles a jar archive containing the main classes. [classes]
testClasses - Assembles test classes. [classes]
    compileTestJava - Compiles test Java source.
    processTestResources - Processes test resources.

Build Setup tasks
-----------------
init - Initializes a new Gradle build. [incubating]
wrapper - Generates Gradle wrapper files. [incubating]

Documentation tasks
-------------------
javadoc - Generates Javadoc API documentation for the main source code. [classes]

Help tasks
----------
buildEnvironment - Displays all buildscript dependencies declared in root project 'SpringAOP'.
components - Displays the components produced by root project 'SpringAOP'. [incubating]
dependencies - Displays all dependencies declared in root project 'SpringAOP'.
dependencyInsight - Displays the insight into a specific dependency in root project 'SpringAOP'.
help - Displays a help message.
model - Displays the configuration model of root project 'SpringAOP'. [incubating]
projects - Displays the sub-projects of root project 'SpringAOP'.
properties - Displays the properties of root project 'SpringAOP'.
tasks - Displays the tasks runnable from root project 'SpringAOP'.

Verification tasks
------------------
check - Runs all checks. [test]
test - Runs the unit tests. [classes, testClasses]

Other tasks
-----------
count
hello
intro
    author
myJob
myTaskWithProperty
printMyProperty
task0
    task2
    task3
task1

Rules
-----
Pattern: clean: Cleans the output files of a task.
Pattern: build: Assembles the artifacts of a configuration.
Pattern: upload: Assembles and uploads the artifacts belonging to a configuration.

BUILD SUCCESSFUL

Total time: 1.115 secs


[zany@zany-mbp sample]$ gradle model
myValue
:model

------------------------------------------------------------
Root project
------------------------------------------------------------

+ binaries
      | Type:           org.gradle.platform.base.BinaryContainer
      | Creator:        BinaryBasePlugin.Rules#binaries(BinaryContainer)
      | Rules:
         ⤷ JavaBasePlugin.Rules#attachBridgedBinaries(BinaryContainer, JavaBasePlugin.BridgedBinaries)
    + main
          | Type:       org.gradle.api.internal.jvm.DefaultClassDirectoryBinarySpec_Decorated
          | Value:      Classes 'main'
          | Creator:    JavaBasePlugin.Rules#attachBridgedBinaries(BinaryContainer, JavaBasePlugin.BridgedBinaries) > put()
          | Rules:
             ⤷ BinaryBasePlugin.Rules#defineBuildLifecycleTask(BinarySpecInternal, ITaskFactory)
             ⤷ BinaryBasePlugin.Rules#addSourceSetsOwnedByBinariesToTheirInputs(BinarySpecInternal)
    + test
          | Type:       org.gradle.api.internal.jvm.DefaultClassDirectoryBinarySpec_Decorated
          | Value:      Classes 'test'
          | Creator:    JavaBasePlugin.Rules#attachBridgedBinaries(BinaryContainer, JavaBasePlugin.BridgedBinaries) > put()
          | Rules:
             ⤷ BinaryBasePlugin.Rules#defineBuildLifecycleTask(BinarySpecInternal, ITaskFactory)
             ⤷ BinaryBasePlugin.Rules#addSourceSetsOwnedByBinariesToTheirInputs(BinarySpecInternal)
+ components
      | Type:           org.gradle.platform.base.ComponentSpecContainer
      | Creator:        ComponentBasePlugin.PluginRules#components(ComponentSpecContainer)
+ sources
      | Type:           org.gradle.language.base.ProjectSourceSet
      | Value:          [Java source 'main:java', JVM resources 'main:resources', Java source 'test:java', JVM resources 'test:resources']
      | Creator:        LanguageBasePlugin.Rules#sources(Instantiator)
      | Rules:
         ⤷ JavaBasePlugin.Rules#attachBridgedSourceSets(ProjectSourceSet, JavaBasePlugin.BridgedBinaries)
+ tasks
      | Type:           org.gradle.model.ModelMap
      | Creator:        Project..tasks()
      | Rules:
         ⤷ BinaryBasePlugin.Rules#copyBinaryTasksToTaskContainer(TaskContainer, BinaryContainer)
    + assemble
          | Type:       org.gradle.api.DefaultTask
          | Value:      task ':assemble'
          | Creator:    tasks.addPlaceholderAction(assemble)
          | Rules:
             ⤷ copyToTaskContainer
    + author
          | Type:       org.gradle.api.DefaultTask
          | Value:      task ':author'
          | Creator:    Project..tasks.author()
          | Rules:
             ⤷ copyToTaskContainer
    + build
          | Type:       org.gradle.api.DefaultTask
          | Value:      task ':build'
          | Creator:    tasks.addPlaceholderAction(build)
          | Rules:
             ⤷ copyToTaskContainer
    + buildDependents
          | Type:       org.gradle.api.DefaultTask
          | Value:      task ':buildDependents'
          | Creator:    Project..tasks.buildDependents()
          | Rules:
             ⤷ copyToTaskContainer
    + buildEnvironment
          | Type:       org.gradle.api.tasks.diagnostics.BuildEnvironmentReportTask
          | Value:      task ':buildEnvironment'
          | Creator:    tasks.addPlaceholderAction(buildEnvironment)
          | Rules:
             ⤷ copyToTaskContainer
    + buildNeeded
          | Type:       org.gradle.api.DefaultTask
          | Value:      task ':buildNeeded'
          | Creator:    Project..tasks.buildNeeded()
          | Rules:
             ⤷ copyToTaskContainer
    + check
          | Type:       org.gradle.api.DefaultTask
          | Value:      task ':check'
          | Creator:    tasks.addPlaceholderAction(check)
          | Rules:
             ⤷ copyToTaskContainer
    + classes
          | Type:       org.gradle.api.DefaultTask
          | Value:      task ':classes'
          | Creator:    Project..tasks.classes()
          | Rules:
             ⤷ copyToTaskContainer
    + clean
          | Type:       org.gradle.api.tasks.Delete
          | Value:      task ':clean'
          | Creator:    tasks.addPlaceholderAction(clean)
          | Rules:
             ⤷ copyToTaskContainer
    + compileJava
          | Type:       org.gradle.api.tasks.compile.JavaCompile
          | Value:      task ':compileJava'
          | Creator:    Project..tasks.compileJava()
          | Rules:
             ⤷ copyToTaskContainer
    + compileTestJava
          | Type:       org.gradle.api.tasks.compile.JavaCompile
          | Value:      task ':compileTestJava'
          | Creator:    Project..tasks.compileTestJava()
          | Rules:
             ⤷ copyToTaskContainer
    + components
          | Type:       org.gradle.api.reporting.components.ComponentReport
          | Value:      task ':components'
          | Creator:    tasks.addPlaceholderAction(components)
          | Rules:
             ⤷ copyToTaskContainer
    + count
          | Type:       org.gradle.api.DefaultTask
          | Value:      task ':count'
          | Creator:    Project..tasks.count()
          | Rules:
             ⤷ copyToTaskContainer
    + dependencies
          | Type:       org.gradle.api.tasks.diagnostics.DependencyReportTask
          | Value:      task ':dependencies'
          | Creator:    tasks.addPlaceholderAction(dependencies)
          | Rules:
             ⤷ copyToTaskContainer
    + dependencyInsight
          | Type:       org.gradle.api.tasks.diagnostics.DependencyInsightReportTask
          | Value:      task ':dependencyInsight'
          | Creator:    tasks.addPlaceholderAction(dependencyInsight)
          | Rules:
             ⤷ HelpTasksPlugin.Rules#addDefaultDependenciesReportConfiguration(DependencyInsightReportTask, ServiceRegistry)
             ⤷ copyToTaskContainer
    + hello
          | Type:       org.gradle.api.DefaultTask
          | Value:      task ':hello'
          | Creator:    Project..tasks.hello()
          | Rules:
             ⤷ copyToTaskContainer
    + help
          | Type:       org.gradle.configuration.Help
          | Value:      task ':help'
          | Creator:    tasks.addPlaceholderAction(help)
          | Rules:
             ⤷ copyToTaskContainer
    + init
          | Type:       org.gradle.buildinit.tasks.InitBuild
          | Value:      task ':init'
          | Creator:    tasks.addPlaceholderAction(init)
          | Rules:
             ⤷ copyToTaskContainer
    + intro
          | Type:       org.gradle.api.DefaultTask
          | Value:      task ':intro'
          | Creator:    Project..tasks.intro()
          | Rules:
             ⤷ copyToTaskContainer
    + jar
          | Type:       org.gradle.api.tasks.bundling.Jar
          | Value:      task ':jar'
          | Creator:    Project..tasks.jar()
          | Rules:
             ⤷ copyToTaskContainer
    + javadoc
          | Type:       org.gradle.api.tasks.javadoc.Javadoc
          | Value:      task ':javadoc'
          | Creator:    Project..tasks.javadoc()
          | Rules:
             ⤷ copyToTaskContainer
    + model
          | Type:       org.gradle.api.reporting.model.ModelReport
          | Value:      task ':model'
          | Creator:    tasks.addPlaceholderAction(model)
          | Rules:
             ⤷ copyToTaskContainer
    + myJob
          | Type:       org.gradle.api.DefaultTask
          | Value:      task ':myJob'
          | Creator:    Project..tasks.myJob()
          | Rules:
             ⤷ copyToTaskContainer
    + myTaskWithProperty
          | Type:       org.gradle.api.DefaultTask
          | Value:      task ':myTaskWithProperty'
          | Creator:    Project..tasks.myTaskWithProperty()
          | Rules:
             ⤷ copyToTaskContainer
    + printMyProperty
          | Type:       org.gradle.api.DefaultTask
          | Value:      task ':printMyProperty'
          | Creator:    Project..tasks.printMyProperty()
          | Rules:
             ⤷ copyToTaskContainer
    + processResources
          | Type:       org.gradle.language.jvm.tasks.ProcessResources
          | Value:      task ':processResources'
          | Creator:    Project..tasks.processResources()
          | Rules:
             ⤷ copyToTaskContainer
    + processTestResources
          | Type:       org.gradle.language.jvm.tasks.ProcessResources
          | Value:      task ':processTestResources'
          | Creator:    Project..tasks.processTestResources()
          | Rules:
             ⤷ copyToTaskContainer
    + projects
          | Type:       org.gradle.api.tasks.diagnostics.ProjectReportTask
          | Value:      task ':projects'
          | Creator:    tasks.addPlaceholderAction(projects)
          | Rules:
             ⤷ copyToTaskContainer
    + properties
          | Type:       org.gradle.api.tasks.diagnostics.PropertyReportTask
          | Value:      task ':properties'
          | Creator:    tasks.addPlaceholderAction(properties)
          | Rules:
             ⤷ copyToTaskContainer
    + task0
          | Type:       org.gradle.api.DefaultTask
          | Value:      task ':task0'
          | Creator:    Project..tasks.task0()
          | Rules:
             ⤷ copyToTaskContainer
    + task1
          | Type:       org.gradle.api.DefaultTask
          | Value:      task ':task1'
          | Creator:    Project..tasks.task1()
          | Rules:
             ⤷ copyToTaskContainer
    + task2
          | Type:       org.gradle.api.DefaultTask
          | Value:      task ':task2'
          | Creator:    Project..tasks.task2()
          | Rules:
             ⤷ copyToTaskContainer
    + task3
          | Type:       org.gradle.api.DefaultTask
          | Value:      task ':task3'
          | Creator:    Project..tasks.task3()
          | Rules:
             ⤷ copyToTaskContainer
    + tasks
          | Type:       org.gradle.api.tasks.diagnostics.TaskReportTask
          | Value:      task ':tasks'
          | Creator:    tasks.addPlaceholderAction(tasks)
          | Rules:
             ⤷ copyToTaskContainer
    + test
          | Type:       org.gradle.api.tasks.testing.Test
          | Value:      task ':test'
          | Creator:    Project..tasks.test()
          | Rules:
             ⤷ copyToTaskContainer
    + testClasses
          | Type:       org.gradle.api.DefaultTask
          | Value:      task ':testClasses'
          | Creator:    Project..tasks.testClasses()
          | Rules:
             ⤷ copyToTaskContainer
    + wrapper
          | Type:       org.gradle.api.tasks.wrapper.Wrapper
          | Value:      task ':wrapper'
          | Creator:    tasks.addPlaceholderAction(wrapper)
          | Rules:
             ⤷ copyToTaskContainer

BUILD SUCCESSFUL

Total time: 0.887 secs


 °Ô½ÃÆÇ ±Û ¸ñ·Ï
No Subject Poster Hits Posted
13738 helix 4697 2016-09-29 16:32:23
13734 helix 1901 2016-09-28 09:50:03
13733 helix 2114 2016-09-27 17:24:48
13730 helix 1010 2016-09-27 11:13:00
13729 helix 8028 2016-09-27 10:12:57
helix 2394 2016-09-26 17:35:48
13573 helix 8818 2016-07-28 09:49:13
13553 helix 3543 2016-07-25 10:20:44
13379 helix 1715 2016-05-19 10:03:11
13368 helix 7077 2016-05-16 10:59:59
13157 helix 2428 2016-01-19 18:39:12
ÄÚ¸àÆ®
ÀÛ¼ºÀÚ
                       
 
zany.kr
  Copyright ¨Ï 2002-2010 Zany's Programming Lab. All Rights Not Reserved.
temporary This Page loads on 0.000 Secs