GithubHelp home page GithubHelp logo

yueliangwen / gradle-kotlin-spring Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mrclrchtr/gradle-kotlin-spring

0.0 0.0 0.0 554 KB

Multi-Project/Module example with Gradle, Kotlin and Spring with Kotlin DSL

Home Page: https://mrclrchtr.de/gradle-5-mit-kotlin-dsl-in-multi-project-build/

License: MIT License

Kotlin 100.00%

gradle-kotlin-spring's Introduction

Gradle, Kotlin, Spring Skeleton

Run Gradle on PRs

Do you already know how to set up a Gradle multi-project / multi-module with Kotlin DSL and Spring Dependency Management?

I have set up an example here, in which I have abstracted the most important logical components and packed them into individual buildSrc modules. This makes the build very modular and also very clear. What do you think?

It has the following details:

  • Java 17
  • Gradle 8.4
    • buildSrc
    • Kotlin DSL
    • Version Catalog (libs.versions.toml)
    • Gradle Build Scan enabled in CI (Attention! Terms of Service are accepted by the environment variable BUILD_SCAN_TOS_ACCEPTED and the scan enabled by the environment variable CI)
  • Kotlin 1.9.20
  • Spring Boot 3.1.5
  • Detekt 1.23.3
  • Dokka 1.9.10
  • Spring Dependency-Management

Additionally, I added a POC how Maven Publishing could work. In another project, I got it to work like this without Spring boot on Gitlab. Unfortunately it doesn't work with the spring boot plugin in this example yet. But I think it can help others to reach their goals.

If there are any questions or suggestions for improvement, issues, discussions and PRs are welcome.

Run it!

The factory:

gradle :message-factory:bootRun

The Dashboard:

gradle :message-dashboard:bootRun

And now visit http://localhost:8080/dashboard/Mr.Bean

You can enter every name in place of "Mr.Bean".

gradle-kotlin-spring's People

Contributors

dependabot[bot] avatar mrclrchtr avatar renovate-bot avatar renovate[bot] 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.