How to do a Maven to Gradle migration on a Java Spring Boot project

Поделиться
HTML-код
  • Опубликовано: 31 дек 2024

Комментарии • 40

  • @israellaks
    @israellaks 4 года назад +4

    thanks for sharing it! I'm sure your channel will grow a lot soon :)

  • @ManuelJordan317
    @ManuelJordan317 4 года назад

    Excellent video tutorial! ... Just how a friendly and polite suggestion, consider to create a video about a deep covering for Gradle Scans. Keep doing this excellent work!

    • @TomGregoryTech
      @TomGregoryTech  4 года назад

      Thanks Manel. Great idea. Keep the suggestions coming.

  • @ManuelJordan317
    @ManuelJordan317 4 года назад +1

    For my own track control:
    03:56 -> Maven Git Plugin (git-commit-id-plugin)
    04:06 -> The URL guides.gradle.org/creating-build-scans now redirects to scans.gradle.com/

  • @TheSega84x
    @TheSega84x 3 года назад +1

    Thanks for the great tutorial :)

  • @fkyduckwarsaw691
    @fkyduckwarsaw691 3 года назад

    Great tutorial ! thx a lot!
    I've done it! )
    It was a little bit scary,but finally it works fine!

  • @priyasrinath9997
    @priyasrinath9997 Год назад

    We are getting version conflicts and gradle downloading different versions than mavenn and hence application failing.. how do I ensure gradle downloads exactly the same dependency

  • @ManuelJordan317
    @ManuelJordan317 4 года назад +1

    Please let me know if you have a Twitter account to share with a cc your playlist. Really very valuable your set of videos.
    Huge thanks for this set of videos!
    Best Regards

  • @okeydonkey19
    @okeydonkey19 2 года назад

    Thank you for your video!! It really helped me to understand whole convert process but I wonder if I can delete maven files after finishing converting to gradle. Thank you again! 👍🏻

    • @TomGregoryTech
      @TomGregoryTech  2 года назад

      Hi Okey Donkey. Yes go ahead and delete the Maven files once you have migrated your build. They should still be in version control if you ever need to reference them.

  • @RomanRoschin
    @RomanRoschin 4 года назад +1

    Nice!

  • @dumindamadawa8965
    @dumindamadawa8965 3 года назад +1

    Thanks

  • @vikas45
    @vikas45 4 года назад

    Hi Tom, Your videos are great!!. However, when I run a maven build, it didn't produce scan for me. I placed this extension file in wrapper, tried with version 1.3.6 and also with 1.8. I am using Maven 3.6.3 and Java 1.8. What am I missing, is there something else related to gradle that needs to be put somewhere?

    • @TomGregoryTech
      @TomGregoryTech  4 года назад +1

      Hi Vikas. I tried this with Maven 3.6.3. There should be be no additional configuration required. Remember the extension file needs to go in .mvn/extensions.xml. Not in the wrapper directory.

    • @vikas45
      @vikas45 4 года назад

      @@TomGregoryTech Thanks for the reply.

  • @a1ivh
    @a1ivh 2 года назад

    I just don't understand why intellij create separate modules for main and test directories when you open a gradle project with it. Can you suggest if there is any solution so the project structure be the same in intellij?

    • @TomGregoryTech
      @TomGregoryTech  2 года назад

      Never thought about that before. Do the separate modules cause an issue for you?

    • @a1ivh
      @a1ivh 2 года назад

      @@TomGregoryTech Not an issue but because I am used to the way intellij integrate with maven project, I am expecting the same project structure. And well, I think it might be a bug in intellij.

    • @TomGregoryTech
      @TomGregoryTech  2 года назад

      @@a1ivh OK. If you think you found a bug you can always raise with JetBrains and see what they say youtrack.jetbrains.com/issues

    • @a1ivh
      @a1ivh 2 года назад

      @@TomGregoryTech no I am not saying it is a bug. I'm saying to me it feels like a bug. Because no matter which build tools you are using there is no reason IDE treat the project structure differently unless we are misconfiguring something.

  • @BrazenNL
    @BrazenNL Год назад +2

    Excellent content, but that percussive sound is hard on my ears.

  • @hrishi7521
    @hrishi7521 16 дней назад +1

    wtf was that intro song my guy ?

  • @vijayvarotariya3556
    @vijayvarotariya3556 3 года назад

    Maven plugin has been eliminated in graddle 7.0. do you have any idea about it? Can you please upload some videos regarding it?

    • @TomGregoryTech
      @TomGregoryTech  3 года назад

      Hi Vijay. Which plugin are you talking about specifically? maven-publish?

    • @vijayvarotariya3556
      @vijayvarotariya3556 3 года назад

      @@TomGregoryTech yes actually I have upgraded my studio and gradle version 7.0 and because of that i got issues in my code, after lots of research I have comes to know that I have to upgrade gradle version as well, i.e. latest version is 7.0 and api level 31 , studio version Arctic fox.

  • @djoleezcool
    @djoleezcool 2 года назад

    should we delete mvn folder after migration?

    • @TomGregoryTech
      @TomGregoryTech  2 года назад

      You mean the .mvn directory which contains the Maven wrapper? Yes, please delete this and any other Maven files once you're happy with the changes. It should all be available for refence from version control anyway.

  • @Justin-wc4vt
    @Justin-wc4vt 7 месяцев назад

    Oh my gosh why the drums

  • @sankurathrisrisaimahesh1299
    @sankurathrisrisaimahesh1299 3 года назад

    I have done project like online shopping website, but I used mavan, I will send u the github link, can u please convert into gradle project, and send me the github link... it would help me a lot.....Kindly acknowledge

    • @TomGregoryTech
      @TomGregoryTech  3 года назад

      Hi. I made this video to help others do a Maven to Gradle conversion themselves. Why not give it a go and let me know how you get on?

  • @glennluque
    @glennluque 4 года назад

    Hey excellent!, one question, how migrate maven to gradle android the next project: github.com/esig/dss
    cefdigital
    cefdigital
    ec.europa.eu/cefdigital/artifact/content/repositories/esignaturedss/
    thank you!

    • @TomGregoryTech
      @TomGregoryTech  4 года назад +1

      Hi Glenn. If I understand your question correctly, you're asking how to reference this repository from Gradle? You can declare a custom Maven repository like this in Gradle:
      repositories {
      maven {
      url "ec.europa.eu/cefdigital/artifact/content/repositories/esignaturedss"
      }
      }

    • @glennluque
      @glennluque 4 года назад

      @@TomGregoryTech thank you

  • @Titus0RA
    @Titus0RA 2 года назад

    I keep getting
    * What went wrong:
    Plugin [id: 'com.gradle.enterprise', version: '3.10.2', artifact: 'com.gradle:gradle-enterprise-gradle-plugin:3.10.2'] was not found in any of the following sources:
    but i didnt add this plugin in my build.gradle file...

    • @TomGregoryTech
      @TomGregoryTech  2 года назад

      Was this when you ran "./gradlew build --scan"? Could there be something blocking the network connection?

  • @rams_routin
    @rams_routin 3 года назад

    Hi Tom, I can't able to run compareArtifacts.sh file it is not giving me any output. I have also installed unix in my windows and tried with running - sh compareArtifacts.sh and it shows me error '--block-size=M' unrecognized. Is there anything i am missing here?

    • @TomGregoryTech
      @TomGregoryTech  3 года назад

      Hi Ramu. I just double checked the script for you and it works in Ubuntu Linux. You can always just remove "--block-size=M" from the script or compare the file sizes manually using whatever tool you're comfortable with.

  • @filimonrios5540
    @filimonrios5540 Год назад

    Hello Tom could please send me your email, i need one consulting....