Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module gson not found #455

Open
conradbekondo opened this issue Dec 27, 2023 · 1 comment
Open

Module gson not found #455

conradbekondo opened this issue Dec 27, 2023 · 1 comment

Comments

@conradbekondo
Copy link

I'm trying to use this library, but when I run the application, I get this error

image

Meanwhile my module-info.java looks like this

image

I have my build.gradle file look like this

plugins {
    id 'java'
    id 'application'
    id 'org.javamodularity.moduleplugin' version '1.8.12'
    id 'org.openjfx.javafxplugin' version '0.0.13'
    id 'org.beryx.jlink' version '2.25.0'
//    id 'com.opencastsoftware.gradle.buildinfo' version '0.3.0'
}

group 'ca.qbb'
version '1.0-SNAPSHOT'

repositories {
    mavenCentral()
    maven {
        url "https://sandec.jfrog.io/artifactory/repo"
    }
}

ext {
    junitVersion = '5.9.2'
}

sourceCompatibility = '17'
targetCompatibility = '17'

tasks.withType(JavaCompile) {
    options.encoding = 'UTF-8'
}

application {
    mainModule = 'ca.qbb.qbbimporter'
    mainClass = 'ca.qbb.qbbimporter.Launcher'
}

javafx {
    version = '21'
    modules = ['javafx.controls', 'javafx.fxml']
}

dependencies {
    implementation('org.controlsfx:controlsfx:11.1.2')
    implementation("org.xerial:sqlite-jdbc:3.44.1.0")
    implementation("org.slf4j:slf4j-api:2.0.9")
    implementation('net.synedra:validatorfx:0.4.0') {
        exclude(group: 'org.openjfx')
    }
//    implementation("com.microsoft.alm:auth-secure-storage:0.6.4")
    implementation('org.kordamp.ikonli:ikonli-javafx:12.3.1')
    implementation 'org.projectlombok:lombok:1.18.30'
    implementation("io.reactivex.rxjava3:rxjava:3.1.8")
    implementation("commons-io:commons-io:2.15.1")
    implementation('com.dlsc.gemsfx:gemsfx:1.90.0')
    implementation("org.apache.commons:commons-lang3:3.14.0")
    implementation('com.dlsc.preferencesfx:preferencesfx-core:11.8.0')

    testImplementation("org.junit.jupiter:junit-jupiter-api:${junitVersion}")
    testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:${junitVersion}")

    runtimeOnly("ch.qos.logback:logback-classic:1.4.14")

    annotationProcessor("org.projectlombok:lombok:1.18.30")

}

test {
    useJUnitPlatform()
}

jlink {
    imageZip = project.file("${buildDir}/distributions/app-${javafx.platform.classifier}.zip")
    options = ['--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages']
    launcher {
        name = "${group}-${version}"
    }
}

jlinkZip {
    group = 'distribution'
}

The classpath looks like this
image

The gson dependency seems to be available, but it's not available at runtime. I don't know what I'm doing wrong. Please help

@bartekc7
Copy link

bartekc7 commented Jan 3, 2024

The last version that works for me is 11.12.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants