52 lines
1.6 KiB
Groovy
Executable File
52 lines
1.6 KiB
Groovy
Executable File
usePlugin 'java'
|
|
usePlugin 'eclipse'
|
|
usePlugin 'war'
|
|
|
|
version=0.1
|
|
|
|
task copyToLib(dependsOn: configurations.default.buildArtifacts, type: Copy) {
|
|
into('lib')
|
|
from configurations.default
|
|
from configurations.default.allArtifacts*.file
|
|
}
|
|
repositories {
|
|
mavenCentral()
|
|
add(new org.apache.ivy.plugins.resolver.URLResolver()) {
|
|
name = "maven2-central"
|
|
addArtifactPattern "http://repo1.maven.org/maven2/[organisation]/[module]/[revision]/[artifact](-[revision]).[ext]"
|
|
addArtifactPattern "http://repo1.maven.org/maven2/[organisation]/[artifact]/[revision]/[artifact](-[revision]).[ext]"
|
|
}
|
|
flatDir(name: 'fileRepo', dirs: "$projectDir/src/main/webapp/WEB-INF/lib")
|
|
}
|
|
dependencies {
|
|
compile('org.apache.activemq:activemq-all:5.2.0') {
|
|
artifact { name='activemq-all' ; type='jar' }
|
|
}
|
|
compile('commons-beanutils:commons-beanutils:1.8.3') {
|
|
artifact { name='commons-beanutils' ; type='jar' }
|
|
}
|
|
compile('commons-lang:commons-lang:2.5') {
|
|
artifact { name='commons-lang' ; type='jar' }
|
|
}
|
|
compile('commons-logging:commons-logging:1.1.1') {
|
|
artifact { name='commons-logging' ; type='jar' }
|
|
}
|
|
compile('org.springframework:spring:2.5.6') {
|
|
artifact { name='spring' ; type='jar' }
|
|
}
|
|
compile('org.springframework:spring-jms:2.5.6') {
|
|
artifact { name='spring-jms' ; type='jar' }
|
|
}
|
|
compile('org.apache.tomcat:servlet-api:6.0.26') {
|
|
artifact { name='servlet-api' ; type='jar' }
|
|
}
|
|
compile('mysql:mysql-connector-java:5.1.12') {
|
|
artifact { name='mysql-connector-java' ; type='jar' }
|
|
}
|
|
}
|
|
uploadArchives {
|
|
uploadDescriptor = false
|
|
repositories {
|
|
add project.repositories.fileRepo
|
|
}
|
|
} |