Skip to content

1.0.68

Compare
Choose a tag to compare
@github-actions github-actions released this 21 Apr 15:57

Caser

Purpose

This is a small command line utility that converts between different string formats.

caser
Usage: caser [options] String values to convert
  Options:
    /?, --help
      Show help
      Default: false
  * -i, --input-format
      Input format.
      Possible Values: [lower-hyphen, lowerCamel, UpperCamel, UPPER-HYPHEN, lower_snake, UPPER_SNAKE, lower.dotted, UPPER.DOTTED, java.Type]
  * -o, --output-format
      Output format.
      Possible Values: [lower-hyphen, lowerCamel, UpperCamel, UPPER-HYPHEN, lower_snake, UPPER_SNAKE, lower.dotted, UPPER.DOTTED, java.Type]

caser -i lower.dotted -o UPPER_SNAKE  this.is.an.example 
THIS_IS_AN_EXAMPLE

More than that, this is a study in various ways to package a Java project for distribution with maven.

The outputs of this build include:

  • A shaded JAR file that can be run with java -jar
  • Zip and TGZ assembly of a distribution suitable for any OS.
  • A Windows installer built with Nullsoft Scriptable Install System
  • A native binary build with GraalVM's native-image

Install Tools:

Mac:

curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
sdkman env
brew install makensis 

Build

Build platform agnostic:

./mvnw install

Build native image:

./mvnw -Pnative -Dagent=true install