mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Warnings.
This commit is contained in:
parent
4fa253cea2
commit
e69a0f0136
1 changed files with 5 additions and 5 deletions
|
@ -13,7 +13,7 @@ import javax.inject.Inject
|
|||
import javax.inject.Singleton
|
||||
|
||||
@Singleton
|
||||
public class PublishPlugin @Inject constructor(val http: Http, val files: com.beust.kobalt.misc.KFiles,
|
||||
public class PublishPlugin @Inject constructor(val files: com.beust.kobalt.misc.KFiles,
|
||||
val factory: com.beust.kobalt.maven.PomGenerator.IFactory,
|
||||
val jcenterFactory: JCenterApi.IFactory)
|
||||
: BasePlugin() {
|
||||
|
@ -35,10 +35,10 @@ public class PublishPlugin @Inject constructor(val http: Http, val files: com.be
|
|||
}
|
||||
|
||||
private fun validateProject(project: Project) {
|
||||
Preconditions.checkNotNull(project.name, "Project ${project} should have a name")
|
||||
Preconditions.checkNotNull(project.version, "Project ${project} should have a version")
|
||||
Preconditions.checkNotNull(project.group, "Project ${project} should have a group")
|
||||
Preconditions.checkNotNull(project.artifactId, "Project ${project} should have a artifactId")
|
||||
Preconditions.checkNotNull(project.name, "Project $project should have a name")
|
||||
Preconditions.checkNotNull(project.version, "Project $project should have a version")
|
||||
Preconditions.checkNotNull(project.group, "Project $project should have a group")
|
||||
Preconditions.checkNotNull(project.artifactId, "Project $project should have a artifactId")
|
||||
}
|
||||
|
||||
private val VALID = arrayListOf(".jar", ".pom")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue