Skip to content

Build with Gradle

  1. Create a new build stage (e.g. for Gradle) and execute the CLI

    tasks.register('jcloak', Exec) {
    mustRunAfter '...'
    workingDir project.rootDir
    commandLine 'bash', '-c', "docker run -v ./:/opt/jcloak/bin/files -e LICENSE=<license> jcloak/cli:latest -input ${buildDir}/libs/${project.name}.jar -output ${project.name}-final.jar -includeKey"
    }
  2. Edit the LICENSE Variable to use your license

  3. Execute the newly added stage