mirror of
https://github.com/halo-dev/halo.git
synced 2025-12-20 16:44:38 +08:00
#### What type of PR is this? /kind bug /area core #### What this PR does / why we need it: When I tried to publish Maven publications into OSSHR <https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/>, I couldn't close and release the opening staging repository because our Maven publications didn't meet the requirements of OSSHR, for example, `Sign Files with GPG/PGP` and `Project Name, Description and URL`. This PR tries to fix those problem and all checks will pass. You can check it from <https://central.sonatype.com/artifact/run.halo.app/api/overview>. > https://central.sonatype.org/publish/requirements/ #### Does this PR introduce a user-facing change? ```release-note None ```
32 lines
712 B
Groovy
32 lines
712 B
Groovy
plugins {
|
|
id 'java-platform'
|
|
id 'halo.publish'
|
|
}
|
|
|
|
group = 'run.halo.tools.platform'
|
|
description = 'This is the platform that other plugins depend on. ' +
|
|
'We can put the plugin API as a dependency at here.'
|
|
|
|
javaPlatform {
|
|
allowDependencies()
|
|
}
|
|
|
|
dependencies {
|
|
api platform(project(':platform:application'))
|
|
constraints {
|
|
api project(':api')
|
|
// TODO other plugin API dependencies
|
|
// e.g.: api 'halo.run.plugin:links-api:1.1.0'
|
|
}
|
|
}
|
|
|
|
publishing {
|
|
publications.named('mavenJava', MavenPublication) {
|
|
from components.javaPlatform
|
|
pom {
|
|
name = 'Plugin platform'
|
|
description = "$project.description"
|
|
}
|
|
}
|
|
}
|