build.gradle
1.54 KB
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
plugins {
id 'java'
id 'org.springframework.boot' version '3.1.2'
id 'io.spring.dependency-management' version '1.1.2'
}
jar.enabled = false
bootJar.enabled = false
allprojects {
repositories {
mavenCentral()
maven {
url 'https://maven.aliyun.com/nexus/content/groups/public/'
}
// dili Nexus
maven {
allowInsecureProtocol = true
// credentials
credentials {
username 'admin'
password 'for211314'
}
url = 'http://mvn2.diligrp.com/artifactory/libs-snapshot/'
}
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
version = '1.0.0'
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
ext {
set('springCloudVersion', "2022.0.4")
}
jar.archiveClassifier = ''
bootJar.enabled = false
dependencies {
implementation 'org.springframework.cloud:spring-cloud-starter'
implementation 'org.springframework.cloud:spring-cloud-starter-bootstrap'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation fileTree(dir: "$rootProject.projectDir/libs", includes: ['*jar'])
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
}