-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
69 lines (58 loc) · 1.69 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
plugins {
id 'java'
id 'org.springframework.boot' version '3.1.4' apply false
id 'io.spring.dependency-management' version '1.1.3'
id 'maven-publish'
}
ext.versions = [
springBootVersion : '3.1.4',
springDependencyManagemnetVersion: '1.1.3',
lombok : '1.18.26',
appVersion : '0.0.1',
group : 'com.myreflectionthoughts'
]
jar {
enabled = true
}
java {
sourceCompatibility = '17'
}
group = "${versions.group}"
version = "${versions.appVersion}"
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-webflux'
implementation "org.projectlombok:lombok:${versions.lombok}"
compileOnly('org.projectlombok:lombok')
annotationProcessor('org.projectlombok:lombok')
testCompileOnly('org.projectlombok:lombok')
testAnnotationProcessor('org.projectlombok:lombok')
}
dependencyManagement {
imports {
mavenBom org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES
}
}
// to publish the artifact to the nexus-server
publishing {
publications {
maven(MavenPublication) {
group "${versions.group}"
artifact("build/libs/library-pet-${versions.appVersion}.jar")
}
}
repositories {
maven {
// to fetch the properties from the gradle.properties file
name property('nexusRepoIdentifier')
url property('nexusURL')
allowInsecureProtocol true
credentials {
username property('nexusUsername')
password property('nexusPassword')
}
}
}
}