Git Product home page Git Product logo

Comments (4)

tinesoft avatar tinesoft commented on May 18, 2024 2

Hi @khalilou88

Thanks for your link. But I think I've come across a more robust/complete alternative: https://github.com/diffplug/spotless !

  • It support Java, Kotlin, Groovy languages out-of-the-box
  • It has maven AND gradle plugins

So all requirements of a Spring Boot project are met at this point!
Plus,

  • It is highly customizable
  • It is actively maintained and has a large community
  • and much more

So , I will start integrate it soon. Stay tuned ;-)

from nxrocks.

tinesoft avatar tinesoft commented on May 18, 2024 1

Hi guys,

Quick follow up, to let you know that formatting of your spring-boot projects has just landed in latest release of nx-spring-boot https://github.com/tinesoft/nxrocks/releases/tag/nx-spring-boot%2Fv4.0.0 🎉 (well v4.0.2 to be exact)

The feature is implemented with Spotless (as described above) and works for Gradle/Maven Java/Kotlin/Groovy based projects.

Enjoy and let me know if you have issues with it !

Cheers

from nxrocks.

tinesoft avatar tinesoft commented on May 18, 2024

Hi @Kwandes!

Thank you for the idea 💡. This is interesting, even if I believe the interest is limited,
given that most IDE's have this integrated already and activated upon file save automatically.

However, I agree it could fit well with the nx format commands spirit.

The problem is there is no "default" or "standard" formatter (that I'm aware of) for JVM-based project...

I've found this https://github.com/spring-io/spring-javaformat that might do the job for Java Spring Boot projects, but unfortunatelyy I see no support for 'KotlinnorGroovy`(spring-io/spring-javaformat#149), which is a bummer...

If you have another tool in mind, I'm open to suggestions.

If implemented, this feature would probably be controlled by option at generation to opt-in to the formatting.

from nxrocks.

khalilou88 avatar khalilou88 commented on May 18, 2024

Hello, there is this solution too https://github.com/jhipster/prettier-java

from nxrocks.

Related Issues (20)

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.