1 Star 0 Fork 0

老孙/redis-spring-boot-starter

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 2.80 KB
一键复制 编辑 原始数据 按行查看 历史
sunmya 提交于 2020-05-12 16:16 . update springboot
apply plugin: 'maven-publish'
apply plugin: 'signing'
apply plugin: 'java'
apply plugin: 'maven'
group 'com.github.sunmya'
version '0.2.7-RELEASE'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenLocal()
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
maven { url "http://repo.maven.apache.org/maven2" }
mavenCentral()
}
dependencies {
compile group: 'redis.clients', name: 'jedis', version: '3.1.0-m2'
compile group: 'org.springframework.boot', name: 'spring-boot-configuration-processor', version: '2.2.7.RELEASE'
compile group: 'org.springframework.boot', name: 'spring-boot-starter', version: '2.2.7.RELEASE'
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives jar
archives sourcesJar
archives javadocJar
}
signing {
sign configurations.archives
}
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
mavenLocal()
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2") {
authentication(userName: "${sonatypeUsername}", password: "${sonatypePassword}")
}
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots") {
authentication(userName: "${sonatypeUsername}", password: "${sonatypePassword}")
}
pom.project {
name project.name
packaging 'jar'
description 'A redis spring-boot stater'
url 'https://github.com/sunmya/redis-spring-boot-starter'
scm {
url 'scm:git@github.com:sunmya/redis-spring-boot-starter.git'
connection 'scm:git@github.com:sunmya/redis-spring-boot-starter.git'
developerConnection 'git@github.com:sunmya/redis-spring-boot-starter.git'
}
licenses {
license {
name 'GNU General Public License v3.0'
url 'https://github.com/sunmya/redis-spring-boot-starter/blob/master/LICENSE'
distribution 'repo'
}
}
developers {
developer {
id 'sunmya'
name 'Sun Mengya'
}
}
}
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/sunmya/redis-spring-boot-starter.git
git@gitee.com:sunmya/redis-spring-boot-starter.git
sunmya
redis-spring-boot-starter
redis-spring-boot-starter
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385