-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
101 lines (57 loc) · 1.55 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
}
}
plugins {
id 'org.springframework.boot' version '2.1.7.RELEASE'
id 'java'
id 'java-library'
id 'maven-publish'
}
apply plugin: 'io.spring.dependency-management'
apply plugin: 'org.springframework.boot'
apply plugin: 'com.bmuschko.nexus'
group = 'spring.black'
version = '0.0.1'
sourceCompatibility = '1.8'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
jcenter()
maven {
url 'https://repo.spring.io/libs-snapshot'
}
maven {
credentials {
username System.getenv('NEXUS_USERNAME') ?: "$nexusUsername"
password System.getenv('NEXUS_PASSWORD') ?: "$nexusPassword"
}
url System.getenv('NEXUS_BASE') ?: "$nexusBase" + "/nexus/content/repositories/releases/"
}
}
bootJar {
enabled = false
}
jar {
enabled = true
}
nexus {
sign = false
repositoryUrl = System.getenv('NEXUS_BASE') ?: "$nexusBase"
snapshotRepositoryUrl = System.getenv('NEXUS_BASE') ?: "$nexusBase" + "/nexus/content/repositories/snapshots/"
}
dependencies {
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-web'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.testng:testng:7.0.0'
}