1 Star 0 Fork 0

老孙/dataSource-spring-boot-starter

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 2.82 KB
一键复制 编辑 原始数据 按行查看 历史
sunmya 提交于 2020-05-12 16:15 . 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: 'com.zaxxer', name: 'HikariCP', version: '3.4.2'
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://gitee.com/sunmya/dataSource-spring-boot-starter'
scm {
url 'scm:git@gitee.com:sunmya/dataSource-spring-boot-starter.git'
connection 'scm:git@gitee.com:sunmya/dataSource-spring-boot-starter.git'
developerConnection 'git@gitee.com:sunmya/dataSource-spring-boot-starter.git'
}
licenses {
license {
name 'GNU General Public License v3.0'
url 'https://gitee.com/sunmya/dataSource-spring-boot-starter/blob/master/LICENSE'
distribution 'repo'
}
}
developers {
developer {
id 'sunmya'
name 'Sun Mengya'
}
}
}
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/sunmya/dataSource-spring-boot-starter.git
git@gitee.com:sunmya/dataSource-spring-boot-starter.git
sunmya
dataSource-spring-boot-starter
dataSource-spring-boot-starter
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385