-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
57 lines (45 loc) · 1.39 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
buildscript {
repositories {
maven { url 'http://dl.bintray.com/msgilligan/maven' }
maven { url 'http://jcenter.bintray.com' }
mavenCentral()
// maven { url "http://repo.spring.io/libs-snapshot" }
// mavenLocal()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:0.5.0.M6")
classpath 'org.gradle.api.plugins:gradle-cloudbees-plugin:0.1.1'
}
}
apply plugin: 'war'
apply plugin: 'spring-boot'
apply plugin: 'cloudbees'
archivesBaseName = 'iuiseed'
version = '0.1.0'
repositories {
mavenCentral()
maven {
url 'http://repo.spring.io/milestone'
}
}
dependencies {
compile "org.springframework.boot:spring-boot-starter-web:0.5.0.M6"
}
springBoot {
mainClass = "org.iuijs.config.Application"
backupSource = true
}
def springBootWarLauncherClassName = "org.springframework.boot.loader.WarLauncher"
// Make the deploy target easier to find/type
task deploy(dependsOn: cloudBeesAppDeployArchive)
cloudBees {
apiKey = "" // cloudbeesApiKey
apiSecret = "" // cloudbeesApiSecret
appId = 'iui/iui-seed-spring'
archiveType = 'jar'
archiveFile = war.archivePath
deltaDeploy = true
parameters = [containerType: "java", 'runtime.class': springBootWarLauncherClassName]
}
cloudBeesAppDeployArchive.dependsOn assemble
cloudBeesAppDeployArchive.message = project.version