-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
76 lines (60 loc) · 2.14 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
plugins {
id 'java'
id 'application'
id 'checkstyle'
id 'com.adarshr.test-logger' version '3.2.0'
id 'jacoco'
id 'io.ebean' version '13.6.5'
}
group 'hexlet.code'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
implementation 'io.javalin:javalin:4.3.0'
implementation 'org.slf4j:slf4j-simple:1.7.36'
implementation 'org.thymeleaf:thymeleaf:3.0.15.RELEASE'
implementation 'nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect:3.1.0'
implementation 'org.thymeleaf.extras:thymeleaf-extras-java8time:3.0.4.RELEASE'
implementation 'org.webjars:bootstrap:5.2.0'
implementation 'com.h2database:h2:2.1.210'
implementation 'org.postgresql:postgresql:42.3.3'
implementation 'io.ebean:ebean:12.15.1'
implementation 'io.ebean:ebean-ddl-generator:12.15.1'
implementation 'io.ebean:ebean-querybean:12.15.1'
implementation 'io.ebean:ebean-migration:12.15.1'
implementation 'io.ebean:ebean-annotation:7.7'
implementation 'com.konghq:unirest-java:3.13.6'
annotationProcessor 'io.ebean:querybean-generator:12.15.1'
implementation 'org.jsoup:jsoup:1.15.2'
// NOTE: ebean-ddl-generator требует старые зависимости, которых нет в java 9 и выше
implementation 'org.glassfish.jaxb:jaxb-runtime:2.3.5'
implementation 'javax.activation:activation:1.1.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.8.2'
testImplementation 'org.assertj:assertj-core:3.22.0'
testImplementation 'io.ebean:ebean-test:12.15.1'
testImplementation 'com.konghq:unirest-java:3.13.6'
testImplementation 'com.squareup.okhttp3:mockwebserver:4.10.0'
}
test {
useJUnitPlatform()
}
application {
mainClass = 'hexlet.code.App'
}
compileJava {
options.release = 17
}
jacocoTestReport {
reports {
xml.required = true
}
}
task stage(dependsOn: ['clean', 'installDist'])
installDist.mustRunAfter clean
task generateMigrations(type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
mainClass = 'hexlet.code.MigrationGenerator'
}