Groovy 4.0: 10 New Features That Make It AWESOME!

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • groovy-4-examples

    View on GitHub

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

  • toml

    Tom's Obvious, Minimal Language

    import groovy.toml.TomlBuilder import groovy.toml.TomlSlurper String input = ''' # This is a TOML document (taken from https://toml.io) title = "TOML Example" [owner] name = "Tom Preston-Werner" dob = 1979-05-27T07:32:00-08:00 [database] enabled = true ports = [ 8000, 8001, 8002 ] data = [ ["delta", "phi"], [3.14] ] temp_targets = { cpu = 79.5, case = 72.0 } [servers] [servers.alpha] ip = "10.0.0.1" role = "frontend" [servers.beta] ip = "10.0.0.2" role = "backend" ''' def toml = new TomlSlurper().parseText(input) assert toml.title == 'TOML Example' assert toml.owner.name == 'Tom Preston-Werner' assert toml.database.ports == [8000, 8001, 8002] assert toml.servers.alpha.ip == '10.0.0.1' assert toml.servers.beta.ip == '10.0.0.2' TomlBuilder builder = new TomlBuilder() builder { title 'This is TOML document' servers { alpha { ip '10.0.0.1' } beta { ip '10.0.0.2' } } } assert builder.toString() == '''title = 'This is TOML document' servers.alpha.ip = '10.0.0.1' servers.beta.ip = '10.0.0.2' '''

  • SDKMan

    The SDKMAN! Command Line Interface

    Get SDKMAN - https://sdkman.io/

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts