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
ConstructorDescriptionAnnouncePluginExtension
(org.gradle.api.internal.project.ProjectInternal project) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Sends an announcement of the given type.org.gradle.api.plugins.announce.internal.AnnouncerFactory
getLocal()
Returns anAnnouncer
that sends announcements to the local desktop, if a notification mechanism is available.The password to use for announcements.The username to use for announcements.void
setAnnouncerFactory
(org.gradle.api.plugins.announce.internal.AnnouncerFactory announcerFactory) void
Sets theAnnouncer
that should be used to send announcements to the local desktop.void
setPassword
(String password) void
setUsername
(String username)
-
Constructor Details
-
AnnouncePluginExtension
public AnnouncePluginExtension(org.gradle.api.internal.project.ProjectInternal project)
-
-
Method Details
-
getLocal
Returns anAnnouncer
that sends announcements to the local desktop, if a notification mechanism is available.- Returns:
- The announcer.
-
setLocal
Sets theAnnouncer
that 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)
-