-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
76 lines (65 loc) · 2.16 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
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.4.0.2513"
}
}
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'org.sonarqube'
apply plugin: 'application'
sourceCompatibility = 17
targetCompatibility = 17
mainClassName = 'mowers.controller.Starter'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.apache.logging.log4j:log4j-core:2.17.0'
implementation 'com.vlkan.log4j2:log4j2-logstash-layout:1.0.5'
implementation 'org.springframework.security:spring-security-config:5.7.2'
implementation 'org.springframework.security:spring-security-web:5.7.2'
implementation 'org.springframework.security:spring-security-core:5.7.2'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test:5.7.2'
testImplementation 'junit:junit:4.12'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testImplementation 'org.mockito:mockito-core:4.5.1'
testImplementation 'org.mockito:mockito-inline:2.13.0'
testImplementation ('com.github.javafaker:javafaker:1.0.2') { exclude module: 'snakeyaml' }
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}
task view_paths {
doLast { task ->
println "$task.project.name"
println "------------------"
println "Main: $sourceSets.main.java.srcDirTrees"
println " Resources: $sourceSets.main.resources.srcDirTrees"
println "Tests: $sourceSets.test.java.srcDirTrees"
println " Resources: $sourceSets.test.resources.srcDirTrees"
}
}
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath('org.springframework.boot:spring-boot-gradle-plugin:2.7.1')
}
}
bootJar {
archiveBaseName = 'mowers-controller'
archiveVersion = '0.0.1'
}