Skip to content

Commit 164247c

Browse files
committed
fix for GRAILS-6133 and various other fixes to the POMs to ensure Grails 1.3.2 is compatible with the maven plugin
1 parent 806b0a3 commit 164247c

File tree

3 files changed

+22
-23
lines changed

3 files changed

+22
-23
lines changed

maven/grails-bootstrap.pom.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@
3838
<artifactId>gpars</artifactId>
3939
<version>0.9</version>
4040
</dependency>
41+
42+
<dependency>
43+
<groupId>org.apache.ivy</groupId>
44+
<artifactId>ivy</artifactId>
45+
<version>2.1.0</version>
46+
</dependency>
4147

4248
<dependency>
4349
<groupId>org.codehaus.gant</groupId>

maven/grails-gorm.pom.in

Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -62,27 +62,6 @@
6262
</exclusions>
6363
</dependency>
6464

65-
<!--
66-
The next two are only needed if you use Hibernate annotations
67-
in your project.
68-
-->
69-
<dependency>
70-
<groupId>org.hibernate</groupId>
71-
<artifactId>hibernate-annotations</artifactId>
72-
<version>3.4.0.GA</version>
73-
</dependency>
74-
75-
<dependency>
76-
<groupId>org.hibernate</groupId>
77-
<artifactId>hibernate-commons-annotations</artifactId>
78-
<version>3.1.0.GA</version>
79-
<exclusions>
80-
<exclusion>
81-
<artifactId>hibernate-core</artifactId>
82-
</exclusion>
83-
</exclusions>
84-
</dependency>
85-
8665
<!-- Grails Dependencies -->
8766
<dependency>
8867
<groupId>${project.groupId}</groupId>
@@ -161,9 +140,21 @@
161140
<dependency>
162141
<groupId>org.hibernate</groupId>
163142
<artifactId>hibernate-annotations</artifactId>
164-
<version>3.4.0.ga</version>
143+
<version>3.4.0.GA</version>
165144
</dependency>
166145

146+
<dependency>
147+
<groupId>org.hibernate</groupId>
148+
<artifactId>hibernate-commons-annotations</artifactId>
149+
<version>3.1.0.GA</version>
150+
<exclusions>
151+
<exclusion>
152+
<artifactId>hibernate-core</artifactId>
153+
</exclusion>
154+
</exclusions>
155+
</dependency>
156+
157+
167158
<dependency>
168159
<groupId>javassist</groupId>
169160
<artifactId>javassist</artifactId>

src/java/org/codehaus/groovy/grails/resolve/PluginResolveEngine.groovy

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ final class PluginResolveEngine {
4747
IvyDependencyManager createFreshDependencyManager() {
4848
IvyDependencyManager dm = new IvyDependencyManager(dependencyManager.applicationName, dependencyManager.applicationVersion ?: "0.1", settings)
4949
dm.chainResolver = dependencyManager.chainResolver
50-
dm.logger = dependencyManager.logger
50+
if(dependencyManager.logger) {
51+
dm.logger = dependencyManager.logger
52+
}
5153
return dm
5254
}
5355

0 commit comments

Comments
 (0)