-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
58 lines (47 loc) · 1.42 KB
/
build.gradle
File metadata and controls
58 lines (47 loc) · 1.42 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
apply plugin: 'maven'
apply plugin: 'docker'
apply plugin: 'spring-boot'
apply plugin: 'docker-compose'
apply plugin: 'com.palantir.git-version'
group = 'no.kriska.samples.javadocker'
description = """Javadocker"""
sourceCompatibility = 1.8
targetCompatibility = 1.8
version = gitVersion()
buildscript {
repositories {
jcenter()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath 'se.transmode.gradle:gradle-docker:1.2'
classpath "com.avast.gradle:docker-compose-gradle-plugin:0.3.6"
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.3.5.RELEASE")
classpath 'gradle.plugin.com.palantir.gradle.gitversion:gradle-git-version:0.5.2'
}
}
group = 'krishtoffer'
task docker(type: Docker, dependsOn: build) {
dockerfile = "Dockerfile"
doFirst {
copy {
from jar
into stageDir
}
}
}
composeUp.dependsOn 'docker'
configurations {
providedRuntime
}
repositories {
maven { url "http://repo.maven.apache.org/maven2" }
}
dependencies {
compile group: 'ch.qos.logback', name: 'logback-classic'
compile group: 'org.slf4j', name: 'slf4j-api'
compile("org.springframework.boot:spring-boot-starter-web")
compile("org.thymeleaf:thymeleaf-spring4")
compile("nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect")
providedRuntime("org.springframework.boot:spring-boot-starter-tomcat")
}