Skip to content

Commit

Permalink
Remove checks for username and password. (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
vanniktech committed Jun 30, 2018
1 parent 47ba3c6 commit 648a0a9
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.vanniktech.maven.publish

import org.gradle.api.GradleException
import org.gradle.api.JavaVersion
import org.gradle.api.Plugin
import org.gradle.api.Project
Expand Down Expand Up @@ -32,14 +31,6 @@ class MavenPublishPlugin implements Plugin<Project> {
pom.artifactId = project.findProperty("POM_ARTIFACT_ID")
pom.version = project.findProperty("VERSION_NAME")

if (extension.repositoryUsername == null) {
throw new GradleException("Please configure repositoryUsername via mavenPublish.repositoryUsername or alternatively set the Gradle / System environment variable SONATYPE_NEXUS_USERNAME")
}

if (extension.repositoryPassword == null) {
throw new GradleException("Please configure repositoryPassword via mavenPublish.repositoryPassword or alternatively set the Gradle / System environment variable SONATYPE_NEXUS_PASSWORD")
}

repository(url: extension.releaseRepositoryUrl) {
authentication(userName: extension.repositoryUsername, password: extension.repositoryPassword)
}
Expand Down

0 comments on commit 648a0a9

Please sign in to comment.