BDE68: Added fetchWarFile Gradle task to fetch alfresco.war from Nexus

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@35947 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Samuel Langlois
2012-05-01 14:50:13 +00:00
parent a2375a26fe
commit 4340e3a314
2 changed files with 18 additions and 2 deletions

View File

@@ -83,6 +83,13 @@ subprojects {
dirs explodedLibsDir dirs explodedLibsDir
} }
mavenCentral() mavenCentral()
maven {
url "http://maven.alfresco.com/nexus/content/repositories/enterprise-releases/"
credentials {
username 'bamboo'
password 'b@mb00'
}
}
} }
dependencies { dependencies {
@@ -92,6 +99,13 @@ subprojects {
/** --- Compile tasks --- */ /** --- Compile tasks --- */
task fetchWarFile(type:Copy) {
from configurations.testRuntime
into '.'
include 'alfresco*.war'
rename { String filename -> 'alfresco.war' }
}
// make sure that the dependancies have been unpacked before compiling the Java // make sure that the dependancies have been unpacked before compiling the Java
compileJava.doFirst { compileJava.doFirst {
explodeDeps.execute() explodeDeps.execute()

View File

@@ -7,6 +7,8 @@ dependencies {
testRuntime files(explodedConfigDir) testRuntime files(explodedConfigDir)
testRuntime files(configDir) testRuntime files(configDir)
testRuntime group: 'org.alfresco.enterprise', name: 'alfresco', version: '4.0.1-35934', type: 'war'
} }
test { test {