Skip to content

Commit

Permalink
fixing property setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Kerwin committed Mar 13, 2020
1 parent 057c0df commit a290501
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ tasks.withType(JavaCompile) { options.encoding = 'UTF-8' }
tasks.withType(GroovyCompile) { options.encoding = 'UTF-8' }

group = 'com.synopsys.integration'
version = '1.4.2-SNAPSHOT'
version = '1.4.2'
description = 'A common plugin for all integration libraries and solutions to use.'

sourceCompatibility = 1.8
Expand Down
3 changes: 1 addition & 2 deletions src/main/groovy/com/synopsys/integration/Common.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ public abstract class Common implements Plugin<Project> {
}

project.ext.isSnapshot = project.version.endsWith('-SNAPSHOT')
project.ext[PROPERTY_BUILDSCRIPT_DEPENDENCY] = BUILDSCRIPT_DEPENDENCY_LOCATION

// assume some reasonable defaults if the environment doesn't provide specific values
setExtPropertyOnProject(project, PROPERTY_DOWNLOAD_ARTIFACTORY_URL, 'https://sig-repo.synopsys.com')
Expand Down Expand Up @@ -116,8 +117,6 @@ public abstract class Common implements Plugin<Project> {
setExtPropertyOnProjectNoDefaults(project, PROPERTY_SONATYPE_PASSWORD, ENVIRONMENT_VARIABLE_SONATYPE_PASSWORD)
setExtPropertyOnProjectNoDefaults(project, PROPERTY_SONAR_QUBE_LOGIN, ENVIRONMENT_VARIABLE_SONAR_QUBE_LOGIN)

setExtPropertyOnProjectNoDefaults(project, PROPERTY_BUILDSCRIPT_DEPENDENCY, BUILDSCRIPT_DEPENDENCY_LOCATION)

project.repositories {
mavenLocal()
maven { url "${project.ext[PROPERTY_DOWNLOAD_ARTIFACTORY_URL]}/${project.ext[PROPERTY_ARTIFACTORY_RELEASE_REPO]}" }
Expand Down

0 comments on commit a290501

Please sign in to comment.