jMonkeyEngine dependencies with Gradle

102
July 03, 2022, at 8:50 PM

I am currently trying to implement a game written in java using jMonkey Graphic engine. My question is if it is possibile to load all the dependencies needed through Gradle, avoiding all *.zip files to be downloaded and added to the class path manually. Here my build.gradle.kts (written in kotlin):

plugins {
    java
    application
    id("com.github.johnrengelman.shadow") version "7.0.0"
}
repositories {
    mavenCentral()
}
val jme3 = "3.5.0-stable"
dependencies {
    testImplementation("org.junit.jupiter:junit-jupiter:5.7.2")
    implementation("com.google.guava:guava:30.1.1-jre")
    
    implementation("org.jmonkeyengine:jme3-core:$jme3")
    implementation("org.jmonkeyengine:jme3-desktop:$jme3") 
    implementation("org.jmonkeyengine:jme3-lwjgl:$jme3")
}
application {
    mainClass.set("it.unibo.oop.jmnkyTest.App")
}
java {
    sourceCompatibility = JavaVersion.VERSION_17
    targetCompatibility = JavaVersion.VERSION_17
}
tasks {
    withType<JavaCompile> {
        options.encoding = "UTF-8"
    }
    withType<Test> {
        useJUnitPlatform()
    }
}

The fact is that, even though the build has been successful, from Eclipse IDE I can see no sign of the jars which jMonkey needs. Here down beloew a picture of the project external dependencies after building the project:

Thank you.

Rent Charter Buses Company
READ ALSO
package com.sun.beans.finder does not exist openjdk

package com.sun.beans.finder does not exist openjdk

When a file is compiled that imports comsun

114
Why does the JScrollPane show up but not its scroll bar? [duplicate]

Why does the JScrollPane show up but not its scroll bar? [duplicate]

Here is my codeThe JScrollpanel shows up but now the scrollbar

91
How to split a string containing date and words?

How to split a string containing date and words?

I have a bunch of string in the format "02-01-2014 10:02:01:001 abcd efgh" If I want to split it as ["02-01-2014 10:02:01:001", "abcd efgh"], how do I do that?

99
DataDog trace JMS

DataDog trace JMS

I'am using the "dd-trace-ot" version 093

104