1 Star 0 Fork 27

Lee/system-dict-starter

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build.gradle 5.15 KB
一键复制 编辑 原始数据 按行查看 历史
侯坤林 提交于 2021-10-18 18:33 . build: 发布 1.4.3.2 版本
plugins {
id 'org.springframework.boot' version '2.5.4'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id "io.freefair.lombok" version "5.3.0"
id 'maven-publish'
id 'signing'
id 'java-library'
id 'application'
id 'idea'
}
group = 'com.houkunlin'
version = '1.4.3.2'
sourceCompatibility = '1.8'
def gitRepo = "github.com/houkunlin-starter/system-dict-starter.git"
def isSnapshot = findProperty("snapshot") != null || version.endsWith('SNAPSHOT')
if (isSnapshot && !version.endsWith('SNAPSHOT')) {
version += '-BUILD-SNAPSHOT'
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url 'https://repo.spring.io/release' }
mavenCentral()
}
dependencies {
compileOnly 'org.springframework.boot:spring-boot-starter-actuator'
testImplementation 'org.springframework.boot:spring-boot-starter-actuator'
compileOnly 'org.springframework.boot:spring-boot-starter-web'
testImplementation 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.springframework.boot:spring-boot-starter-validation'
testImplementation 'org.springframework.boot:spring-boot-starter-validation'
compileOnly 'org.springframework.boot:spring-boot-starter-data-redis'
testCompileOnly 'org.springframework.boot:spring-boot-starter-data-redis'
testImplementation 'org.springframework.boot:spring-boot-starter-data-redis'
// implementation 'org.redisson:redisson-spring-boot-starter:+'
compileOnly 'org.springframework.boot:spring-boot-starter-amqp'
// https://mvnrepository.com/artifact/com.google.guava/guava
api 'com.google.guava:guava:30.1.1-jre'
api 'com.github.ben-manes.caffeine:caffeine'
api 'org.javassist:javassist:3.28.0-GA'
api 'io.swagger:swagger-annotations:1.6.2'
annotationProcessor 'org.projectlombok:lombok-mapstruct-binding:0.2.0'
testAnnotationProcessor 'org.projectlombok:lombok-mapstruct-binding:0.2.0'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
publishing {
publications {
library(MavenPublication) {
from components.java
pom {
name = project.name
packaging = 'jar'
description = project.name
url = "https://${gitRepo}"
// properties = []
licenses {
license {
name = 'Mulan Permissive Software License,Version 2'
url = 'https://license.coscl.org.cn/MulanPSL2'
}
}
developers {
developer {
id = 'houkunlin'
name = 'HouKunLin'
email = '[email protected]'
}
}
scm {
connection = "scm:git://${gitRepo}"
developerConnection = "scm:git://${gitRepo}"
url = "git://${gitRepo}"
}
}
}
}
repositories {
maven {
name = "sonatype"
credentials {
username = findProperty("ossrhUsername") ?: System.getenv("ossrhUsername")
password = findProperty("ossrhPassword") ?: System.getenv("ossrhPassword")
}
// 正式环境
def releasesRepoUrl = 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/'
// 非正式环境库
def snapshotsRepoUrl = 'https://s01.oss.sonatype.org/content/repositories/snapshots/'
url isSnapshot ? snapshotsRepoUrl : releasesRepoUrl
}
maven {
name = "buildDir"
String releasesRepoUrl = "$buildDir/repos/releases"
String snapshotsRepoUrl = "$buildDir/repos/snapshots"
url isSnapshot ? snapshotsRepoUrl : releasesRepoUrl
}
}
}
signing {
// 使用 gradle.properties 设置参数,或者在命令行中增加 -Pgpg_private_key= -Pgpg_password= 设置参数
// 或者在环境变量中设置相应的环境变量
String signingKey = findProperty("gpg_private_key") ?: System.getenv("gpg_private_key")
if (signingKey != null) {
String signingPassword = findProperty("gpg_password") ?: System.getenv("gpg_password")
useInMemoryPgpKeys(signingKey, signingPassword)
}
sign publishing.publications
// sign configurations.archives
}
bootJar {
enabled = false
}
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}
jar {
enabled = true
classifier("")
}
java {
withJavadocJar()
withSourcesJar()
}
javadoc {
enabled = true
options.encoding = "UTF-8"
options.addStringOption('Xdoclint:none', '-quiet')
if (JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}
compileJava {
options.encoding = "UTF-8"
}
test {
useJUnitPlatform()
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/leedream_lj/system-dict-starter.git
[email protected]:leedream_lj/system-dict-starter.git
leedream_lj
system-dict-starter
system-dict-starter
main

搜索帮助