-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
71 lines (60 loc) · 1.77 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
buildscript {
ext {
springBootVersion = '1.5.1.RELEASE'
}
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath("gradle.plugin.name.mazgalov:gradle-sass-vaadin-compiler:0.1.1")
classpath("se.transmode.gradle:gradle-docker:1.2")
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'docker'
apply plugin: 'org.springframework.boot'
apply plugin: 'name.mazgalov.vaadin.sass.compiler'
jar {
baseName = 'tempora'
version = '0.0.1-SNAPSHOT'
}
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
compileSass {
scssFile = 'src/main/resources/VAADIN/themes/tempora/styles.scss'
cssFile = 'src/main/resources/VAADIN/themes/tempora/styles.css'
}
dependencies {
compile('com.vaadin:vaadin-spring-boot-starter:1.2.0')
compile('com.vaadin:vaadin-push:7.7.5')
compile('org.eclipse.rdf4j:rdf4j-runtime:2.2')
compile('com.google.api-client:google-api-client:1.22.0')
compile('com.google.apis:google-api-services-gmail:v1-rev59-1.22.0')
compile('joda-time:joda-time:2.9.7')
runtime('ch.qos.logback:logback-classic:1.1.9')
testCompile('org.springframework.boot:spring-boot-starter-test')
}
dependencyManagement {
imports {
mavenBom "com.vaadin:vaadin-bom:7.7.5"
}
}
task buildDocker(type: Docker) {
baseImage = 'library/java:8'
tag = 'subatomic/tempora'
addFile {
from jar
rename { 'tempora.jar' }
}
entryPoint(['java', '-Djava.security.egd=file:/dev/./urandom', '-jar', '/tempora.jar'])
exposePort(8080)
}
compileJava.dependsOn(compileSass)
buildDocker.dependsOn(build)