-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
86 lines (68 loc) · 2.31 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
plugins {
id 'application'
id 'checkstyle'
id 'jacoco'
id 'io.ebean' version '12.11.5'
id 'com.adarshr.test-logger' version '3.0.0'
id 'com.github.ben-manes.versions' version '0.39.0'
}
group = 'hexlet.code'
version = '1.0-SNAPSHOT'
applicationDefaultJvmArgs = ["-Dfile.encoding=UTF-8"]
compileJava {
options.release = 16
}
repositories {
mavenCentral()
}
test {
useJUnitPlatform()
finalizedBy jacocoTestReport
}
jacocoTestReport {
dependsOn test
reports {
xml.enabled true
}
}
dependencies {
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.0-M1'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.8.0-M1'
testImplementation 'org.assertj:assertj-core:3.20.2'
implementation 'io.javalin:javalin:4.1.1'
implementation 'org.slf4j:slf4j-simple:1.7.32'
implementation 'org.webjars:bootstrap:5.1.1'
implementation 'org.thymeleaf:thymeleaf:3.0.12.RELEASE'
implementation 'nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect:3.0.0'
implementation 'org.thymeleaf.extras:thymeleaf-extras-java8time:3.0.4.RELEASE'
implementation 'io.ebean:ebean-querybean:12.13.0'
implementation 'io.ebean:ebean-annotation:7.3'
implementation 'com.h2database:h2:1.4.200'
implementation 'org.postgresql:postgresql:42.2.24'
implementation 'org.jsoup:jsoup:1.14.3'
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.12.4'
implementation 'io.ebean:ebean:12.11.5'
implementation 'io.ebean:ebean-ddl-generator:12.11.5'
implementation 'io.ebean:ebean-migration:12.11.2'
annotationProcessor 'io.ebean:querybean-generator:12.11.5'
implementation 'com.konghq:unirest-java:3.13.0'
implementation 'org.glassfish.jaxb:jaxb-runtime:2.3.5'
implementation 'javax.activation:activation:1.1.1'
testImplementation 'io.ebean:ebean-test:12.11.5'
testImplementation("com.squareup.okhttp3:mockwebserver:4.9.3")
}
task stage(dependsOn: ['clean', 'installDist'])
installDist.mustRunAfter clean
task generateMigrations(type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
mainClass = 'hexlet.code.MigrationGenerator'
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
checkstyle {
toolVersion '9.0'
}
application {
mainClass = 'hexlet.code.App'
}