Support spring-amqp-core artifactId change

Commit 58de044 changed the Maven pom artifactId of the
spring-amqp-core module to 'spring-amqp' without changing the
name of the directory. This commit reflects that change within
the Gradle build, however the way it is done is not ideal.

See this comment on GRADLE-443 for how it will look against Gradle 1.0
http://bit.ly/bRCmBn
This commit is contained in:
Chris Beams
2010-07-29 13:11:36 +02:00
parent 8eba8a10c4
commit caa152c54a
4 changed files with 21 additions and 13 deletions

View File

@@ -168,7 +168,7 @@ configure(sampleprojects) {
// dependencies common ta all sample projects
dependencies {
compile project(':spring-amqp-core')
compile project(':spring-amqp')
compile project(':spring-rabbit')
compile project(':spring-rabbit-admin')
compile "com.rabbitmq:amqp-client:$rabbitVersion"
@@ -189,7 +189,7 @@ configure(sampleprojects) {
//
// @see configure(javaprojects) above for general config
// -----------------------------------------------------------------------------
project('spring-amqp-core') {
project('spring-amqp') {
dependencies {
compile "org.springframework:spring-core:$springVersion"
compile "org.springframework:spring-oxm:$springVersion"
@@ -208,7 +208,7 @@ project('spring-erlang') {
project('spring-rabbit') {
dependencies {
compile project(':spring-amqp-core')
compile project(':spring-amqp')
compile "com.rabbitmq:amqp-client:$rabbitVersion"
compile "org.springframework:spring-core:$springVersion"
compile "org.springframework:spring-beans:$springVersion"
@@ -224,7 +224,7 @@ project('spring-rabbit-admin') {
erlangLicense = true
dependencies {
compile project(':spring-amqp-core')
compile project(':spring-amqp')
compile project(':spring-erlang')
compile project(':spring-rabbit')
compile "com.rabbitmq:amqp-client:$rabbitVersion"

View File

@@ -20,9 +20,17 @@
* @see http://www.gradle.org/0.9-preview-3/docs/userguide/userguide_single.html#javaMultiProject
*/
include 'docs',
'spring-amqp-core',
'spring-amqp',
'spring-erlang',
'spring-rabbit',
'spring-rabbit-admin',
'spring-amqp-samples:helloworld',
'spring-amqp-samples:stocks'
// In commit 58de044, Mark changed the Maven pom artifactId of the
// spring-amqp-core module to 'spring-amqp', without changing the
// name of the directory. This statement reflects that change, but
// is not actually the most ideal way to do it. See the following
// comment on GRADLE-443 to see how we'll be able to support this
// better in Gradle 1.0: http://bit.ly/bRCmBn
project(':spring-amqp').projectDir = new File(settingsDir, 'spring-amqp-core')

View File

@@ -40,13 +40,13 @@
</dependency>
<dependency>
<groupId>org.springframework.amqp</groupId>
<artifactId>spring-amqp-core</artifactId>
<artifactId>spring-rabbit-admin</artifactId>
<version>1.0.0.BUILD-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework.amqp</groupId>
<artifactId>spring-rabbit-admin</artifactId>
<artifactId>spring-amqp</artifactId>
<version>1.0.0.BUILD-SNAPSHOT</version>
<scope>compile</scope>
</dependency>

View File

@@ -38,12 +38,6 @@
<version>1.5.4</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.amqp</groupId>
<artifactId>spring-amqp-core</artifactId>
<version>1.0.0.BUILD-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework.amqp</groupId>
<artifactId>spring-rabbit-admin</artifactId>
@@ -56,6 +50,12 @@
<version>3.0.3.RELEASE</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework.amqp</groupId>
<artifactId>spring-amqp</artifactId>
<version>1.0.0.BUILD-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>