-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
64 lines (47 loc) · 1.44 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
buildscript {
dependencies {
classpath group: 'de.dynamicfiles.projects.gradle.plugins', name: 'javafx-gradle-plugin', version: '8.8.2'
}
repositories {
mavenLocal()
mavenCentral()
}
}
plugins {
id 'java'
}
group 'WorkingHard'
version '1.3'
sourceCompatibility = 1.8
//javafx {
// version = "11.0.1" // 请使用你安装的 JavaFX 版本
// modules = [ 'javafx.controls', 'javafx.fxml' ] // 根据你的项目需要添加所需的模块
//}
repositories {
maven { url 'https://maven.aliyun.com/repository/public' }
mavenLocal()
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
// https://mvnrepository.com/artifact/com.typesafe.akka/akka-actor
compile group: 'com.typesafe.akka', name: 'akka-actor_2.12', version: '2.5.22'
compile fileTree(dir: 'libs', includes: ['*.jar'])
compile("com.squareup.okhttp3:okhttp:4.9.0")
compile 'com.alibaba:fastjson:1.2.73'
implementation 'org.openjfx:javafx-controls:11.0.1' // 根据需要添加其他 JavaFX 依赖项
implementation 'org.openjfx:javafx-fxml:11.0.1'
}
compileJava {
options.encoding = "UTF-8"
}
apply plugin: 'javafx-gradle-plugin'
jfx {
verbose = true
deployDir = "src/main/deploy/"
// minimal requirement for jfxJar-task
mainClass = 'com.eye.Main'
// minimal requirement for jfxNative-task
vendor = 'houyafei'
appName = "WorkHard"
}