mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-28 00:20:14 +08:00
Publishing without -jvm
This commit is contained in:
parent
edde57a212
commit
bde40d342b
@ -16,6 +16,8 @@ if (!Bintray.isBintrayAvailable(project)) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def miraiGitHubUrl = "https://github.com/mamoe/mirai"
|
||||||
|
|
||||||
def pomConfig = {
|
def pomConfig = {
|
||||||
licenses {
|
licenses {
|
||||||
license {
|
license {
|
||||||
@ -32,7 +34,7 @@ def pomConfig = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
scm {
|
scm {
|
||||||
url "https://github.com/mamoe/mirai"
|
url miraiGitHubUrl
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -44,7 +46,13 @@ bintray {
|
|||||||
repo = 'mirai'
|
repo = 'mirai'
|
||||||
name = "mirai-core"
|
name = "mirai-core"
|
||||||
licenses = ['AGPL']
|
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('version', project.version)
|
||||||
root.appendNode('name', project.name)
|
root.appendNode('name', project.name)
|
||||||
root.appendNode('description', project.description)
|
root.appendNode('description', project.description)
|
||||||
root.appendNode('url', 'https://github.com/mamoe/mirai')
|
root.appendNode('url', miraiGitHubUrl)
|
||||||
root.children().last() + pomConfig
|
root.children().last() + pomConfig
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -99,13 +107,13 @@ publishing {
|
|||||||
def type = it.name
|
def type = it.name
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case 'kotlinMultiplatform':
|
case 'kotlinMultiplatform':
|
||||||
it.artifactId = "$project.name"
|
it.artifactId = "$project.name-native"
|
||||||
break
|
break
|
||||||
case 'metadata':
|
case 'metadata':
|
||||||
it.artifactId = "$project.name-common"
|
it.artifactId = "$project.name-common"
|
||||||
break
|
break
|
||||||
case 'jvm':
|
case 'jvm':
|
||||||
it.artifactId = "$project.name-jvm"
|
it.artifactId = "$project.name"
|
||||||
break
|
break
|
||||||
case 'js':
|
case 'js':
|
||||||
case 'native':
|
case 'native':
|
||||||
@ -118,4 +126,6 @@ publishing {
|
|||||||
moduleDescriptorGenerator = null
|
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
|
#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
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
Loading…
Reference in New Issue
Block a user