Skip to content

Commit

Permalink
Merge pull request #27516 from evanchooly/dokka-jar
Browse files Browse the repository at this point in the history
Change the dokka output format from the javadoc style to the native dokka style
  • Loading branch information
geoand authored Aug 29, 2022
2 parents 4ea1c65 + 38f2356 commit 9ce8749
Show file tree
Hide file tree
Showing 21 changed files with 81 additions and 271 deletions.
20 changes: 19 additions & 1 deletion build-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@
<id>dokka</id>
<phase>package</phase>
<goals>
<goal>javadocJar</goal>
<goal>dokka</goal>
</goals>
</execution>
</executions>
Expand All @@ -971,6 +971,24 @@
</externalDocumentationLinks>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>dokka-jar</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<classifier>javadoc</classifier>
<classesDirectory>${project.build.directory}/dokka</classesDirectory>
<skipIfEmpty>true</skipIfEmpty>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import javax.persistence.Id
*
* To use it, get access to a JPA EntityManager via injection.
*
* {@code
* ```kotlin
* @Inject
* lateinit var em:EntityManager;
*
Expand All @@ -20,7 +20,7 @@ import javax.persistence.Id
*
* val entities:List<MyKotlinEntity> = em.createQuery("from MyEntity", MyKotlinEntity::class.java).getResultList()
* }
* }
* ```
*/
@Entity
class MyKotlinEntity {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ import javax.ws.rs.QueryParam
/**
* To use it via injection.
*
* {@code
* ```kotlin
* @Inject
* @RestClient
* lateinit var myRemoteService: MyRemoteService
*
* fun doSomething() {
* val restClientExtensions = myRemoteService.getExtensionsById("io.quarkus:quarkus-rest-client")
* }
* }
* ```
*/
@RegisterRestClient(baseUri = "https://stage.code.quarkus.io/api")
interface MyRemoteService {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ interface PanacheCompanion<Entity : PanacheEntityBase>: PanacheCompanionBase<Ent
interface PanacheCompanionBase<Entity : PanacheEntityBase, Id: Any> {

/**
* Returns the [EntityManager] for the <Entity> for extra operations (eg. CriteriaQueries)
* Returns the [EntityManager] for the [Entity] for extra operations (eg. CriteriaQueries)
*
* @return the [EntityManager] for the <Entity>
* @return the [EntityManager] for the [Entity]
*/
@GenerateBridge
fun getEntityManager(): EntityManager = throw implementationInjectionMissing()
Expand Down Expand Up @@ -56,7 +56,6 @@ interface PanacheCompanionBase<Entity : PanacheEntityBase, Id: Any> {
* @param query a query string
* @param params optional sequence of indexed parameters
* @return a new [PanacheQuery] instance for the given query
* @see [PanacheCompanion.find]
* @see [PanacheCompanion.list]
* @see [PanacheCompanion.stream]
*/
Expand All @@ -70,7 +69,6 @@ interface PanacheCompanionBase<Entity : PanacheEntityBase, Id: Any> {
* @param sort the sort strategy to use
* @param params optional sequence of indexed parameters
* @return a new [PanacheQuery] instance for the given query
* @see [PanacheCompanion.find]
* @see [PanacheCompanion.list]
* @see [PanacheCompanion.stream]
*/
Expand All @@ -83,7 +81,6 @@ interface PanacheCompanionBase<Entity : PanacheEntityBase, Id: Any> {
* @param query a query string
* @param params [Map] of named parameters
* @return a new [PanacheQuery] instance for the given query
* @see [PanacheCompanion.find]
* @see [PanacheCompanion.list]
* @see [PanacheCompanion.stream]
*/
Expand All @@ -97,7 +94,6 @@ interface PanacheCompanionBase<Entity : PanacheEntityBase, Id: Any> {
* @param sort the sort strategy to use
* @param params [Map] of indexed parameters
* @return a new [PanacheQuery] instance for the given query
* @see [PanacheCompanion.find]
* @see [PanacheCompanion.list]
* @see [PanacheCompanion.stream]
*/
Expand All @@ -110,7 +106,6 @@ interface PanacheCompanionBase<Entity : PanacheEntityBase, Id: Any> {
* @param query a query string
* @param params Parameters of named parameters
* @return a new [PanacheQuery] instance for the given query
* @see [PanacheCompanion.find]
* @see [PanacheCompanion.list]
* @see [PanacheCompanion.stream]
*/
Expand All @@ -124,7 +119,6 @@ interface PanacheCompanionBase<Entity : PanacheEntityBase, Id: Any> {
* @param sort the sort strategy to use
* @param params Parameters of indexed parameters
* @return a new [PanacheQuery] instance for the given query
* @see [PanacheCompanion.find]
* @see [PanacheCompanion.list]
* @see [PanacheCompanion.stream]
*/
Expand All @@ -135,7 +129,6 @@ interface PanacheCompanionBase<Entity : PanacheEntityBase, Id: Any> {
* Find all entities of this type.
*
* @return a new [PanacheQuery] instance to find all entities of this type.
* @see [PanacheCompanion.findAll]
* @see [PanacheCompanion.listAll]
* @see [PanacheCompanion.streamAll]
*/
Expand All @@ -147,7 +140,6 @@ interface PanacheCompanionBase<Entity : PanacheEntityBase, Id: Any> {
*
* @param sort the sort order to use
* @return a new [PanacheQuery] instance to find all entities of this type.
* @see [PanacheCompanion.findAll]
* @see [PanacheCompanion.listAll]
* @see [PanacheCompanion.streamAll]
*/
Expand All @@ -161,7 +153,6 @@ interface PanacheCompanionBase<Entity : PanacheEntityBase, Id: Any> {
* @param query a query string
* @param params optional sequence of indexed parameters
* @return a [List] containing all results, without paging
* @see [PanacheCompanion.list]
* @see [PanacheCompanion.find]
* @see [PanacheCompanion.stream]
*/
Expand All @@ -176,7 +167,6 @@ interface PanacheCompanionBase<Entity : PanacheEntityBase, Id: Any> {
* @param sort the sort strategy to use
* @param params optional sequence of indexed parameters
* @return a [List] containing all results, without paging
* @see [PanacheCompanion.list]
* @see [PanacheCompanion.find]
* @see [PanacheCompanion.stream]
*/
Expand All @@ -190,7 +180,6 @@ interface PanacheCompanionBase<Entity : PanacheEntityBase, Id: Any> {
* @param query a query string
* @param params [Map] of named parameters
* @return a [List] containing all results, without paging
* @see [PanacheCompanion.list]
* @see [PanacheCompanion.find]
* @see [PanacheCompanion.stream]
*/
Expand All @@ -205,7 +194,6 @@ interface PanacheCompanionBase<Entity : PanacheEntityBase, Id: Any> {
* @param sort the sort strategy to use
* @param params [Map] of indexed parameters
* @return a [List] containing all results, without paging
* @see [PanacheCompanion.list]
* @see [PanacheCompanion.find]
* @see [PanacheCompanion.stream]
*/
Expand All @@ -219,7 +207,6 @@ interface PanacheCompanionBase<Entity : PanacheEntityBase, Id: Any> {
* @param query a query string
* @param params Parameters of named parameters
* @return a [List] containing all results, without paging
* @see [PanacheCompanion.list]
* @see [PanacheCompanion.find]
* @see [PanacheCompanion.stream]
*/
Expand All @@ -234,7 +221,6 @@ interface PanacheCompanionBase<Entity : PanacheEntityBase, Id: Any> {
* @param sort the sort strategy to use
* @param params Parameters of indexed parameters
* @return a [List] containing all results, without paging
* @see [PanacheCompanion.list]
* @see [PanacheCompanion.find]
* @see [PanacheCompanion.stream]
*/
Expand All @@ -246,7 +232,6 @@ interface PanacheCompanionBase<Entity : PanacheEntityBase, Id: Any> {
* This method is a shortcut for `findAll().list()`.
*
* @return a [List] containing all results, without paging
* @see [PanacheCompanion.listAll]
* @see [PanacheCompanion.findAll]
* @see [PanacheCompanion.streamAll]
*/
Expand All @@ -259,7 +244,6 @@ interface PanacheCompanionBase<Entity : PanacheEntityBase, Id: Any> {
*
* @param sort the sort order to use
* @return a [List] containing all results, without paging
* @see [PanacheCompanion.listAll]
* @see [PanacheCompanion.findAll]
* @see [PanacheCompanion.streamAll]
*/
Expand All @@ -275,7 +259,6 @@ interface PanacheCompanionBase<Entity : PanacheEntityBase, Id: Any> {
* @param query a query string
* @param params optional sequence of indexed parameters
* @return a Stream containing all results, without paging
* @see [PanacheCompanion.stream]
* @see [PanacheCompanion.find]
* @see [PanacheCompanion.list]
*/
Expand All @@ -292,7 +275,6 @@ interface PanacheCompanionBase<Entity : PanacheEntityBase, Id: Any> {
* @param sort the sort strategy to use
* @param params optional sequence of indexed parameters
* @return a Stream containing all results, without paging
* @see [PanacheCompanion.stream]
* @see [PanacheCompanion.find]
* @see [PanacheCompanion.list]
*/
Expand All @@ -308,7 +290,6 @@ interface PanacheCompanionBase<Entity : PanacheEntityBase, Id: Any> {
* @param query a query string
* @param params [Map] of named parameters
* @return a Stream containing all results, without paging
* @see [PanacheCompanion.stream]
* @see [PanacheCompanion.find]
* @see [PanacheCompanion.list]
*/
Expand All @@ -325,7 +306,6 @@ interface PanacheCompanionBase<Entity : PanacheEntityBase, Id: Any> {
* @param sort the sort strategy to use
* @param params [Map] of indexed parameters
* @return a Stream containing all results, without paging
* @see [PanacheCompanion.stream]
* @see [PanacheCompanion.find]
* @see [PanacheCompanion.list]
*/
Expand All @@ -341,7 +321,6 @@ interface PanacheCompanionBase<Entity : PanacheEntityBase, Id: Any> {
* @param query a query string
* @param params Parameters of named parameters
* @return a Stream containing all results, without paging
* @see [PanacheCompanion.stream]
* @see [PanacheCompanion.find]
* @see [PanacheCompanion.list]
*/
Expand All @@ -358,7 +337,6 @@ interface PanacheCompanionBase<Entity : PanacheEntityBase, Id: Any> {
* @param sort the sort strategy to use
* @param params Parameters of indexed parameters
* @return a Stream containing all results, without paging
* @see [PanacheCompanion.stream]
* @see [PanacheCompanion.find]
* @see [PanacheCompanion.list]
*/
Expand All @@ -372,7 +350,6 @@ interface PanacheCompanionBase<Entity : PanacheEntityBase, Id: Any> {
* Without a transaction, the underlying cursor can be closed before the end of the stream.
*
* @return a Stream containing all results, without paging
* @see [PanacheCompanion.streamAll]
* @see [PanacheCompanion.findAll]
* @see [PanacheCompanion.listAll]
*/
Expand All @@ -387,7 +364,6 @@ interface PanacheCompanionBase<Entity : PanacheEntityBase, Id: Any> {
*
* @param sort the sort order to use
* @return a Stream containing all results, without paging
* @see [PanacheCompanion.streamAll]
* @see [PanacheCompanion.findAll]
* @see [PanacheCompanion.listAll]
*/
Expand All @@ -398,7 +374,6 @@ interface PanacheCompanionBase<Entity : PanacheEntityBase, Id: Any> {
* Counts the number of this type of entity in the database.
*
* @return the number of this type of entity in the database.
* @see [PanacheCompanion.count]
*/
@GenerateBridge
fun count(): Long = throw implementationInjectionMissing()
Expand All @@ -409,7 +384,6 @@ interface PanacheCompanionBase<Entity : PanacheEntityBase, Id: Any> {
* @param query a query string
* @param params optional sequence of indexed parameters
* @return the number of entities counted.
* @see [PanacheCompanion.count]
*/
@GenerateBridge
fun count(query: String, vararg params: Any): Long = throw implementationInjectionMissing()
Expand All @@ -420,7 +394,6 @@ interface PanacheCompanionBase<Entity : PanacheEntityBase, Id: Any> {
* @param query a query string
* @param params [Map] of named parameters
* @return the number of entities counted.
* @see [PanacheCompanion.count]
*/
@GenerateBridge
fun count(query: String, params: Map<String, Any>): Long = throw implementationInjectionMissing()
Expand All @@ -431,7 +404,6 @@ interface PanacheCompanionBase<Entity : PanacheEntityBase, Id: Any> {
* @param query a query string
* @param params Parameters of named parameters
* @return the number of entities counted.
* @see [PanacheCompanion.count]
*/
@GenerateBridge
fun count(query: String, params: Parameters): Long = throw implementationInjectionMissing()
Expand All @@ -458,7 +430,6 @@ interface PanacheCompanionBase<Entity : PanacheEntityBase, Id: Any> {
* @param params optional sequence of indexed parameters
* @return the number of entities deleted.
* @see [PanacheCompanion.deleteAll]
* @see [PanacheCompanion.delete]
*/
@GenerateBridge
fun delete(query: String, vararg params: Any): Long = throw implementationInjectionMissing()
Expand All @@ -473,7 +444,6 @@ interface PanacheCompanionBase<Entity : PanacheEntityBase, Id: Any> {
* @param params [Map] of named parameters
* @return the number of entities deleted.
* @see [PanacheCompanion.deleteAll]
* @see [PanacheCompanion.delete]
*/
@GenerateBridge
fun delete(query: String, params: Map<String, Any>): Long = throw implementationInjectionMissing()
Expand All @@ -488,7 +458,6 @@ interface PanacheCompanionBase<Entity : PanacheEntityBase, Id: Any> {
* @param params Parameters of named parameters
* @return the number of entities deleted.
* @see [PanacheCompanion.deleteAll]
* @see [PanacheCompanion.delete]
*/
@GenerateBridge
fun delete(query: String, params: Parameters): Long = throw implementationInjectionMissing()
Expand All @@ -506,7 +475,6 @@ interface PanacheCompanionBase<Entity : PanacheEntityBase, Id: Any> {
* Persist all given entities.
*
* @param entities the entities to persist
* @see [PanacheCompanion.persist]
*/
fun persist(entities: Iterable<Entity>) {
INSTANCE.persist(entities)
Expand All @@ -516,7 +484,6 @@ interface PanacheCompanionBase<Entity : PanacheEntityBase, Id: Any> {
* Persist all given entities.
*
* @param entities the entities to persist
* @see [PanacheCompanion.persist]
*/
fun persist(entities: Stream<Entity>) {
INSTANCE.persist(entities)
Expand All @@ -526,7 +493,6 @@ interface PanacheCompanionBase<Entity : PanacheEntityBase, Id: Any> {
* Persist all given entities.
*
* @param entities the entities to persist
* @see [PanacheCompanion.persist]
*/
fun persist(firstEntity: Entity, vararg entities: Entity) {
INSTANCE.persist(firstEntity, *entities)
Expand All @@ -538,7 +504,6 @@ interface PanacheCompanionBase<Entity : PanacheEntityBase, Id: Any> {
* @param query a query string
* @param params optional sequence of indexed parameters
* @return the number of entities updated.
* @see [PanacheCompanion.update]
*/
@GenerateBridge
fun update(query: String, vararg params: Any): Int = throw implementationInjectionMissing()
Expand All @@ -549,7 +514,6 @@ interface PanacheCompanionBase<Entity : PanacheEntityBase, Id: Any> {
* @param query a query string
* @param params [Map] of named parameters
* @return the number of entities updated.
* @see [PanacheCompanion.update]
*/
@GenerateBridge
fun update(query: String, params: Map<String, Any>): Int = throw implementationInjectionMissing()
Expand All @@ -560,7 +524,6 @@ interface PanacheCompanionBase<Entity : PanacheEntityBase, Id: Any> {
* @param query a query string
* @param params Parameters of named parameters
* @return the number of entities updated.
* @see [PanacheCompanion.update]
*/
@GenerateBridge
fun update(query: String, params: Parameters): Int = throw implementationInjectionMissing()
Expand Down
Loading

0 comments on commit 9ce8749

Please sign in to comment.