Remove md5

This commit is contained in:
Karlatemp 2020-10-02 23:17:56 +08:00
parent e643988c87
commit 8f7a9f21aa
No known key found for this signature in database
GPG Key ID: 21FBDDF664FF06F8
3 changed files with 8 additions and 0 deletions

View File

@ -118,6 +118,7 @@ subprojects {
}
}
/*
val shadowJarMd5 = tasks.register("shadowJarMd5") {
dependsOn("shadowJvmJar")
@ -140,6 +141,7 @@ subprojects {
tasks.getByName("publish").dependsOn(this)
tasks.getByName("bintrayUpload").dependsOn(this)
}.get()
*/
val githubUpload by tasks.creating {
group = "mirai"

View File

@ -73,6 +73,7 @@ inline fun Project.setupPublishing(
// afterEvaluate {
/*
val shadowJar = tasks.filterIsInstance<ShadowJar>().firstOrNull() ?: return//@afterEvaluate
tasks.register("shadowJarMd5") {
@ -97,6 +98,7 @@ inline fun Project.setupPublishing(
tasks.getByName("publish").dependsOn(this)
tasks.getByName("bintrayUpload").dependsOn(this)
}
*/
if (Bintray.isBintrayAvailable(project)) {
bintray {
@ -136,11 +138,13 @@ inline fun Project.setupPublishing(
publications {
register("mavenJava", MavenPublication::class) {
from(components["java"])
/*
afterEvaluate {
for (file in tasks.getByName("shadowJarMd5").outputs.files) {
artifact(provider { file })
}
}
*/
groupId = rootProject.group.toString()
this.artifactId = artifactId

View File

@ -123,10 +123,12 @@ afterEvaluate {
case 'jvm':
it.artifactId = isKotlin137x ? "$variantName" : "$variantName-jvm"
/*
def files = tasks.getByName("shadowJarMd5").outputs.files + tasks.getByName("shadowJvmJar").outputs.files
for (f in files) {
artifact f
}
*/
break
case 'js':