JetBrains / Exposed

Kotlin SQL Framework
http://jetbrains.github.io/Exposed/
Apache License 2.0
8.35k stars 695 forks source link

Support jigsaw module #1088

Open SchweinchenFuntik opened 3 years ago

SchweinchenFuntik commented 3 years ago

when adding the exposed dependency, when the application starts, it starts giving an error (see below), trying to exclude nothing helps

Error occurred during initialization of boot layer
java.lang.LayerInstantiationException: Package kotlin in both module mymodule.merged.module and module kotlin.stdlib
plugins {
    kotlin("jvm") version "1.4.10"
    application
    id("org.openjfx.javafxplugin") version "0.0.9"
    id("org.beryx.jlink") version "2.22.2"
}
SchweinchenFuntik commented 3 years ago

it was my mistake, I did not exclude correctly: I did exclude(module = "kotlin.stdlib") and exclude(group = "org.jetbrains.kotlin"). Only the option with the module was needed.

But the question remains: Will exposed be split into modules?

Tapac commented 3 years ago

@SchweinchenFuntik , it's already split into modules. Do you have any problems with the current modules?

SchweinchenFuntik commented 3 years ago

no, I managed to start in compatibility mode, but will there be support for them?

SchweinchenFuntik commented 3 years ago

@Tapac I'm not talking about these modules, but about the jigsaw project

HollisMeynell commented 1 month ago

@SchweinchenFuntik , it's already split into modules. Do you have any problems with the current modules?

Java 9 Platform Module System, using JPMS allows specifying provided services when developing dependency libraries, which can reduce dependency conflicts between projects. Additionally, it enables jlink to work, allowing for a smaller packaged product by customizing the JREwill there be support for them?