/* * 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.5.1/userguide/building_java_projects.html */ plugins { // Apply the application plugin to add support for building a CLI application in Java. id 'application' } repositories { // Use Maven Central for resolving dependencies. mavenCentral() } dependencies { implementation 'com.google.apis:google-api-services-youtube:v3-rev222-1.25.0' // Use JUnit test framework. testImplementation 'junit:junit:4.13.2' // This dependency is used by the application. implementation("net.dv8tion:JDA:5.0.0-alpha.19") implementation 'se.michaelthelin.spotify:spotify-web-api-java:8.3.4' } task fatJar(type: Jar) { manifest { attributes 'Main-Class': 'Main' } from { configurations.compile.collect { dependency -> if (dependency.directory) { return dependency } else { return zipTree(dependency) } } } with jar } application { // Define the main class for the application. mainClass = 'Main' }