-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
117 lines (102 loc) · 2.69 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
plugins {
id 'java-library'
id 'com.jfrog.bintray' version '1.8.4'
id 'org.openjfx.javafxplugin' version '0.0.8'
id 'maven-publish'
}
repositories {
jcenter()
}
group = 'com.github.ele115'
version = '2.4.0-beta-3'
sourceCompatibility = 1.11
targetCompatibility = 1.11
dependencies {
implementation 'org.bytedeco:javacv-platform:1.5.2'
implementation 'com.github.b1f6c1c4:mac-to-ip:1.0.0'
}
sourceSets {
main {
resources {
srcDirs "src/main/resources"
}
}
}
javafx {
version = "11"
modules = [ 'javafx.controls', 'javafx.swing' ]
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
javadoc.failOnError = false
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
def pomConfig = {
licenses {
license {
name 'Apache License, Version 2.0'
url 'https://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
developers {
developer {
id 'b1f6c1c4'
url 'https://github.com/b1f6c1c4'
name 'Jinzheng Tu'
email '[email protected]'
}
}
scm {
url 'https://github.com/ELE115/tello-wrapper'
}
}
publishing {
publications {
mavenPublication(MavenPublication) {
from components.java
artifact sourcesJar {
classifier 'sources'
}
artifact javadocJar {
classifier 'javadoc'
}
groupId 'com.github.ele115'
artifactId 'tello-wrapper'
version project.version
pom.withXml {
def root = asNode()
root.appendNode('description', 'Library to connect to a ryze tello drone (sdk commands, state updates, video stream)')
root.appendNode('name', 'tello-wrapper')
root.appendNode('url', 'https://github.com/ele115/tello-wrapper')
root.children().last() + pomConfig
}
}
}
}
bintray {
user = project.findProperty('bintray.user')
key = project.findProperty('bintray.key')
publications = ['mavenPublication']
publish = true
pkg {
repo = 'maven'
name = 'tello-wrapper'
userOrg = 'ele115'
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/ELE115/tello-wrapper.git'
labels = ['tello-drone', 'ryze-tello-drone', 'tello', 'tello-sdk']
publicDownloadNumbers = true
version {
name = project.version
}
}
}