You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.3 KiB
50 lines
1.3 KiB
/* |
|
* 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") |
|
} |
|
|
|
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' |
|
}
|
|
|