|
40 | 40 | <groupId>org.slf4j</groupId> |
41 | 41 | <artifactId>slf4j-api</artifactId> |
42 | 42 | </dependency> |
| 43 | + <dependency> |
| 44 | + <!-- build arangodb-java-driver before so that we can use the javadoc artifact --> |
| 45 | + <groupId>com.arangodb</groupId> |
| 46 | + <artifactId>arangodb-java-driver</artifactId> |
| 47 | + <scope>provided</scope> |
| 48 | + </dependency> |
43 | 49 | <dependency> |
44 | 50 | <groupId>org.graalvm.sdk</groupId> |
45 | 51 | <artifactId>graal-sdk</artifactId> |
|
150 | 156 | </executions> |
151 | 157 | </plugin> |
152 | 158 | <plugin> |
153 | | - <groupId>org.apache.maven.plugins</groupId> |
154 | | - <artifactId>maven-dependency-plugin</artifactId> |
155 | | - <version>3.4.0</version> |
| 159 | + <groupId>org.codehaus.mojo</groupId> |
| 160 | + <artifactId>build-helper-maven-plugin</artifactId> |
| 161 | + <version>3.3.0</version> |
156 | 162 | <executions> |
157 | 163 | <execution> |
158 | | - <id>unpack-shaded-sources</id> |
| 164 | + <id>attach-javadocs</id> |
159 | 165 | <phase>package</phase> |
160 | 166 | <goals> |
161 | | - <goal>unpack</goal> |
| 167 | + <goal>attach-artifact</goal> |
162 | 168 | </goals> |
163 | 169 | <configuration> |
164 | | - <artifactItems> |
165 | | - <artifactItem> |
166 | | - <groupId>com.arangodb</groupId> |
167 | | - <artifactId>arangodb-java-driver-shaded</artifactId> |
| 170 | + <artifacts> |
| 171 | + <artifact> |
| 172 | + <file> |
| 173 | + ${project.parent.basedir}/driver/target/arangodb-java-driver-${project.version}-javadoc.jar |
| 174 | + </file> |
168 | 175 | <type>jar</type> |
169 | | - <classifier>sources</classifier> |
170 | | - <outputDirectory>${project.build.directory}/shaded-sources</outputDirectory> |
171 | | - </artifactItem> |
172 | | - </artifactItems> |
173 | | - </configuration> |
174 | | - </execution> |
175 | | - </executions> |
176 | | - </plugin> |
177 | | - <plugin> |
178 | | - <groupId>org.apache.maven.plugins</groupId> |
179 | | - <artifactId>maven-javadoc-plugin</artifactId> |
180 | | - <executions> |
181 | | - <execution> |
182 | | - <id>attach-javadocs</id> |
183 | | - <goals> |
184 | | - <goal>jar</goal> |
185 | | - </goals> |
186 | | - <configuration> |
187 | | - <sourcepath>${project.build.directory}/shaded-sources</sourcepath> |
188 | | - <excludePackageNames> |
189 | | - com.arangodb.shaded.**,**.internal**,com.arangodb.vst.**,com.arangodb.http.**,com.arangodb.velocypack.** |
190 | | - </excludePackageNames> |
| 176 | + <classifier>javadoc</classifier> |
| 177 | + </artifact> |
| 178 | + </artifacts> |
191 | 179 | </configuration> |
192 | 180 | </execution> |
193 | 181 | </executions> |
|
0 commit comments