本文整理了Java中org.gradle.api.Task.setDescription()
方法的一些代码示例,展示了Task.setDescription()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Task.setDescription()
方法的具体详情如下:
包路径:org.gradle.api.Task
类名称:Task
方法名:setDescription
暂无
代码示例来源:origin: uber/okbuck
setupOkbuck.setDescription("Setup okbuck cache and dependencies");
代码示例来源:origin: diffplug/spotless
Task rootCheckTask = project.task(EXTENSION + CHECK);
rootCheckTask.setGroup(TASK_GROUP);
rootCheckTask.setDescription(CHECK_DESCRIPTION);
Task rootApplyTask = project.task(EXTENSION + APPLY);
rootApplyTask.setGroup(TASK_GROUP);
rootApplyTask.setDescription(APPLY_DESCRIPTION);
String filePatterns;
if (project.hasProperty(FILES_PROPERTY) && project.property(FILES_PROPERTY) instanceof String) {
代码示例来源:origin: com.amazon.device.tools.build/gradle-core
@Override
public void execute(Task uninstallAllTask) {
uninstallAllTask.setDescription("Uninstall all applications.");
uninstallAllTask.setGroup(INSTALL_GROUP);
}
});
代码示例来源:origin: org.shipkit/shipkit
public void execute(Task t) {
t.setDescription("Prepares the working copy for releasing from CI build");
t.dependsOn(UNSHALLOW_TASK, CHECKOUT_TASK, SET_USER_TASK, SET_EMAIL_TASK);
}
});
代码示例来源:origin: com.amazon.device.tools.build/gradle-core
@Override
public void execute(Task connectedCheckTask) {
connectedCheckTask.setDescription(
"Runs all device checks on currently connected devices.");
connectedCheckTask.setGroup(JavaBasePlugin.VERIFICATION_GROUP);
}
});
代码示例来源:origin: com.amazon.device.tools.build/gradle-core
@Override
public void execute(Task connectedTask) {
connectedTask.setGroup(JavaBasePlugin.VERIFICATION_GROUP);
connectedTask.setDescription(
"Installs and runs instrumentation tests for all flavors on connected devices.");
}
代码示例来源:origin: com.amazon.device.tools.build/gradle-core
@Override
public void execute(Task providerTask) {
providerTask.setGroup(JavaBasePlugin.VERIFICATION_GROUP);
providerTask.setDescription(
"Installs and runs instrumentation tests using all Device Providers.");
}
});
代码示例来源:origin: gradle.plugin.com.intershop.gradle.plugin.azure/azurePlugin
@Override
void configure(Task task)
{
super.configure(task);
task.setDescription("Azure deployment");
}
}
代码示例来源:origin: org.shipkit/shipkit
public void execute(final Task t) {
t.setDescription("Performs gitCommit, gitTag and gitPush tasks and all tasks dependent on them.");
t.dependsOn(GIT_COMMIT_TASK, GIT_TAG_TASK, GIT_PUSH_TASK);
}
});
代码示例来源:origin: gradle.plugin.org.shipkit/shipkit
public void execute(Task t) {
t.setDescription("Initializes Shipkit");
t.dependsOn(INIT_TRAVIS_TASK);
}
});
代码示例来源:origin: gradle.plugin.com.enonic.gradle/xp-gradle-plugin
private void createBuildDocTask()
{
final Task task = this.project.getTasks().create( BUILD_DOC_TASK );
task.setGroup( GROUP );
task.setDescription( "Build documentation based on Asciidoctor (alias for " + ASCIIDOCTOR_TASK + ")." );
task.dependsOn( ASCIIDOCTOR_TASK );
}
代码示例来源:origin: io.freefair.gradle/android-gradle-plugins
@Override
public void apply(Project project) {
super.apply(project);
allJavadocTask = project.getTasks().create("javadoc", ajdTasks -> {
ajdTasks.setDescription("Generate Javadoc for all variants");
ajdTasks.setGroup(JavaBasePlugin.DOCUMENTATION_GROUP);
});
}
代码示例来源:origin: gradle.plugin.com.enonic.xp/xp-gradle-plugin
private void createBuildDocTask()
{
final Task task = this.project.getTasks().create( BUILD_DOC_TASK );
task.setGroup( GROUP );
task.setDescription( "Build documentation based on Asciidoctor (alias for " + ASCIIDOCTOR_TASK + ")." );
task.dependsOn( ASCIIDOCTOR_TASK );
}
代码示例来源:origin: gradle.plugin.com.github.mazzeb/auto-version
private void configureNextMinor(Task task) {
task.setGroup("version");
task.setDescription("update version to next minor Release");
task.setActions(singletonList(this::nextMinor));
}
代码示例来源:origin: com.amazon.device.tools.build/gradle-core
@Override
public void execute(Task task) {
task.setGroup(JavaBasePlugin.VERIFICATION_GROUP);
task.setDescription(String.format(
"Creates test coverage reports for the %s variant.",
variantData.getName()));
}
}));
代码示例来源:origin: gradle.plugin.org.shipkit/shipkit
public void execute(final Task t) {
t.setDescription("Performs " + SOFT_RESET_COMMIT_TASK + " and " + GIT_STASH_TASK + " tasks.");
t.dependsOn(SOFT_RESET_COMMIT_TASK, GIT_STASH_TASK);
t.mustRunAfter(performPush);
}
});
代码示例来源:origin: gradle.plugin.org.shipkit/shipkit
public void execute(final Task t) {
t.setDescription("Cleans up the working copy, useful after dry running the release");
//using finalizedBy so that all clean up tasks run, even if one of them fails
t.finalizedBy(GitPlugin.PERFORM_GIT_COMMIT_CLEANUP_TASK);
t.finalizedBy(GitPlugin.TAG_CLEANUP_TASK);
}
});
代码示例来源:origin: gradle.plugin.org.shipkit/shipkit
public void execute(Task t) {
t.setDescription("Increments version number, commits and pushes changes to Git repository");
t.dependsOn(VersioningPlugin.BUMP_VERSION_FILE_TASK);
t.dependsOn(GitPlugin.PERFORM_GIT_PUSH_TASK);
}
});
代码示例来源:origin: gradle.plugin.org.shipkit/shipkit
public void execute(final Task t) {
t.setDescription("Performs release. " +
"Ship with: './gradlew performRelease -Pshipkit.dryRun=false'. " +
"Test with: './gradlew testRelease'");
t.dependsOn(VersioningPlugin.BUMP_VERSION_FILE_TASK, "updateReleaseNotes");
t.dependsOn(GitPlugin.PERFORM_GIT_PUSH_TASK);
}
});
代码示例来源:origin: io.freefair.gradle/android-gradle-plugins
@Override
public void apply(Project project) {
super.apply(project);
project.getPluginManager().apply(AndroidJavadocPlugin.class);
allJavadocJarTask = project.getTasks().create("javadocJar", ajdjTask -> {
ajdjTask.setDescription("Generate the javadoc jar for all variants");
ajdjTask.setGroup("jar");
});
}
内容来源于网络,如有侵权,请联系作者删除!