Package org.gradle.api.plugins.announce
Class AnnouncePluginExtension
java.lang.Object
org.gradle.api.plugins.announce.AnnouncePluginExtension
The extension used by the AnnouncePlugin.
-
Constructor Summary
ConstructorsConstructorDescriptionAnnouncePluginExtension(org.gradle.api.internal.project.ProjectInternal project) -
Method Summary
Modifier and TypeMethodDescriptionvoidSends an announcement of the given type.org.gradle.api.plugins.announce.internal.AnnouncerFactorygetLocal()Returns anAnnouncerthat sends announcements to the local desktop, if a notification mechanism is available.The password to use for announcements.The username to use for announcements.voidsetAnnouncerFactory(org.gradle.api.plugins.announce.internal.AnnouncerFactory announcerFactory) voidSets theAnnouncerthat should be used to send announcements to the local desktop.voidsetPassword(String password) voidsetUsername(String username)
-
Constructor Details
-
AnnouncePluginExtension
public AnnouncePluginExtension(org.gradle.api.internal.project.ProjectInternal project)
-
-
Method Details
-
getLocal
Returns anAnnouncerthat sends announcements to the local desktop, if a notification mechanism is available.- Returns:
- The announcer.
-
setLocal
Sets theAnnouncerthat should be used to send announcements to the local desktop. -
announce
Sends an announcement of the given type.- Parameters:
msg- The content of the announcementtype- The announcement type.
-
getUsername
The username to use for announcements. -
setUsername
-
getPassword
The password to use for announcements. -
setPassword
-
getAnnouncerFactory
public org.gradle.api.plugins.announce.internal.AnnouncerFactory getAnnouncerFactory() -
setAnnouncerFactory
public void setAnnouncerFactory(org.gradle.api.plugins.announce.internal.AnnouncerFactory announcerFactory)
-