-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
74 lines (67 loc) · 2.26 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
buildscript {
ext {
kotlin_version = '1.1.4'
tornadofx_version = '1.7.10'
spring_boot_version = '1.5.4.RELEASE'
sqlite_version = '3.20.0'
fxlauncher_version = '1.0.16'
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven { url 'https://jitpack.io' }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-allopen:$kotlin_version"
classpath "org.springframework.boot:spring-boot-gradle-plugin:$spring_boot_version"
classpath "no.tornado:fxlauncher-gradle-plugin:$fxlauncher_version"
}
}
apply plugin: "kotlin"
apply plugin: 'application'
apply plugin: 'kotlin-spring'
apply plugin: 'org.springframework.boot'
apply plugin: 'no.tornado.fxlauncher'
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven { url 'https://jitpack.io' }
}
dependencies {
/* KOTLIN DEPENDENCIES */
compile "no.tornado:tornadofx:$tornadofx_version"
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
/* SPRING BOOT DEPENDENCIES */
compile "org.springframework.boot:spring-boot-starter:$spring_boot_version"
compile "org.springframework.boot:spring-boot-starter-data-jpa:$spring_boot_version"
compile "com.h2database:h2"
/* TEST DEPENDENCIES */
testCompile 'junit:junit:4.12'
}
appDeployTarget = ""
fxlauncher {
applicationVendor 'The Company'
applicationUrl 'file:///c:/Users/Brian/workspace/kt/springboot-tornadofx/build/fxlauncher'
applicationMainClass 'com.github.bkenn.MyApp'
acceptDowngrade false
deployTarget 'Brian@192.168.1.171:21'
task deployS3(type: Exec) {
// You need to have installed AWS command line interface: https://aws.amazon.com/cli/
commandLine 'aws', 'configure', 'set', 'aws_access_key_id', 'your_access_key_id'
commandLine 'aws', 'configure', 'set', 'aws_secret_access_key', 'your_secret_access_key'
commandLine 'aws', 's3', 'cp', 'build/libs', appDeployTarget, '--acl', 'public-read', '--recursive', '--region', 'us-west-1'
}
}