-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
62 lines (55 loc) · 2.1 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
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java project to get you started.
* For more details take a look at the Java Quickstart chapter in the Gradle
* user guide available at https://docs.gradle.org/5.1.1/userguide/tutorial_java_projects.html
*/
plugins {
// Apply the java plugin to add support for Java
id 'java'
// Apply the application plugin to add support for building an application
id 'application'
id "org.springframework.boot" version "${springBootVersion}"
id 'io.spring.dependency-management' version '1.0.9.RELEASE'
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
dependencies {
// This dependency is found on compile classpath of this component and consumers.
implementation 'com.google.guava:guava:26.0-jre'
// Spring Framework
implementation "org.springframework:spring-context:${springVersion}"
implementation "org.springframework.boot:spring-boot-autoconfigure:${springBootVersion}"
// Database
implementation 'com.h2database:h2:1.4.200'
implementation ("org.springframework.boot:spring-boot-starter-data-jpa:${springBootVersion}"){
exclude group: "org.hibernate", module: "hibernate-core"
}
implementation("org.hibernate:hibernate-core:5.4.10.Final")
implementation "org.springframework.boot:spring-boot-starter-validation:${springBootVersion}"
// Jackson
implementation "com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}"
// Test
testImplementation('junit:junit:4.13')
testCompile "org.springframework:spring-test:${springVersion}"
testCompile "com.github.stefanbirkner:system-rules:${systemRulesVersion}"
testCompile "org.slf4j:slf4j-api:${slf4jVersion}"
testCompile "org.slf4j:slf4j-simple:${slf4jVersion}"
}
jar{
manifest{
attributes(
'Main-Class': 'com.github.zxxz_ru.App'
)
}
}
wrapper {
gradleVersion = '5.6.4'
distributionUrl = distributionUrl.replace("bin", "all")
}
// Define the main class for the application
mainClassName = 'com.github.zxxz_ru.App'