Skip to content

Commit e187f43

Browse files
committed
Publish sources jar and javadoc jar
Currently, IntelliJ and other IDEs aren't able to automatically jump to source or documentation for this library, since those jars aren't published. We should get a nice developer experience improvement by providing these jars. This follows the example configuration in https://github.com/jitpack/maven-simple
1 parent 1382890 commit e187f43

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

core/pom.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,30 @@
150150
<autoReleaseAfterClose>true</autoReleaseAfterClose>
151151
</configuration>
152152
</plugin>
153+
<plugin>
154+
<groupId>org.apache.maven.plugins</groupId>
155+
<artifactId>maven-source-plugin</artifactId>
156+
<executions>
157+
<execution>
158+
<id>attach-sources</id>
159+
<goals>
160+
<goal>jar</goal>
161+
</goals>
162+
</execution>
163+
</executions>
164+
</plugin>
165+
<plugin>
166+
<groupId>org.apache.maven.plugins</groupId>
167+
<artifactId>maven-javadoc-plugin</artifactId>
168+
<executions>
169+
<execution>
170+
<id>attach-javadocs</id>
171+
<goals>
172+
<goal>jar</goal>
173+
</goals>
174+
</execution>
175+
</executions>
176+
</plugin>
153177
</plugins>
154178
</build>
155179
<dependencies>

0 commit comments

Comments
 (0)