https://www.tutorialspoint.com/gradle/gradle_running_a_build.htm
apply plugin: GreetingPlugin
greeting {
message = 'Hi'
greeter = 'Gradle'
}
class GreetingPlugin implements Plugin<Project> {
void apply(Project project) {
project.extensions.create("greeting", GreetingPluginExtension)
project.task('hello') << {
println "${project.greeting.message} from ${project.greeting.greeter}"
}
}
}
class GreetingPluginExtension {
String message
String greeter
}
1 | gradle –q help –task <task name> | Provides the usage information (such as path, type, description, group) about a specific task or multiple tasks. |
2 | gradle –q dependencies | Provides a list of dependencies of the selected project. |
3 | gradle -q api:dependencies --configuration <task name> | Provides the list of limited dependencies respective to configuration. |
4 | gradle –q buildEnvironment | Provides the list of build script dependencies. |
5 | gradle –q dependencyInsight | Provides an insight into a particular dependency. |
6 | Gradle –q properties | Provides the list of properties of the selected project. |
'모바일 > Android' 카테고리의 다른 글
gradle을 이용한 커스텀 플러그인 만들기 이해 (0) | 2017.01.19 |
---|---|
에러일지 - java.lang.NoSuchMethodError: android.support.v4.view.ViewCompat.setOnApplyWindowInsetsListener(Landroid/view/View;Landroid/support/v4/view/OnApplyWindowInsetsListener;)V (0) | 2017.01.17 |
안드로이드 ExpandableListView 사용시 주의할점. (0) | 2017.01.13 |
Groovy를 이용한 안드로이드 플러그인 개발. (0) | 2017.01.11 |
InfalteException (0) | 2017.01.04 |