Warn on native plugin usage
This commit is contained in:
parent
c77f74c94b
commit
8df651bead
@ -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")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user