forked from openvinotoolkit/openvino_contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
101 lines (92 loc) · 2.31 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
plugins {
id 'java-library'
id 'maven-publish'
id "com.jfrog.bintray" version "1.8.5"
}
sourceSets {
main {
java {
srcDirs = ["org"]
}
resources {
srcDir 'native'
}
}
test {
java {
srcDirs = ["."]
include "tests/*.java"
}
}
}
repositories {
jcenter()
}
dependencies {
testImplementation "junit:junit:4.13.1"
testImplementation "org.hamcrest:hamcrest-core:1.3"
}
test {
systemProperty 'MODELS_PATH', System.getProperty('MODELS_PATH')
systemProperty 'device', System.getProperty('device')
}
test.onlyIf { project.hasProperty('run_tests') }
//
// Bintray publication:
// $ export BINTRAY_USER=<USERNAME>
// $ export BINTRAY_KEY=<TOKEN>
// $ export VERSION=<VERSION>
// $ gradle bintrayUpload
//
version = System.getenv('VERSION')
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
publications = ['OpenVINOPublication']
pkg {
repo = 'openvino'
name = 'openvino_contrib'
userOrg = System.getenv('BINTRAY_USER')
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/openvinotoolkit/openvino_contrib.git'
version {
name = project.version
}
}
}
def pomConfig = {
licenses {
license {
name "The Apache Software License, Version 2.0"
url "http://www.apache.org/licenses/LICENSE-2.0.txt"
distribution "repo"
}
}
developers {
developer {
id "developer-id"
name "developer-name"
email "dev@d.com"
}
}
scm {
url "https://github.com/openvinotoolkit/openvino_contrib"
}
}
publishing {
publications {
OpenVINOPublication(MavenPublication) {
from(components.java)
groupId 'org.intel'
artifactId 'openvino'
version project.version
pom.withXml {
def root = asNode()
root.appendNode('description', 'Java bindings for Intel OpenVINO')
root.appendNode('name', 'Intel OpenVINO')
root.appendNode('url', 'https://github.com/openvinotoolkit/openvino_contrib')
root.children().last() + pomConfig
}
}
}
}