-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
115 lines (96 loc) · 3.2 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
plugins {
id 'java'
id 'application'
id 'org.springframework.boot' version '3.1.1'
id 'io.spring.dependency-management' version '1.1.0'
id 'jacoco'
}
apply plugin: 'war'
apply plugin: 'io.spring.dependency-management'
group 'ru.pyrinoff'
version '1.0-SNAPSHOT'
description 'Telegram Vacancy Parser'
ext {
hibernateVersion = '6.2.5.Final'
junitVersion = '5.8.2'
theMainClass = 'ru.pyrinoff.chatjobparser.Main'
}
jacoco {
toolVersion = "0.8.8"
}
repositories {
mavenCentral()
}
sourceCompatibility = '17'
targetCompatibility = '17'
compileJava.options.encoding = "UTF-8"
compileTestJava.options.encoding = "UTF-8"
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
application { mainClassName = theMainClass }
jar {
archiveFileName = "chatjobparser.jar"
manifest {
attributes(
'Main-Class': theMainClass
)
}
/*from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
with jar*/
}
/*bootJar {
archiveFileName = "chatjobparser.jar"
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
with jar
}*/
/*processResources {
from('src/main/webapp') {
into('')
}
}*/
dependencies {
implementation 'org.jetbrains:annotations:23.0.0'
implementation 'org.projectlombok:lombok:1.18.26'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.apache.tomcat.embed:tomcat-embed-jasper'
implementation 'jakarta.servlet.jsp.jstl:jakarta.servlet.jsp.jstl-api:3.0.0'
implementation 'org.glassfish.web:jakarta.servlet.jsp.jstl:3.0.1'
// implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-aop'
implementation "org.hibernate:hibernate-core:${hibernateVersion}"
implementation "org.hibernate:hibernate-c3p0:${hibernateVersion}"
implementation 'com.fasterxml.jackson.core:jackson-databind:2.14.0'
implementation 'org.postgresql:postgresql:42.5.0'
implementation 'commons-fileupload:commons-fileupload:1.4'
annotationProcessor 'org.projectlombok:lombok:1.18.26'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.6.0'
implementation 'io.swagger.core.v3:swagger-annotations:2.2.22'
implementation 'io.swagger.core.v3:swagger-annotations-jakarta:2.2.22'
//TEST
testImplementation "org.junit.jupiter:junit-jupiter-api:${junitVersion}"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${junitVersion}"
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.hsqldb:hsqldb:2.4.1'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.26'
}
test {
useJUnitPlatform()
systemProperties(System.getProperties())
}
tasks.withType(Test) {
systemProperties(System.getProperties())
useJUnitPlatform()
}
/*task testByTag (type: Test) {
useJUnitPlatform() {
includeTags("SomeTag")
}
systemProperties(System.getProperties())
}*/