lukas-krecan / ShedLock

Distributed lock for your scheduled tasks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hard coded org.jooq depedency conflicts with org.jooq.pro

MelleD opened this issue · comments

We use jooq pro dependency

      <dependency>
         <groupId>org.jooq.pro</groupId>
         <artifactId>jooq</artifactId>
      </dependency>

This conflicts with the jooq free variant in jooq provider

        <dependency>
            <groupId>org.jooq</groupId>
            <artifactId>jooq</artifactId>
            <version>3.18.7</version>
        </dependency>

The dependency should possibly be provided or optional.

See further discussion with Lucas here:
jOOQ/jOOQ#15827

Current solution is to override it. Similar like in spring boot with jetty.
Maybe you can add this to the documentation it that the recommended way

   <dependencyManagement>
         <dependency>
            <groupId>net.javacrumbs.shedlock</groupId>
            <artifactId>shedlock-provider-jooq</artifactId>
            <version>${spring-shedlock-version}</version>
            <!-- Exclude the jOOQ Open Source Edition -->
            <exclusions>
               <exclusion>
                  <groupId>org.jooq</groupId>
                  <artifactId>jooq</artifactId>
               </exclusion>
            </exclusions>
         </dependency>
   </dependencyManagement>