@@ -36,8 +36,14 @@ dynamically ("bean materialization"), integrated with Jackson (although usable e
36
36
<osgi .export>
37
37
${project.groupId} .mrbean.*;version=${project.version}
38
38
</osgi .export>
39
- <!-- default import definitions should work fine -->
40
- <osgi .private>org.objectweb.asm.*</osgi .private>
39
+ <!-- 18-May-2023, tatu: As with Afterburner shading, should NOT need to expose via OSGi
40
+ -->
41
+ <osgi .import>org.objectweb.asm;resolution:=optional,
42
+ *
43
+ </osgi .import>
44
+ <!--
45
+ <osgi.private>com.fasterxml.jackson.module.afterburner.asm</osgi.private>
46
+ -->
41
47
</properties >
42
48
43
49
<dependencies >
@@ -89,11 +95,9 @@ ${project.groupId}.mrbean.*;version=${project.version}
89
95
<goal >shade</goal >
90
96
</goals >
91
97
<configuration >
92
- <shadedArtifactAttached >false</shadedArtifactAttached >
93
- <shadedArtifactId >foobar-shaded</shadedArtifactId >
94
98
<artifactSet >
95
99
<includes >
96
- <include >org.objectweb .asm:asm</include >
100
+ <include >org.ow2 .asm:asm</include >
97
101
</includes >
98
102
</artifactSet >
99
103
<relocations >
@@ -113,6 +117,33 @@ ${project.groupId}.mrbean.*;version=${project.version}
113
117
<groupId >org.moditect</groupId >
114
118
<artifactId >moditect-maven-plugin</artifactId >
115
119
</plugin >
120
+ <plugin >
121
+ <groupId >io.github.floverfelt</groupId >
122
+ <artifactId >find-and-replace-maven-plugin</artifactId >
123
+ <version >1.1.0</version >
124
+ <executions >
125
+ <execution >
126
+ <id >exec</id >
127
+ <phase >package</phase >
128
+ <goals >
129
+ <goal >find-and-replace</goal >
130
+ </goals >
131
+ <configuration >
132
+ <replacementType >file-contents</replacementType >
133
+ <baseDir >${basedir} </baseDir >
134
+ <findRegex ><![CDATA[ <modelVersion>4.0.0</modelVersion>]]> </findRegex >
135
+ <fileMask >dependency-reduced-pom.xml</fileMask >
136
+ <replaceValue ><![CDATA[ <!-- This module was also published with a richer model, Gradle metadata, -->
137
+ <!-- which should be used instead. Do not delete the following line which -->
138
+ <!-- is to indicate to Gradle or any Gradle module metadata file consumer -->
139
+ <!-- that they should prefer consuming it instead. -->
140
+ <!-- do_not_remove: published-with-gradle-metadata -->
141
+ <modelVersion>4.0.0</modelVersion>]]> </replaceValue >
142
+ <recursive >false</recursive >
143
+ </configuration >
144
+ </execution >
145
+ </executions >
146
+ </plugin >
116
147
</plugins >
117
148
</build >
118
149
</project >
0 commit comments