代码拉取完成,页面将自动刷新
plugins {
id 'java-library'
id 'com.google.protobuf' version "0.8.10"
id 'org.springframework.boot' version '2.3.3.RELEASE'
id 'io.spring.dependency-management' version '1.0.9.RELEASE'
}
repositories {
mavenLocal()
maven { url "https://maven.aliyun.com/repository/public" }
mavenCentral()
jcenter()
maven { url 'http://repo.spring.io/plugins-release' }
maven { url "https://plugins.gradle.org/m2/" }
}
subprojects {
ext {
set('springBootVersion', "2.3.3.RELEASE")
set('springCloudAlibabaVersion', "2.2.1.RELEASE")
set('springCloudVersion', "Hoxton.SR2")
set('lombokVersion', "1.18.12")
set('dsm-common-dm-mybatis.version', "1.0.0")
protobufVersion = '3.10.0'
protobufPluginVersion = '0.8.18'
grpcVersion = '1.25.0'
grpcSpringbootStarterVersion = '2.13.1.RELEASE'
}
apply plugin: 'java-library'
apply plugin: 'idea'
apply plugin: 'maven'
apply plugin: 'io.spring.dependency-management'
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
// java编译的时候缺省状态下会因为中文字符而失败
[compileJava, compileTestJava, javadoc]*.options*.encoding = 'UTF-8'
repositories {
maven{
url "http://nexus.jkservice.org/repository/jk-common/"
authentication {
basic(BasicAuthentication)
}
credentials {
username = 'zhangyajun'
password = 'JKSTACKPBzyj@1'
}
}
maven{
url "http://nexus.jkservice.org/repository/jkstack-dsm/"
authentication {
basic(BasicAuthentication)
}
credentials {
username = 'zhangyajun'
password = 'JKSTACKPBzyj@1'
}
}
maven{
url "http://nexus.jkservice.org/repository/jkstack-dpa/"
authentication {
basic(BasicAuthentication)
}
credentials {
username = 'zhangyajun'
password = 'JKSTACKPBzyj@1'
}
}
/*maven{
url "http://192.168.1.181/repository/maven-releases/"
authentication {
basic(BasicAuthentication)
}
credentials {
username = 'jkpublic'
password = 'JKpublic@1'
}
}*/
mavenLocal()
maven { url "https://maven.aliyun.com/repository/public" }
}
configurations {
// 排除 tomcat 依赖(使用 undertow)
implementation.exclude group: 'org.springframework.boot', module: 'spring-boot-starter-tomcat'
implementation.exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-undertow'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
compileOnly "org.projectlombok:lombok:${lombokVersion}"
annotationProcessor "org.projectlombok:lombok:${lombokVersion}"
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
mavenBom "com.alibaba.cloud:spring-cloud-alibaba-dependencies:${springCloudAlibabaVersion}"
}
}
test {
useJUnitPlatform()
ignoreFailures = true
}
/**
* clean 命令时删除 logs 目录
*/
task cleanOutDir(type: Delete) {
delete "${projectDir}/logs"
delete "${rootDir}/logs"
}
tasks.clean.dependsOn(cleanOutDir)
uploadArchives {
repositories {
mavenDeployer {
snapshotRepository(url: "http://192.168.1.181/repository/maven-snapshots/") {
authentication(userName: "jkpublic", password: "JKpublic@1")
}
repository(url: "http://192.168.1.181/repository/maven-releases/") {
authentication(userName: "jkpublic", password: "JKpublic@1")
}
}
}
}
project.ext {
nexusUrl = 'http://192.168.1.181/repository/maven-releases/'
username = 'jkpublic'
password = 'JKpublic@1'
}
/*uploadArchives {
repositories {
mavenDeployer {
snapshotRepository(url: "${nexusUrl}") {
authentication(userName: "${username}", password: "${password}")
}
repository(url: "${nexusUrl}") {
authentication(userName: "${username}", password: "${password}")
}
}
}
}*/
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。