Skip to content
This repository has been archived by the owner on Jun 18, 2020. It is now read-only.

A gradle plugin which allows for gradle builds to have Discord4J integration

License

Notifications You must be signed in to change notification settings

Discord4J-Addons/Discord4J-Gradle-Plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This library is DEFUNCT

Use Discord4J v3 instead!

This library was created for Discord4J v2 which is no longer supported or maintained.

Discord4Gradle Download

A gradle plugin which allows for gradle builds to have Discord4J integration.

Adding the plugin to your build.gradle file:

NOTE: This requires Discord4J to be added to your build.gradle as a project dependency. See here for instructions on how to do that.

apply plugin: 'discord4j' //Applies the gradle plugin

discord { //This block allows you to configure the plugin
    apiKey = "INSERT_API_KEY_HERE" //The bot token, this is used to log into a bot account when running the "modules" task
}

buildscript {
    repositories {
        maven { //This repository is required to apply the plugin
            url  "https://jitpack.io"
        }
    }
    dependencies { //This adds the plugin as a dependency in your build script
        classpath 'com.github.Discord4J-Addons:Discord4J-Gradle-Plugin:INSERT_VERSION_HERE'
    }
}

Using the plugin:

Available tasks:

Task Description
modules This packages your project and runs it as an external Discord4J module.
cleanModules This cleans all files generated by the modules task.

About

A gradle plugin which allows for gradle builds to have Discord4J integration

Resources

License

Stars

Watchers

Forks

Packages

No packages published