Repository navigation
Expand file tree
/
Copy pathbuild.gradle
More file actions
65 lines (55 loc) · 1.51 KB
/
Copy pathbuild.gradle
File metadata and controls
65 lines (55 loc) · 1.51 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
buildscript {
ext {
springBootVersion = '1.4.3.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath "se.transmode.gradle:gradle-docker:1.2"
}
}
description = "Use Spring Boot with Tapestry"
group = "info.code8"
version = "0.1.0-SNAPSHOT"
ext {
versions = [
spring: '4.3.5.RELEASE',
boot: '1.4.3.RELEASE',
tapestry: '5.4.1',
junit: '4.12'
]
}
apply plugin: 'java'
apply plugin: 'spring-boot'
jar {
baseName = 'tapestry-boot'
manifest { attributes 'Tapestry-Module-Classes': 'info.code8.tapestry.AssetSourceModule' }
}
bootRepackage {
// workaround for 'Unable to find main class'
mainClass = '...'
}
task sourceJar(type: Jar) {
dependsOn classes
classifier "sources"
from sourceSets.main.allSource
}
artifacts {
archives sourceJar
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile "org.springframework.boot:spring-boot-autoconfigure:${versions.boot}"
compile "org.springframework:spring-web:${versions.spring}"
compile "org.apache.tapestry:tapestry-core:${versions.tapestry}"
compile "javax.servlet:javax.servlet-api:3.1.0"
testCompile "junit:junit:${versions.junit}"
testCompile 'org.springframework.boot:spring-boot-starter-web'
testCompile 'org.springframework.boot:spring-boot-starter-test'
}