78 lines
2.0 KiB
Groovy
78 lines
2.0 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'application'
|
|
// id 'org.openjfx.javafxplugin' version '0.0.13'
|
|
}
|
|
|
|
group = 'org.branulf'
|
|
version = '1.14.514.002'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
|
|
maven { url 'https://oss.sonatype.org/content/repositories/releases' }
|
|
}
|
|
|
|
//javafx {
|
|
// version = "17"
|
|
// modules = [ 'javafx.controls', 'javafx.media' ]
|
|
//}
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
|
|
mainClassName = 'org.branulf.nevergonnaplayer.MainApplication'
|
|
|
|
//dependencies {
|
|
// testImplementation platform('org.junit:junit-bom:5.10.0')
|
|
// testImplementation 'org.junit.jupiter:junit-jupiter'
|
|
//
|
|
// implementation 'com.google.api-client:google-api-client:1.32.1'
|
|
// implementation 'com.google.apis:google-api-services-youtube:v3-rev20210915-1.32.1'
|
|
// implementation 'com.google.oauth-client:google-oauth-client-jetty:1.32.1' // 如果需要OAuth认证
|
|
// implementation 'com.google.code.gson:gson:2.8.9' // 可能需要用于JSON处理
|
|
//
|
|
// implementation group: 'uk.co.caprica', name: 'vlcj', version: '4.7.1' // 示例版本,请查阅最新版
|
|
// implementation group: 'uk.co.caprica', name: 'vlcj-javafx', version: '1.1.0' // JavaFX集成模块
|
|
//
|
|
//
|
|
//}
|
|
|
|
//application {
|
|
// mainClassName = 'org.branulf.nevergonnaplayer.MainApplication'
|
|
//// mainModule = 'org.branulf.nevergonnaplayer'
|
|
//}
|
|
|
|
//tasks.named('jlink') {
|
|
// // options = ['--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages']
|
|
// // launcher {
|
|
// // name = 'run-my-video'
|
|
// // }
|
|
//}
|
|
|
|
|
|
|
|
jar {
|
|
manifest {
|
|
attributes 'Main-Class': 'org.branulf.nevergonnaplayer.MainApplication'
|
|
}
|
|
from {
|
|
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
|
|
}
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
|
}
|
|
|
|
tasks.withType(JavaCompile) {
|
|
options.encoding = 'UTF-8'
|
|
}
|
|
|
|
// tasks.named('jlink') {
|
|
// dependsOn tasks.named('javafx')
|
|
// }
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
} |