-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
68 lines (58 loc) · 1.45 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
65
66
67
68
plugins {
id 'maven-publish'
id 'application'
id 'org.jetbrains.kotlin.jvm' version '1.7.20'
id 'org.openjfx.javafxplugin' version '0.0.12'
}
group = 'ink.bluecloud'
version = '1.3-SNAPSHOT'
repositories {
mavenLocal()
maven {
url 'https://repo.huaweicloud.com/repository/maven/'
}
maven {
url 'https://maven.aliyun.com/repository/central/'
}
maven {
url 'https://maven.aliyun.com/repository/public/'
}
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots'
}
mavenCentral()
}
dependencies {
testImplementation 'org.jetbrains.kotlin:kotlin-test'
testImplementation group: 'no.tornado', name: 'tornadofx', version: '2.0.0-SNAPSHOT'
}
javafx {
version = '19'
modules = ['javafx.controls']
}
test {
useJUnitPlatform()
}
compileKotlin {
kotlinOptions.jvmTarget = '17'
// kotlinOptions.useK2 = true
}
compileTestKotlin {
kotlinOptions.jvmTarget = '17'
}
application {
mainClassName = 'MainKt'
}
publishing {
publications {
// 这个mavenJava可以随便填,只是一个任务名字而已
// MavenPublication必须有,这个是调用的任务类
mavenJava(MavenPublication) {
// 这里头是artifacts的配置信息,不填会采用默认的
groupId = 'ink.bluecloud'
artifactId = 'elementfx'
version = '1.3'
from components.java
}
}
}