All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.monosoul.jooq.util.CodegenClasspathAwareClassLoaders.kt Maven / Gradle / Ivy

There is a newer version: 6.1.14
Show newest version
package dev.monosoul.jooq.util

import org.gradle.api.file.FileCollection
import java.net.URLClassLoader

internal class CodegenClasspathAwareClassLoaders(
    val buildscriptExclusive: URLClassLoader,
    val buildscriptInclusive: URLClassLoader,
) {
    companion object {
        fun from(classpath: FileCollection) = classpath.map {
            it.toURI().toURL()
        }.toTypedArray().let {
            CodegenClasspathAwareClassLoaders(
                buildscriptExclusive = URLClassLoader(it),
                buildscriptInclusive = URLClassLoader(it, CodegenClasspathAwareClassLoaders::class.java.classLoader)
            )
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy