File tree Expand file tree Collapse file tree 2 files changed +37
-2
lines changed Expand file tree Collapse file tree 2 files changed +37
-2
lines changed Original file line number Diff line number Diff line change 16
16
-->
17
17
<project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
18
18
xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd" >
19
-
19
+
20
20
<modelVersion >4.0.0</modelVersion >
21
21
22
22
<parent >
26
26
</parent >
27
27
28
28
<artifactId >hibernate-tools-gradle</artifactId >
29
+ <packaging >pom</packaging >
29
30
30
31
<name >Hibernate Tools Gradle Plugin</name >
31
32
<description >Gradle plugin to provide hibernate-tools reverse engineering and code/schema generation abilities.</description >
37
38
</issueManagement >
38
39
39
40
<properties >
41
+ <!-- This is a publicly distributed module that should be published: -->
42
+ <deploy .skip>false</deploy .skip>
43
+
40
44
<gradle .executable>./gradlew</gradle .executable>
41
45
</properties >
42
-
46
+
47
+ <dependencies >
48
+ <dependency >
49
+ <groupId >org.hibernate.tool</groupId >
50
+ <artifactId >hibernate-tools-orm</artifactId >
51
+ </dependency >
52
+ </dependencies >
53
+
43
54
<build >
44
55
<plugins >
45
56
<!-- execute Gradle command -->
64
75
</execution >
65
76
</executions >
66
77
</plugin >
78
+ <!-- As the artifact is built by Gradle, we attach it with the helper plugin so that it gets published: -->
79
+ <plugin >
80
+ <groupId >org.codehaus.mojo</groupId >
81
+ <artifactId >build-helper-maven-plugin</artifactId >
82
+ <executions >
83
+ <execution >
84
+ <id >attach-artifacts</id >
85
+ <phase >package</phase >
86
+ <goals >
87
+ <goal >attach-artifact</goal >
88
+ </goals >
89
+ <configuration >
90
+ <artifacts >
91
+ <artifact >
92
+ <file >${project.basedir} /plugin/build/libs/${project.artifactId} -${project.version} .jar</file >
93
+ <type >jar</type >
94
+ </artifact >
95
+ </artifacts >
96
+ </configuration >
97
+ </execution >
98
+ </executions >
99
+ </plugin >
67
100
</plugins >
68
101
</build >
69
102
Original file line number Diff line number Diff line change 337
337
<!-- Keep things like url, inceptionYear, authors...
338
338
everything that's required by the OSSRH Maven repository -->
339
339
<flattenMode >ossrh</flattenMode >
340
+ <!-- To make sure that `hibernate-tools-gradle` module that has a pom packaging will also publish the flattened pom -->
341
+ <updatePomFile >true</updatePomFile >
340
342
</configuration >
341
343
<executions >
342
344
<execution >
You can’t perform that action at this time.
0 commit comments