-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
88 lines (72 loc) · 2.46 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
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java application project to get you started.
* For more details take a look at the 'Building Java & JVM projects' chapter in the Gradle
* User Manual available at https://docs.gradle.org/7.4/userguide/building_java_projects.html
*/
plugins {
// Apply the application plugin to add support for building a CLI application in Java.
id 'org.springframework.boot' version '3.3.0'
id 'io.spring.dependency-management' version '1.1.5'
id 'java'
id 'idea'
// release plugin
id 'net.researchgate.release' version '3.0.2'
}
group = 'net.groshev'
sourceCompatibility = '17'
repositories {
// Use Maven Central for resolving dependencies.
maven { url 'https://repo.spring.io/snapshot' }
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-webflux'
implementation "com.github.javafaker:javafaker:1.0.2"
// + lombok
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
// This dependency is used by the application.
implementation 'com.google.guava:guava:33.2.1-jre'
implementation('com.fasterxml.jackson.core:jackson-databind')
implementation('org.apache.commons:commons-lang3')
// Use JUnit Jupiter for testing.
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.2'
// + spring reactive testing
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'io.projectreactor:reactor-test'
}
tasks.named('test') {
// Use JUnit Platform for unit tests.
useJUnitPlatform()
}
// release plugin configuration https://github.com/researchgate/gradle-release
// for release use 'gradle release'
release {
git {
requireBranch.set('main')
}
}
springBoot {
buildInfo()
}
ext {
set('springCloudVersion', "2021.0.5")
set('equalsVerifierVersion', '3.3')
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
mavenBom org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES
}
}
configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.module.toString() == 'org.yaml:snakeyaml') {
details.artifactSelection {
it.selectArtifact(DependencyArtifact.DEFAULT_TYPE, null, null)
}
}
}
}