代码拉取完成,页面将自动刷新
buildscript {
ext.kotlin_version = org.gradle.kotlin.dsl.KotlinDependencyExtensionsKt.embeddedKotlinVersion
repositories {
mavenLocal()
google()
mavenCentral()
jcenter()
maven { url 'https://plugins.gradle.org/m2/' }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects { project ->
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'signing'
group = 'com.didiglobal.booster'
version = '0.3.0'
repositories {
mavenLocal()
google()
mavenCentral()
jcenter()
}
javadoc {
failOnError = false
}
task packageJavadoc(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task packageSources(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives packageJavadoc, packageSources
}
signing {
sign configurations.archives
}
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
pom.project {
groupId project.group
artifactId project.name
version project.version
name project.name
url 'https://github.com/didi/booster'
description project.description ?: project.name
scm {
connection 'scm:git:git://github.com/didi/booster.git'
developerConnection 'scm:git:git@github.com:didi/booster.git'
url 'https://github.com/didi/booster'
}
licenses {
license {
name 'Apache License'
url 'https://www.apache.org/licenses/LICENSE-2.0'
}
}
}
pom.withXml { xml ->
(['git', 'log', '--format=%aN %aE'].execute() | ['sort', '-u'].execute()).with {
waitForOrKill(5000)
if (0 == exitValue()) {
def developers = xml.asNode().appendNode('developers')
text.eachLine { line ->
def author = line.split('\\s+')
if (author.length > 1) {
developers.appendNode('developer').with {
appendNode('id', author[0])
appendNode('email', author[1])
}
}
}
}
}
}
repository(url: 'https://oss.sonatype.org/service/local/staging/deploy/maven2/') {
authentication(userName: OSSRH_USERNAME, password: OSSRH_PASSWORD)
}
snapshotRepository(url: 'https://oss.sonatype.org/content/repositories/snapshots/') {
authentication(userName: OSSRH_USERNAME, password: OSSRH_PASSWORD)
}
}
}
}
test {
testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
}
}
}
subprojects { project ->
rootProject.clean.dependsOn project.clean
}
dependencies {
implementation project(':booster-gradle-plugin')
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。