-
Notifications
You must be signed in to change notification settings - Fork 566
Expand file tree
/
Copy pathbuild.gradle
More file actions
77 lines (76 loc) · 2.41 KB
/
build.gradle
File metadata and controls
77 lines (76 loc) · 2.41 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
//buildscript {
// repositories {
// mavenCentral()
// maven {
// allowInsecureProtocol = true
// url "https://plugins.gradle.org/m2/"
// }
// }
// dependencies {
// classpath 'org.openjfx:javafx-plugin:0.1.0'
// }
//}
plugins {
// id "org.gradlex.extra-java-module-info" version "1.7"
id "org.openjfx.javafxplugin" version "0.1.0"
id 'idea'
id 'application'
id 'maven-publish'
}
subprojects {
ext {
springBootVersion = "2.7.18"
lombokVersion = "1.18.42"
javafxVersion = "25.0.1"
}
description 'xJavaFxTool'
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'application'
apply plugin: 'maven-publish' // 引入maven插件
apply plugin: 'org.openjfx.javafxplugin'
// sourceCompatibility = 17
test {//跳过测试
enabled = false
}
repositories {
// maven {
// allowInsecureProtocol = true
// url 'https://maven.aliyun.com/repository/public'
// }
maven {
allowInsecureProtocol = true
url 'https://repo1.maven.org/maven2/'
}
maven {
allowInsecureProtocol = true
url 'https://jitpack.io'
}
mavenCentral()
}
// group = 'com.xwintop'
// version = '0.0.0.1'
[compileJava, compileTestJava, javadoc]*.options*.encoding = "UTF-8"
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.2'
compileOnly("org.projectlombok:lombok:$lombokVersion")
annotationProcessor "org.projectlombok:lombok:$lombokVersion"
testCompileOnly "org.projectlombok:lombok:$lombokVersion"
testAnnotationProcessor "org.projectlombok:lombok:$lombokVersion"
// api "org.openjfx:javafx-controls:$javafxVersion"
// api "org.openjfx:javafx-base:$javafxVersion"
// api "org.openjfx:javafx-graphics:$javafxVersion"
// api "org.openjfx:javafx-fxml:$javafxVersion"
// api "org.openjfx:javafx-swing:$javafxVersion"
// api "org.openjfx:javafx-media:$javafxVersion"
// api "org.openjfx:javafx-web:$javafxVersion"
}
javafx {
version = "21.0.9"
modules = ['javafx.controls', "javafx.graphics", 'javafx.fxml', 'javafx.media', 'javafx.swing', 'javafx.web']
// configuration = 'compileOnly'
}
// java {
// modularity.inferModulePath = true
// }
}