So, in the proguard rules

-keep interface org.jooq.** { <methods>; }
-keep class org.jooq.** { *; }

Seems to work!

Kevin

On Sunday, June 9, 2024 at 12:40:36 PM UTC+1 Kevin Jones wrote:

> Does anybody here have any experience using JOOQ with Proguard?
>
>
> First I have these warnings like this:
>
> Warning: io.r2dbc.spi.NonNullApi: can't find referenced class 
> javax.annotation.Nonnull
> Warning: io.r2dbc.spi.NonNullApi: can't find referenced class 
> javax.annotation.meta.TypeQualifierDefault
> Warning: io.r2dbc.spi.Nullable: can't find referenced class 
> javax.annotation.Nonnull
> Warning: io.r2dbc.spi.Nullable: can't find referenced class 
> javax.annotation.meta.When
> Warning: io.r2dbc.spi.Nullable: can't find referenced class 
> javax.annotation.meta.TypeQualifierNickname
>
> Warning: org.jooq.impl.DSL: can't find referenced class 
> org.jetbrains.annotations.ApiStatus$Obsolete
> Warning: org.jooq.impl.DSL: can't find referenced class 
> org.jetbrains.annotations.ApiStatus$Obsolete
>
> Warning: org.jooq.impl.JPAConverter: can't find referenced class 
> jakarta.persistence.AttributeConverter
>
> Warning: org.jooq.impl.Tools: can't find referenced class 
> jakarta.persistence.Column
> Warning: org.jooq.impl.Tools: can't find referenced class 
> jakarta.persistence.Column
> Warning: org.jooq.impl.Tools: can't find referenced class 
> jakarta.persistence.Id
> Warning: org.jooq.impl.Tools: can't find referenced class 
> jakarta.persistence.Entity
> Warning: org.jooq.impl.Tools: can't find referenced class 
> jakarta.persistence.Table
> Warning: org.jooq.impl.Tools: can't find referenced class 
> jakarta.persistence.Column
> Warning: org.jooq.impl.Tools: can't find referenced class 
> jakarta.persistence.Column
> Warning: org.jooq.impl.Tools: can't find referenced class 
> jakarta.persistence.Id
> Warning: org.jooq.impl.Tools: can't find referenced class 
> jakarta.persistence.Column
>
> Warning: org.slf4j.LoggerFactory: can't find referenced class 
> org.slf4j.impl.StaticLoggerBinder
> etc...
>
> Some of these I'm pretty sure are safe to ignore (the slf4j ones for 
> example), others I'm not so sure about (the jakarta.persistence warnings). 
>
> However if I do disable the warnings then I can run them app but I get:
>
> Exception in thread "main" java.lang.IncompatibleClassChangeError: class 
> org.jooq.FieldOrConstraint cannot extend sealed interface 
> org.jooq.TableElement
>
>
> This is running a KMP application on the desktop (if that helps)
>
> Any help would be greatly appreciated!
>
> -- 
> Kevin Jones
> KnowledgeSpike
>

-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jooq-user/4e6da599-30f0-45da-9dba-983d6adcc336n%40googlegroups.com.

Reply via email to