Groovy Tutorial | Working with YAML in Groovy 3

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

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

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

    The content of your video is great, and the editing is fantastic, fun the detail of the end. thanks again for sharing

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

      Thanks! I'm happy to hear someone watches videos to the very end :-D

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

    Enjoy coffee!

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

      Thank you Sergey! That was very kind :) Take care and have a good day!

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

    Hej, świetna robota!

  • @workout4478
    @workout4478 2 года назад +1

    Hi I am working with a yaml file with readyaml and writeyaml functions.
    Problem the existing white spaces are removed from yaml when i commit the changed the yaml.
    How to include existing white spaces for readyaml and writeyaml. Please help?

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

      I don't know how to help you, I have no experience with the problem you described. Good luck, and have a good day!

  • @charank7852
    @charank7852 2 года назад +1

    Hi Szymon Stepniak,
    Thanks for sharing knowledge and explanation. I am following your groovy videos.
    I have one question that when i type "new YamlSlurper" in inteliJ , its not showing auto complete for YamlSlurper. And i did write same script you wrote in this video and its failing when executing.
    Do i need to install anything else to make YamlSlurper availble ?
    Below are the versions i am using.
    Groovy Version: 3.0.11 JVM: 11.0.17 Vendor: Oracle Corporation OS: Windows 10
    Please help me even i did some google search i couldnot find the solution for this.

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

      I'm guessing you are missing groovy-yaml dependency - mvnrepository.com/artifact/org.codehaus.groovy/groovy-yaml/3.0.11 Make sure you have it on your classpath and it should help. Take care, and have a good day!

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

      @@szymonstepniak Thanks. I will check that. Take care, and have a good day!

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

    What is the IDE you are using that autocomplete groovy Syntex?

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

      Hi! It's an IntelliJ IDEA (www.jetbrains.com/idea/). The community edition (a free to use one) has built-in syntax support for Groovy.

  • @WeeNiallism
    @WeeNiallism 4 года назад +3

    Please show YAML reading and writing from file & not arbitrary text.

    • @szymonstepniak
      @szymonstepniak  4 года назад +2

      Thanks for your comment, Niall. Have a good day!

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

      Sorry - in retrospect this reads very hostile. :) The info is good, I was just having trouble getting it to parse from a file in a simple way.

    • @szymonstepniak
      @szymonstepniak  4 года назад +2

      @@WeeNiallism I didn't feel offended, no worries. MrHaki documented how to parse YAML from a file using YamlSlurper.parse() method - blog.mrhaki.com/2020/02/groovy-goodness-parse-yaml-with.html Alternatively, you can always read a file and pass its content to the YamlSlurper.parseText(). Both options are correct. I should mention it in the video, my bad. Cheers!

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

      @@szymonstepniak Thank you sir! Subscribing.

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

      @@WeeNiallism Thank Niall! I hope you will have a good time here. PS: call me Simon :-)