Giter Site home page Giter Site logo

hbmartin / gradle-plugin-caffeinate Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 60 KB

A Gradle plugin to keep your computer awake while running gradle tasks

License: MIT License

Kotlin 100.00%
gradle gradle-bu gradle-plugin kotlin kotlin-gradle mac-tools

gradle-plugin-caffeinate's Introduction

Caffeinate gradle plugin โ˜•๏ธ๐Ÿ˜

Gradle Plugin Portal Pre Merge Checks CodeFactor Maintainability Rating

How to Use ๐ŸŽ‰

Install

  • Apply plugin to root project. Ensure you have gradlePluginPortal() in your repositories block.
  • Your project must be built with a minimum of Java 1.9
  • Be sure to activate the plugin as described below.
  • Choose 1 of the 3 options (apply to root project):

Version catalog:

[versions]
caffeinate = "0.0.2"
[plugins]
caffeinate = { id = "me.haroldmartin.gradle.caffeinate", version.ref = "caffeinate" }
plugins {
    alias(libs.plugins.caffeinate)
}

Kotlin:

plugins {
  id("me.haroldmartin.gradle.caffeinate") version "0.0.2"
}

Groovy:

plugins {
  id "me.haroldmartin.gradle.caffeinate" version "0.0.2"
}

Activate

Either set environment variable export ORG_GRADLE_PROJECT_caffeinate="true" or run gradle with the argument -Pcaffeinate=true

Development Environment ๐Ÿ› 

  • Based on kotlin-gradle-plugin-template
  • 100% Kotlin including Gradle DSL.
  • Plugin build setup with Gradle composite build.
  • Dependency versions managed via Gradle Versions Catalog (libs.versions.toml).
  • CI Setup with GitHub Actions.
  • Kotlin Static Analysis via ktlint and detekt.
  • This is using GitHub action to build, test and publish the plugin.
  • preMerge task to run all the checks before pushing.

Contributing ๐Ÿค

License ๐Ÿ“„

This template is licensed under the MIT License - see the License file for details.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.