mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-27 08:50:15 +08:00
Publishing without -jvm
This commit is contained in:
parent
edde57a212
commit
bde40d342b
@ -16,6 +16,8 @@ if (!Bintray.isBintrayAvailable(project)) {
|
||||
return
|
||||
}
|
||||
|
||||
def miraiGitHubUrl = "https://github.com/mamoe/mirai"
|
||||
|
||||
def pomConfig = {
|
||||
licenses {
|
||||
license {
|
||||
@ -32,7 +34,7 @@ def pomConfig = {
|
||||
}
|
||||
}
|
||||
scm {
|
||||
url "https://github.com/mamoe/mirai"
|
||||
url miraiGitHubUrl
|
||||
}
|
||||
}
|
||||
|
||||
@ -44,7 +46,13 @@ bintray {
|
||||
repo = 'mirai'
|
||||
name = "mirai-core"
|
||||
licenses = ['AGPL']
|
||||
vcsUrl = 'https://github.com/mamoe/mirai'
|
||||
vcsUrl = miraiGitHubUrl
|
||||
websiteUrl = miraiGitHubUrl
|
||||
githubRepo = miraiGitHubUrl
|
||||
issueTrackerUrl = "$miraiGitHubUrl/issues"
|
||||
/* version {
|
||||
name = project.version
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
@ -57,7 +65,7 @@ afterEvaluate {
|
||||
//root.appendNode('version', project.version)
|
||||
root.appendNode('name', project.name)
|
||||
root.appendNode('description', project.description)
|
||||
root.appendNode('url', 'https://github.com/mamoe/mirai')
|
||||
root.appendNode('url', miraiGitHubUrl)
|
||||
root.children().last() + pomConfig
|
||||
}
|
||||
}
|
||||
@ -99,13 +107,13 @@ publishing {
|
||||
def type = it.name
|
||||
switch (type) {
|
||||
case 'kotlinMultiplatform':
|
||||
it.artifactId = "$project.name"
|
||||
it.artifactId = "$project.name-native"
|
||||
break
|
||||
case 'metadata':
|
||||
it.artifactId = "$project.name-common"
|
||||
break
|
||||
case 'jvm':
|
||||
it.artifactId = "$project.name-jvm"
|
||||
it.artifactId = "$project.name"
|
||||
break
|
||||
case 'js':
|
||||
case 'native':
|
||||
@ -118,4 +126,6 @@ publishing {
|
||||
moduleDescriptorGenerator = null
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// bintrayUpload.dependsOn publishToMavenLocal
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@ -1,5 +1,5 @@
|
||||
#Tue Mar 31 10:18:00 CST 2020
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2.2-all.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-bin.zip
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStorePath=wrapper/dists
|
||||
|
Loading…
Reference in New Issue
Block a user