Gradle HipChat plugin

Gradle plugin that allows you to send to send messages to HipChat.

License

License

Categories

Categories

Gradle Build Tools
GroupId

GroupId

com.wefika.gradle
ArtifactId

ArtifactId

gradle-hipchat-plugin
Last Version

Last Version

0.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

Gradle HipChat plugin
Gradle plugin that allows you to send to send messages to HipChat.
Project URL

Project URL

https://github.com/blazsolar/gradle-hipchat-plugin
Source Code Management

Source Code Management

https://github.com/blazsolar/gradle-hipchat-plugin

Download gradle-hipchat-plugin

How to add to project

<!-- https://jarcasting.com/artifacts/com.wefika.gradle/gradle-hipchat-plugin/ -->
<dependency>
    <groupId>com.wefika.gradle</groupId>
    <artifactId>gradle-hipchat-plugin</artifactId>
    <version>0.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.wefika.gradle/gradle-hipchat-plugin/
implementation 'com.wefika.gradle:gradle-hipchat-plugin:0.1.0'
// https://jarcasting.com/artifacts/com.wefika.gradle/gradle-hipchat-plugin/
implementation ("com.wefika.gradle:gradle-hipchat-plugin:0.1.0")
'com.wefika.gradle:gradle-hipchat-plugin:jar:0.1.0'
<dependency org="com.wefika.gradle" name="gradle-hipchat-plugin" rev="0.1.0">
  <artifact name="gradle-hipchat-plugin" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.wefika.gradle', module='gradle-hipchat-plugin', version='0.1.0')
)
libraryDependencies += "com.wefika.gradle" % "gradle-hipchat-plugin" % "0.1.0"
[com.wefika.gradle/gradle-hipchat-plugin "0.1.0"]

Dependencies

compile (1)

Group / Artifact Type Version
com.github.hipchat » jHipchat jar 0.0.1-SNAPSHOT

test (2)

Group / Artifact Type Version
junit : junit jar 4.11
org.mockito : mockito-all jar 1.8.4

Project Modules

There are no modules declared in this project.

Gradle HipChat plugin

Gradle plugin that allows you to send to send messages to HipChat.

Download Build Status

Usage

Apply plugin

Gradle 2.1 and later

plugins {
    id "com.github.blazsolar.hipchat" version "<version>"
}

Gradle 2.0 or older

buildscript {
    repositories {
        jcentral()
    }
    dependencies {
        classpath 'com.github.blazsolar.gradle:gradle-hipchat-plugin:<version>'
    }
}

apply plugin: 'hipchat'

Configuration

hipchat {
    token = "<HipChat token>"
}

Add task

task messageTask(type: com.github.blazsolar.gradle.hipchat.tasks.SendMessageTask) {
    roomId = "<HipChat room id>"
    userId = "<HipChat user id>"
    message = "<Message>"
    userName = "<User name to display>"
    color = <Color of message>
}

If userName is not set task will fetch actual username from HipChat API. In this case api token has to have admin permissions.

By default color is set to yellow

License

Copyright 2014 Blaž Šolar

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Versions

Version
0.1.0