Skip to content

Instantly share code, notes, and snippets.

@minipaper
Created May 22, 2019 13:54
Show Gist options
  • Save minipaper/c6b1e65bac4133bf458d07c2911bc44f to your computer and use it in GitHub Desktop.
Save minipaper/c6b1e65bac4133bf458d07c2911bc44f to your computer and use it in GitHub Desktop.
gradle jar

gradle jar java-application

  1. gradle init gradle init --type java-application

  2. build.gradle

group 'net.minipaper.dev'
// version '1.0'
version null

// Gradle 5+
// archiveBaseName = 'jar-name'
jar {
    manifest{
        attributes ("Main-Class" : "net.minipaper.dev.App")
    }
    baseName 'jar-name'
}
  1. build graldle build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment