forked from i-net-software/SetupBuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
82 lines (70 loc) · 2.21 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
plugins {
id "com.gradle.plugin-publish" version "0.9.1"
}
apply plugin: 'java'
apply plugin: 'maven'
group = 'de.inetsoftware'
version = '1.8.0'
sourceCompatibility = 1.8
compileJava.options.encoding = 'UTF-8'
def LIB_GRADLE_VERSION = '3.1'
println 'Gradle version: ' + gradle.gradleVersion
repositories {
jcenter()
}
dependencies {
compile gradleApi()
}
sourceSets {
main {
java {
srcDirs = ['src']
}
resources {
srcDirs = ['src']
exclude '**/*.java'
exclude '**/package.html'
}
}
}
if( !System.getProperty("local") && file( '../BuildScripts/base.gradle' ).exists() ) {
apply from: '../BuildScripts/base.gradle' // for internal build system
preparePublish.dependsOn 'publishPluginJavaDocsJar'
preparePublish.dependsOn 'jar'
preparePublish.dependsOn 'publishPluginJar'
println "Uploading into internal Repository 'fileserver'"
if ( System.getProperty("snapshot") ) {
version += '-SNAPSHOT' // setting version to snapshot
}
wrapper.gradleVersion = LIB_GRADLE_VERSION
} else {
println "Uploading into local '../repo'"
version += '-SNAPSHOT' // setting version to snapshot
uploadArchives {
repositories {
mavenDeployer {
repository(url: uri('../repo'))
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = LIB_GRADLE_VERSION
}
}
pluginBundle {
website = 'https://github.com/i-net-software/SetupBuilder'
vcsUrl = 'https://github.com/i-net-software/SetupBuilder'
description = 'The Setup Builder is a plugin for Gradle which can create native setups for different platforms like Windows, Linux and OSX. The output is a *.msi, a *.deb, a *.rpm or a *.dmg file.'
tags = ['setup', 'installer', 'msi', 'dmg', 'deb', 'rpm', 'windows', 'linux', 'osx' ]
plugins {
setupBuilderPlugin {
id = 'de.inetsoftware.setupbuilder'
displayName = 'Gradle Setup Builder plugin'
}
appBunderPlugin {
id = 'de.inetsoftware.appbundler'
displayName = 'Gradle Application Bundler plugin for OSX'
tags = ['app']
}
}
}