mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
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:
18
build.gradle
18
build.gradle
@@ -83,6 +83,13 @@ subprojects {
|
||||
dirs explodedLibsDir
|
||||
}
|
||||
mavenCentral()
|
||||
maven {
|
||||
url "http://maven.alfresco.com/nexus/content/repositories/enterprise-releases/"
|
||||
credentials {
|
||||
username 'bamboo'
|
||||
password 'b@mb00'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
@@ -91,7 +98,14 @@ subprojects {
|
||||
}
|
||||
|
||||
/** --- 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
|
||||
compileJava.doFirst {
|
||||
explodeDeps.execute()
|
||||
@@ -100,7 +114,7 @@ subprojects {
|
||||
jar.archiveName = jarFile
|
||||
|
||||
/** --- Dependancy tasks --- */
|
||||
|
||||
|
||||
task explodeDeps << {
|
||||
|
||||
explodedDir = file(explodedDepsDir)
|
||||
|
@@ -7,6 +7,8 @@ dependencies {
|
||||
|
||||
testRuntime files(explodedConfigDir)
|
||||
testRuntime files(configDir)
|
||||
|
||||
testRuntime group: 'org.alfresco.enterprise', name: 'alfresco', version: '4.0.1-35934', type: 'war'
|
||||
}
|
||||
|
||||
test {
|
||||
|
Reference in New Issue
Block a user