psambit9791 / jdsp

A Java Library for Digital Signal Processing
https://jdsp.dev
MIT License
240 stars 45 forks source link

Gradle and VSCode #42

Closed PeteSahad closed 1 year ago

PeteSahad commented 1 year ago

I was trying to add jdsp to my project but it didn't work.

This is my gradle file:

/*
 * This file was generated by the Gradle 'init' task.
 *
 * This generated file contains a sample Java application project to get you started.
 * For more details take a look at the 'Building Java & JVM projects' chapter in the Gradle
 * User Manual available at https://docs.gradle.org/7.3/userguide/building_java_projects.html
 */

plugins {
    // Apply the application plugin to add support for building a CLI application in Java.
    application
}

repositories {
    // Use Maven Central for resolving dependencies.
    mavenCentral()
    maven(url = "https://oss.sonatype.org/content/repositories/snapshots")
    maven(url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/")
}

dependencies {
    // Use JUnit Jupiter for testing.
    testImplementation("org.junit.jupiter:junit-jupiter:5.7.2")

    // This dependency is used by the application.
    implementation("com.google.guava:guava:30.1.1-jre")
    implementation("tech.tablesaw:tablesaw-core:0.43.1")
    implementation("com.github.psambit9791:jdsp:1.0.0")
    implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
}

application {
    // Define the main class for the application.
    mainClass.set("javagradlecage.App")
}

tasks.named<Test>("test") {
    // Use JUnit Platform for unit tests.
    useJUnitPlatform()
}

I'm not even getting any errors. Just nothing happens.

I tried adding the jar file too, but same result. If I add the jar and try to build grade it at least tells me that they are duplicates.

Am I missing something? I basically did the same with other dependencies (e.g. tablesaw) and they work fine.

PeteSahad commented 1 year ago

nvm. I forgot the almighty "clear the java language server workspace". My bad :'(