1 Star 0 Fork 47

whchao5/ratelimiter-spring-boot-starter

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
publish.gradle 2.34 KB
一键复制 编辑 原始数据 按行查看 历史
kl 提交于 2021-03-24 19:54 . 完善 ci
apply plugin: 'maven-publish'
apply plugin: 'signing'
ext {
isReleasedVersion = !project.version.endsWith("-SNAPSHOT")
}
task sourcesJar(type: Jar) {
from sourceSets.main.allJava
archiveClassifier.set('sources')
}
task javadocJar(type: Jar) {
from javadoc
archiveClassifier.set('javadoc')
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
pom {
name = 'ratelimiter-spring-boot-starter'
description = '开箱即用的分布式限流器'
url = 'https://github.com/TapTap/ratelimiter-spring-boot-starter'
developers {
developer {
id = 'kl'
name = 'kl'
url = 'http://www.kailing.pub'
email = 'g632104866@gmail.com'
}
}
scm {
connection = 'scm:git:https://github.com/TapTap/ratelimiter-spring-boot-starter.git'
developerConnection = 'scm:git:https://github.com/TapTap/ratelimiter-spring-boot-starter.git'
url = 'https://github.com/TapTap/ratelimiter-spring-boot-starter'
}
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
}
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
}
}
repositories {
maven {
name = "OSSRH"
credentials {
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_PASSWORD")
}
if (isReleasedVersion) {
url "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
} else {
url "https://s01.oss.sonatype.org/content/repositories/snapshots/"
}
}
}
}
signing {
sign publishing.publications.mavenJava
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/whchao/ratelimiter-spring-boot-starter.git
git@gitee.com:whchao/ratelimiter-spring-boot-starter.git
whchao
ratelimiter-spring-boot-starter
ratelimiter-spring-boot-starter
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385