-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
35 lines (28 loc) · 875 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
//import org.gradle.api.tasks.application.CreateStartScripts
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'application'
repositories {
mavenCentral()
mavenRepo url: 'https://repository.apache.org/service/local/repositories/releases/context'
}
dependencies {
compile group: 'javax.mail', name: 'mail', version: '1.4.5'
compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.6.4'
compile group: 'commons-daemon', name: 'commons-daemon', version: '1.0.10'
}
startScripts {
applicationName = 'configGMailCleaner'
mainClassName = 'com.nihmarch.GMailSetup'
}
task copyScripts {
def scripts = file('src/main/scripts')
outputs.dir scripts
}
task runConfig(dependsOn: 'build', type: JavaExec) {
main = 'com.nihmarch.GMailSetup'
classpath = sourceSets.main.runtimeClasspath
}
applicationDistribution.from(copyScripts) {
into 'bin'
}