1 Star 0 Fork 47

anthony92/ratelimiter-spring-boot-starter

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
publish.gradle 2.34 KB
Copy Edit Raw Blame History
kl authored 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
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/anthony92/ratelimiter-spring-boot-starter.git
git@gitee.com:anthony92/ratelimiter-spring-boot-starter.git
anthony92
ratelimiter-spring-boot-starter
ratelimiter-spring-boot-starter
master

Search

0d507c66 1850385 C8b1a773 1850385