Commit c5df5fa1 authored by Him188's avatar Him188

Simplify

parent d8816d12
...@@ -18,26 +18,6 @@ if (!Bintray.isBintrayAvailable(project)) { ...@@ -18,26 +18,6 @@ if (!Bintray.isBintrayAvailable(project)) {
def miraiGitHubUrl = "https://github.com/mamoe/mirai" def miraiGitHubUrl = "https://github.com/mamoe/mirai"
def pomConfig = {
licenses {
license {
name "AGPL-V3"
url "https://www.gnu.org/licenses/agpl-3.0.txt"
distribution "repo"
}
}
developers {
developer {
id "mamoe"
name "Mamoe Technologies"
email "support@mamoe.net"
}
}
scm {
url miraiGitHubUrl
}
}
bintray { bintray {
user = Bintray.getUser(project) user = Bintray.getUser(project)
key = Bintray.getKey(project) key = Bintray.getKey(project)
...@@ -66,7 +46,25 @@ afterEvaluate { ...@@ -66,7 +46,25 @@ afterEvaluate {
root.appendNode('name', project.name) root.appendNode('name', project.name)
root.appendNode('description', project.description) root.appendNode('description', project.description)
root.appendNode('url', miraiGitHubUrl) root.appendNode('url', miraiGitHubUrl)
root.children().last() + pomConfig root.children().last() + {
licenses {
license {
name "AGPL-V3"
url "https://www.gnu.org/licenses/agpl-3.0.txt"
distribution "repo"
}
}
developers {
developer {
id "mamoe"
name "Mamoe Technologies"
email "support@mamoe.net"
}
}
scm {
url miraiGitHubUrl
}
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment