修改上传脚本,将从库从jcenter迁移到mavencentral

pull/907/head
laoyuyu 4 years ago
parent ebbbbee1f8
commit 00a81220cb
  1. 13
      gradle/mavenCentral-release.gradle

@ -165,6 +165,19 @@ afterEvaluate { project ->
} else if (project.plugins.hasPlugin('java')) {
from components.java
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocsJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifact sourcesJar
artifact javadocsJar
}
pom {

Loading…
Cancel
Save