Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove checks for username and password. #12

Merged
merged 1 commit into from
Jun 30, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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