It's on the buildscript's classpath. So from the very top of my build 
script it looks like this:

import liquibase.Liquibase
import liquibase.database.DatabaseFactory
import liquibase.database.jvm.JdbcConnection
import liquibase.resource.DirectoryResourceAccessor
import org.jooq.codegen.DefaultGeneratorStrategy
import org.jooq.codegen.GenerationTool
import org.jooq.meta.jaxb.Configuration
import org.jooq.meta.jaxb.Database
import org.jooq.meta.jaxb.Generate
import org.jooq.meta.jaxb.Generator
import org.jooq.meta.jaxb.Jdbc
import org.jooq.meta.jaxb.Strategy
import org.jooq.meta.jaxb.Target
import org.jooq.meta.postgres.PostgresDatabase
import org.testcontainers.containers.PostgreSQLContainer
import java.sql.DriverManager

buildscript {
   repositories {
     mavenCentral()
   }

  dependencies {
    
classpath("org.testcontainers:testcontainers:${rootProject.extra["testcontainersBomVersion"]}")
    
classpath("org.testcontainers:junit-jupiter:${rootProject.extra["testcontainersBomVersion"]}")
    
classpath("org.testcontainers:postgresql:${rootProject.extra["testcontainersBomVersion"]}")
    
classpath("org.liquibase:liquibase-core:${rootProject.extra["liquibaseVersion"]}")
    classpath("org.jooq:jooq:${rootProject.extra["jooqVersion"]}")
    classpath("org.jooq:jooq-meta:${rootProject.extra["jooqVersion"]}")
    classpath("org.jooq:jooq-codegen:${rootProject.extra["jooqVersion"]}")
    
classpath("org.postgresql:postgresql:${rootProject.extra["postgresVersion"]}")
  }
}

tasks.register("jooqGenerate") {
   ...
}

On Thursday, February 22, 2024 at 10:31:27 PM UTC+9 Pasha Finkelshtein 
wrote:

> Thanks HOMERMAN,
>
> But where does this import come from? Where is the dependency declared?
> Is it in the usual dependencies section? With which scope?
>
>
>
> On Thursday 22 February 2024 at 14:24:36 UTC+1 HOMERMAN wrote:
>
>> @Pasha
>>
>> Sorry - I copy/pasted/genericized before I shared, and I think 
>> inadvertently snipped the import out along the way:
>>
>> import org.testcontainers.containers.PostgreSQLContainer
>>
>>
>> On Thursday, February 22, 2024 at 10:06:49 PM UTC+9 Pasha Finkelshtein 
>> wrote:
>>
>>> Thanks HOMERMAN,
>>>
>>> Where does the dependency on PostgreSQLContainer come from? I don't see 
>>> neither imports nor dependency declaration...
>>>
>>> Best,
>>> Pasha
>>>
>>

-- 
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/8e2b223b-5b6f-40cd-acb0-c2acb71728c8n%40googlegroups.com.

Reply via email to