Giter Site home page Giter Site logo

waltuhxyz / kotlin-conventions Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 80 KB

Gradle convention plugins for the Kotlin projects, but separated as a standalone repo

License: MIT License

Kotlin 100.00%
gradle gradle-convention-plugins gradle-kotlin-dsl kotlin

kotlin-conventions's Introduction

Kotlin Conventions (Gradle)

Gradle isn't a hierarchy-based system like Maven. You can still use the subprojects or allprojects closures, but as the Gradle manual said, this is a bad practice. You should consider using convention plugins for sharing the build logic between the modules.

This repo reduces the boilerplate of these convention plugins by separating the basic Kotlin configuration to the standalone plugin, that can be applied in pair with Your own plugins.


Table of Contents


Features

Kotlin Conventions comes with a plenty of the basic features that You'll probably need in any project.

  • Base Kotlin plugin that configures a bunch of default plugins
    • checkstyle
    • Kotlin (JVM, latest version available)
    • Kt-Lint (Latest version available)
  • Library plugin with built-in Dokka javadoc & html support
  • Application plugins that configures the built-in application gradle plugin
    • Raw application plugin that only supports zip and tar based distributions
    • Fat JAR application plugin based on the Shadow gradle plugin that supports all-in-one JARs

Quickstart

All plugins are available on the Gradle Plugins Portal, so You do not need any additional steps other than applying the plugin to the project.

plugins {
  id("xyz.waltuh.gradle.kt-<subproject name>") version "<version>"
}

You can also use "+" as the version. Gradle will resolve this notation to the latest version of the plugin available at the moment.

Example of adding the kt-app plugin.

plugins {
  id("xyz.waltuh.gradle.kt-app") version "+"
}

There are more examples on the plugin portal site, feel free to CHECK IT OUT.

Contributing

You can contribute this project by opening PRs and issues.

Licensing

Project is licensed under the MIT license.

kotlin-conventions's People

Contributors

drupaldoesnotexists 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.