RepositoryJavaDEGermany
i-net-software

i-net-software/SetupBuilder

Gradle plugin for building setups for different platforms.

93stars
20forks
13issues
1views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: setup-builder

#1 Repository of the month

1
TINIX TRENDING·Topic: deb

#1 Repository of the month

1
TINIX TRENDING·Topic: dmg

#1 Repository of the month

Gradle Setup Builder Plugin

Build Status License

The Setup Builder is a plugin for Gradle which can create a native setups for different platforms like Windows, Linux and OSX. The output is a *.msi, a *.deb, a *.rpm or a *.dmg file. The target is an installer for Java applications.

Note: This plugin is now published to Maven Central. Snapshot versions are available from Sonatype snapshots repository. See Using Snapshots section below.

Using Snapshots

Snapshot versions are published to Sonatype snapshots repository. To use snapshots in your project, add the snapshot repository to your build:

buildscript {
    repositories {
        maven {
            url uri('https://oss.sonatype.org/content/repositories/snapshots/')
        }
        mavenCentral()
    }
    dependencies {
        classpath 'de.inetsoftware:SetupBuilder:8.4.24-SNAPSHOT'
    }
}

Alternatively, for local development, you can publish to your local Maven repository:

./gradlew publishToMavenLocal

Then use mavenLocal() in your repositories:

repositories {
    mavenLocal()
    mavenCentral()
}

System Requirements

PlatformRequirement
allJava 8 or higher. Gradle must run with Java 8
WindowsWix Toolset or WixEdit must be installed
LinuxLintian, FakeRoot
on Ubuntu: apt-get install lintian fakeroot
Linuxdpkg for creating Debian packages: apt-get install dpkg
Linuxrpm for creating RPM packages: apt-get install rpm
MacOShdiutil, only available on Mac

Plugin and Gradle Version

Plugin VersionGradle Version
<= 1.52.3 - 2.11
1.62.12 - 2.13
1.72.14
1.8, 3.0.x3.0
3.1.x3.1 - 3.3
3.4.x3.4 - 4.3
4.5.x4.5 - 4.7
4.8.x4.8 - 7.1
7.2.x7.2 - 8.3
8.4.x>= 8.4

There is a file SetupBuilderVersion.gradle to export the required version of SetupBuilder depending on the Gradle version. It can be used to automatically obtain the correct SetupBuilder version.

It can be used as followed:

Using Gradle Plugin Portal (recommended):

plugins {
    id 'de.inetsoftware.setupbuilder' version '8.4.23'
}

Using buildscript (legacy):

buildscript {
    repositories {
        mavenCentral()
        // For snapshots, add Sonatype snapshot repository
        maven {
            url uri('https://oss.sonatype.org/content/repositories/snapshots/')
        }
    }
    dependencies {
        apply from: 'https://raw.githubusercontent.com/i-net-software/SetupBuilder/master/scripts/SetupBuilderVersion.gradle'
        classpath 'de.inetsoftware:SetupBuilder:' + setupBuilderVersion()
    }
}
apply plugin: 'de.inetsoftware.setupbuilder'

Tasks

The plugin adds the following tasks:

  • msi
  • deb
  • rpm
  • dmg

For more information check the wiki.

Sample Usage

Base Sample

Using plugins block (recommended):

plugins {
    id 'de.inetsoftware.setupbuilder' version '8.4.23'
}

Or using buildscript:

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'de.inetsoftware:SetupBuilder:8.4.23'
    }
}
apply plugin: 'de.inetsoftware.setupbuilder'
setupBuilder {
    vendor = 'i-net software'
    application = "SetupBuilder Plugin"
    appIdentifier = "SetupBuilder"
    version = '1.0'
    licenseFile = 'license.txt'
    // icons in different sizes for different usage. you can also use a single *.ico or *.icns file
    icons = ['icon16.png', 'icon32.png', 'icon48.png', 'icon128.png']
    // all files for all platforms
    from( 'source' ) {
        include 'files/*.jar'
    }
    bundleJre = 1.8
}

msi {
    // files only for the Windows platform
    from( 'windows' ) {
        include 'foo.exe'
        rename { 'bar.exe' }
    }
}

More samples can be found in the testBuilds folder of the project.

More properties can be found in the sources of setupBuilder, msi, deb, rpm and dmg.

Zip Sample

Create a zip file with the same files define in setupBuilder extension.

...
setupBuilder {
    ...
}
task zip(type: Zip) {
    with setupBuilder
    doLast {
        artifacts {
            archives zip
        }
    }
}

Development

For local development, you can build and publish to your local Maven repository:

./gradlew publishToMavenLocal

Then use mavenLocal() in your repositories. See Using Snapshots section above.

Version History

See CHANGELOG.md for detailed version history and release notes.

License

Apache License, Version 2.0

Similar Projects

Discover other similar projects and AI models.

RepositoryRust
crabnebula-dev/cargo-packager

Rust executable packager, bundler and updater.

516
Dec 2, 2026
RepositoryJava
GoogleContainerTools/jib

🏗 Build container images for your Java applications.

14.5k
Nov 21, 2026
RepositoryJava
bytedance/ByteX

ByteX is a bytecode plugin platform based on Android Gradle Transform API and ASM. 字节码插件开发平台

3.2k
Jan 20, 2024
RepositoryJava
REBOOTERS/AndroidAnimationExercise

Android 动画各种实现,包括帧动画、补间动画和属性动画的总结分享

2.1k
Sep 10, 2026
RepositoryTypeScript
electron-userland/electron-builder

A complete solution to package and build a ready for distribution Electron app with “auto update” support out of the box

14.7k
Dec 2, 2026
RepositoryKotlin
GradleUp/shadow

Gradle plugin for creating fat/uber JARs, transforming files, relocating packages, and optimizing with R8/ProGuard. The Gradle counterpart to Maven Shade Plugin.

4.2k
Nov 28, 2026
RepositoryGo
goreleaser/nfpm

nFPM is Not FPM - a simple deb, rpm, apk, ipk, and arch linux packager written in Go

2.7k
Nov 25, 2026
RepositoryKotlin
vanniktech/gradle-maven-publish-plugin

A Gradle plugin that publishes your Android and Kotlin libraries, including sources and javadoc, to Maven Central or any other Nexus instance.

1.8k
Nov 30, 2026
RepositoryKotlin
JLLeitschuh/ktlint-gradle

A ktlint gradle plugin

1.7k
Nov 29, 2026