-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
executable file
·67 lines (53 loc) · 1.76 KB
/
Copy pathbuild.gradle
File metadata and controls
executable file
·67 lines (53 loc) · 1.76 KB
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
apply plugin: 'java'
apply plugin: 'application'
archivesBaseName = "Dictionary-java"
applicationName = "Dictionary-java"
version = '1.0'
mainClassName = "App"
buildscript {
repositories {
mavenCentral()
maven {
url "http://dl.bintray.com/vermeulen-mp/gradle-plugins"
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'com.wiredforcode:gradle-heroku-plugin:1.0.0'
classpath "pl.allegro.tech.build:newrelic-gradle-plugin:0.1.1"
classpath "org.springframework.boot:spring-boot-gradle-plugin:1.2.6.RELEASE"
}
}
repositories {
mavenCentral()
}
dependencies {
compile group: 'com.sparkjava', name: 'spark-core', version: '2.1'
compile group: 'org.apache.velocity', name: 'velocity', version: '1.7'
testCompile group: 'junit', name: 'junit', version: '4.+'
testCompile group: 'org.fluentlenium', name: 'fluentlenium-core', version: '0.10.3'
testCompile group: 'org.fluentlenium', name: 'fluentlenium-assertj', version: '0.10.3'
}
apply plugin: 'spring-boot'
springBoot {
mainClass = 'com.sample.Application'
agent = file('opt/newrelic/newrelic.jar')
}
apply plugin: 'heroku'
heroku {
//get this from heroku
apiKey = '48b4d248-b4ed-4e1c-a2a8-6ceeed2745cb'
//set this on first run if you don't want a generated name
appName = 'dictionary-java'
}
defaultTasks = ['clean']
task stage(dependsOn: ['clean', 'installApp'])
apply plugin: "pl.allegro.tech.build.newrelic-gradle-plugin"
newrelic {
licenseKey '#e9a74965a6bf5bd7a4ade3c39098bbd646e6b5da' //required - newrelic account key
version '3.14.0' //optional - default '3.14.0'
name 'dictionary-java' // optional - module name by default
}
task wrapper(type: Wrapper) {
gradleVersion = '2.3'
}