[RM] Support Moved artifactory5.exp.exactpro.com above than jcenter()
buildscript {
- ext.kotlin_version = '1.3.21'
+ ext {
+ kotlin_version = '1.3.21'
+ sharedDir = file("${project.rootDir}/shared")
+ }
repositories {
maven {
name 'MavenLocal' // for local builds only
- url 'shared'
+ url sharedDir
+ }
+ if (project.hasProperty('repository')) {
+ maven {
+ name 'UserRepository'
+ url project.repository
+ if (project.hasProperty('repositoryAccount') && project.hasProperty('repositoryPassword')) {
+ credentials {
+ username project.repositoryAccount
+ password project.repositoryPassword
+ }
+ }
+ }
+ } else {
+ maven {
+ name 'Artifactory-snapshot'
+ url 'http://artifactory5.exp.exactpro.com/artifactory/libs-snapshot'
+ }
+ maven {
+ name 'Artifactory-release'
+ url 'http://artifactory5.exp.exactpro.com/artifactory/libs-release'
+ }
}
jcenter()
@@ -38,7 +62,6 @@ allprojects {
sailfishCoreVersion = "${sailfishVersion}"
artifactCoreVersion = build_mode == 'snapshot' ? "${sailfishCoreVersion}-SNAPSHOT" : sailfishCoreVersion
- sharedDir = file("${project.rootDir}/shared")
sharedWorkspaceDir = file("${project.rootDir}/shared_workspace")
tmpWorkspaceDir = file("${project.rootDir}/tmp_workspace")
@@ -147,6 +170,27 @@ subprojects {
name 'MavenLocal' // for local builds only
url sharedDir
}
+ if (project.hasProperty('repository')) {
+ maven {
+ name 'UserRepository'
+ url project.repository
+ if (project.hasProperty('repositoryAccount') && project.hasProperty('repositoryPassword')) {
+ credentials {
+ username project.repositoryAccount
+ password project.repositoryPassword
+ }
+ }
+ }
+ } else {
+ maven { // for gradle fast plugin
+ name 'Artifactory-snapshot'
+ url 'http://artifactory5.exp.exactpro.com/artifactory/libs-snapshot'
+ }
+ maven {
+ name 'Artifactory-release'
+ url 'http://artifactory5.exp.exactpro.com/artifactory/libs-release'
+ }
+ }
jcenter()
}
@@ -172,7 +216,6 @@ subprojects {
name 'MavenLocal' // for local builds only
url sharedDir
}
- jcenter()
if (project.hasProperty('repository')) {
maven {
name 'UserRepository'
@@ -189,8 +232,13 @@ subprojects {
name 'Artifactory-snapshot'
url 'http://artifactory5.exp.exactpro.com/artifactory/libs-snapshot'
}
+ maven {
+ name 'Artifactory-release'
+ url 'http://artifactory5.exp.exactpro.com/artifactory/libs-release'
}
}
+ jcenter()
+ }
configurations {
testArtifacts
