Skip to content

Commit

Permalink
apply 3
Browse files Browse the repository at this point in the history
  • Loading branch information
alancai98 committed Jul 18, 2024
1 parent 9c823e0 commit f1f3445
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 5 additions & 1 deletion buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ dependencies {
implementation(Plugins.nexus)
}

allprojects {
rootProject.run {
plugins.run {
apply("io.github.gradle-nexus.publish-plugin")
}
group = rootProject.properties["group"] as String
version = rootProject.properties["version"] as String
}

Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ abstract class PublishPlugin : Plugin<Project> {
pluginManager.apply(SigningPlugin::class.java)
pluginManager.apply(DokkaPlugin::class.java)
pluginManager.apply(ShadowPlugin::class.java)
pluginManager.apply(NexusPublishPlugin::class.java)
extensions.getByType(KotlinJvmProjectExtension::class.java).explicitApi = ExplicitApiMode.Strict
val ext = extensions.create("publish", PublishExtension::class.java)
target.afterEvaluate { publish(ext) }
Expand Down

0 comments on commit f1f3445

Please sign in to comment.