-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
132 lines (103 loc) · 2.92 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
group 'dev.salascarlos.thymetextmode'
version '1.0.0'
buildscript {
repositories {
mavenCentral()
mavenLocal()
jcenter()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:2.1.4.RELEASE")
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4.4.17"
classpath "net.saliman:gradle-cobertura-plugin:2.4.0"
}
}
apply plugin: 'java'
apply plugin: "org.springframework.boot"
apply plugin: 'idea'
apply plugin: 'maven-publish'
apply plugin: "com.jfrog.artifactory"
apply plugin: "net.saliman.cobertura"
apply plugin: 'checkstyle'
apply plugin: 'findbugs'
jar {
baseName = 'thymetextmode'
version = '1.0.0'
}
idea {
module {
inheritOutputDirs = false
outputDir = file("$buildDir/classes/main/")
}
}
repositories {
maven { url "https://repo.maven.apache.org/maven2" }
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
}
//noinspection GroovyUnusedAssignment
sourceCompatibility = 1.8
//noinspection GroovyUnusedAssignment
targetCompatibility = 1.8
test {
testLogging {
showStandardStreams = true
exceptionFormat = 'full'
}
}
idea{
module {
downloadSources = true
}
}
cobertura {
coverageFormats = ["xml"]
}
checkstyle {
configFile = rootProject.file('checkstyle/checkstyle.xml')
toolVersion = '7.7'
}
findbugs {
ignoreFailures = true
}
configurations {
itestCompile.extendsFrom testCompile
itestRuntime.extendsFrom testRuntime
}
sourceSets {
itest {
compileClasspath += main.output + test.output
runtimeClasspath += main.output + test.output
java.srcDir file('src/itest/java')
}
test {
resources.srcDir file('src/itest/resources')
}
}
task itest(type: Test) {
testClassesDir = sourceSets.itest.output.classesDir
classpath = sourceSets.itest.runtimeClasspath
testLogging {
showStandardStreams = true
exceptionFormat = 'full'
}
}
configurations {
compile.exclude module: "spring-boot-starter-tomcat"
}
dependencies {
compile group: 'com.google.guava', name: 'guava', version: '21.0'
compile("org.springframework.boot:spring-boot-starter-web:2.1.4.RELEASE")
compile("org.springframework.boot:spring-boot-starter-jetty:2.1.4.RELEASE")
compile("com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.8.8")
compile "org.springframework.boot:spring-boot-starter-thymeleaf:2.1.4.RELEASE"
testCompile group: 'org.springframework.boot', name: 'spring-boot-starter-test', version: '2.1.4.RELEASE'
itestCompile group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '3.4.0'
itestCompile group: 'org.seleniumhq.selenium', name: 'selenium-htmlunit-driver', version: '2.52.0'
itestCompile group: 'org.springframework.boot', name: 'spring-boot-starter-test', version: '2.1.4.RELEASE'
}