GithubHelp home page GithubHelp logo

sullis / micronaut-build Goto Github PK

View Code? Open in Web Editor NEW

This project forked from micronaut-projects/micronaut-build

0.0 2.0 0.0 962 KB

Common Gradle build scripts

License: Apache License 2.0

Groovy 100.00%

micronaut-build's Introduction

micronaut-build Download

Micronaut internal Gradle plugins. Not intended to be used in user's projects.

Usage

The plugins are published in Bintray:

buildscript {
    repositories {
        maven { url  "https://dl.bintray.com/micronaut/core-releases-local" }
    }
    dependencies {
        classpath "io.micronaut.build:micronaut-gradle-plugins:2.0.0.RC2"
    }
}

Then, apply the individual plugins as desired

Available plugins

  • io.micronaut.build.common.

    • Defines jcenter() as a project repository.
    • Configures the version to the projectVersion property (usually defined in gradle.properties).
    • Configures Java / Groovy compilation options.
    • Configures dependencies, enforcing the Micronaut BOM defined in micronautVersion property, as well as the version defined in groovyVersion.
    • Configures the IDEA plugin.
    • Configures Checkstyle.
    • Configures the Spotless plugin, to apply license headers.
    • Configures the test logger plugin.
  • io.micronaut.build.dependency-updates:

    • Configures the com.github.ben-manes.versions plugin to check for outdated dependencies.
  • io.micronaut.build.publishing:

    • Configures publishing to JFrog OSS, Bintray and Maven Central.
  • io.micronaut.build.docs:

    • Configures the guide publishing stuff.

Configuration options

Default values are:

micronautBuild {
    sourceCompatibility = '1.8'
    targetCompatibility = '1.8'

    checkstyleVersion = '8.33'

    dependencyUpdatesPattern = /.+(-|\.?)(b|M|RC)\d.*/
}

Also, to pin a dependency to a particular version:

micronautBuild {
    resolutionStrategy {
        force "com.rabbitmq:amqp-client:${rabbitVersion}"
    }    
}

You can use the same DSL as in Gradle.

micronaut-build's People

Contributors

alvarosanchez avatar graemerocher avatar micronaut-build avatar ilopmar avatar sdelamo avatar dependabot[bot] avatar jasontypescodes avatar

Watchers

James Cloos avatar  avatar

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.