-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
48 lines (41 loc) · 1012 Bytes
/
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
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "gradle.plugin.edu.sc.seis.gradle:launch4j:2.3.0"
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: "edu.sc.seis.launch4j"
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
compile group: 'com.Akoot', name: 'Akoot-Util', version: project.property('util-version')
}
task fatJar(type: Jar) {
manifest {
attributes 'Main-Class': project.mainClassName
}
baseName = project.name
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
task deploy(type: Copy, dependsOn: 'createExe') {
from "${buildDir}/launch4j"
into "${project.deployDir}"
//include('*.exe')
}
createExe {
mainClassName = project.mainClassName
copyConfigurable = project.tasks.fatJar.outputs.files
jar = "lib/${project.tasks.fatJar.archiveName}"
//icon = "${projectDir}/assets/icons/1.ico"
outfile = "${project.exeFile}.exe"
headerType = 'console'
}