Warn on native plugin usage

This commit is contained in:
Alexander Nozik 2022-08-24 18:53:21 +03:00
parent c77f74c94b
commit 8df651bead
No known key found for this signature in database
GPG Key ID: F7FCF2DD25C71357
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ public class KScienceNativePlugin : Plugin<Project> {
if (!plugins.hasPlugin(KScienceCommonPlugin::class)) {
configureKScience()
} else {
error("KScience native plugin must be applied instead of common")
project.logger.warn("Use `kscience.native()` configuration block")
}
}
}

View File

@ -96,7 +96,7 @@ public class KSciencePublishingExtension(public val project: Project) {
public fun sonatype(
addToRelease: Boolean = (project.requestPropertyOrNull("publishing.sonatype") != "false"),
) {
require(isVcsInitialized) { "The project vcs is not set up use 'git' method to do so" }
require(isVcsInitialized) { "The project vcs is not set up use 'pom' method to do so" }
project.addSonatypePublishing()
if (addToRelease) repositoryNames += "sonatype"