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

Fix issue #93. #94

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
5 changes: 4 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ dependencies {
testImplementation 'org.spockframework:spock-core:1.3-groovy-2.5'
}

repositories {
mavenCentral()
}

pluginBundle {
website = 'https://github.com/Itiviti/gradle-nuget-plugin'
Expand Down Expand Up @@ -51,4 +54,4 @@ gradlePlugin {
}
}

project.tasks.afterReleaseBuild.dependsOn project.tasks.publishPlugins
project.tasks.afterReleaseBuild.dependsOn project.tasks.publishPlugins
3 changes: 3 additions & 0 deletions src/main/groovy/com/ullink/BaseNuGet.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class BaseNuGet extends Exec {

private File getNugetExeLocalPath() {
File localNuget
String nugetExePath = project.extensions.nuget.nugetExePath

if (nugetExePath != null && !nugetExePath.empty && !nugetExePath.startsWith("http")) {
localNuget = new File(nugetExePath)
Expand Down Expand Up @@ -95,6 +96,8 @@ class BaseNuGet extends Exec {
}

private String getNugetDownloadLink() {
String nugetExePath = project.extensions.nuget.nugetExePath

if (nugetExePath != null && !nugetExePath.empty && nugetExePath.startsWith("http")) {
project.logger.debug("Nuget url path is resolved from property 'nugetExePath'")

Expand Down
1 change: 1 addition & 0 deletions src/main/groovy/com/ullink/NuGetExtension.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ package com.ullink

class NuGetExtension {
String version = '5.5.0'
String nugetExePath = null
}