代码拉取完成,页面将自动刷新
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'
}
}
}
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。