-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
119 lines (105 loc) · 3.68 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
118
apply plugin: 'java'
apply plugin: 'maven'
apply from: rootDir.canonicalPath + '/.gradle/publish.gradle'
sourceCompatibility = 1.8
targetCompatibility = 1.8
group 'com.github.handong0123'
version '1.14.0'
compileJava {
sourceCompatibility = 1.8
targetCompatibility = 1.8
[compileJava]*.options*.encoding = 'UTF-8'
}
compileTestJava {
sourceCompatibility = 1.8
targetCompatibility = 1.8
[compileTestJava]*.options*.encoding = 'UTF-8'
}
test {
exclude '**/*.class'
}
repositories {
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
mavenCentral()
}
dependencies {
compile group: 'org.tensorflow', name: 'tensorflow', version: '1.14.0'
compile group: 'org.tensorflow', name: 'libtensorflow_jni', version: '1.14.0'
// compile group: 'org.tensorflow', name: 'libtensorflow_jni_gpu', version: '1.14.0'
compile group: 'org.tensorflow', name: 'libtensorflow', version: '1.14.0'
compile group: 'org.tensorflow', name: 'proto', version: '1.14.0'
compile group: 'com.google.protobuf', name: 'protobuf-java', version: '3.6.1'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
compile group: 'org.springframework.boot', name: 'spring-boot', version: '1.4.0.RELEASE'
compile group: 'com.google.guava', name: 'guava', version: '27.0.1-jre'
compile group: 'com.alibaba', name: 'fastjson', version: '1.2.62'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.7'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
apply plugin: 'maven-publish'
apply plugin: 'signing'
task sourcesJar(type: Jar) {
from sourceSets.main.allJava
classifier = 'sources'
}
task javadocJar(type: Jar) {
from javadoc
classifier = 'javadoc'
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifactId = 'tensorflow-deploy-cpu'
artifact sourcesJar
artifact javadocJar
pom {
name = "tensorflow-deploy"
description = "tensorflow deploy for java"
url = "https://github.com/handong0123/tensorflow_deploy"
licenses {
license {
name = "The Apache License, Version 2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
developers {
developer {
id = "handong0123"
name = "handong"
email = "handong970123@gmail.com"
}
}
scm {
connection = "scm:git:https://github.com/handong0123/tensorflow_deploy.git"
developerConnection = "scm:git:https://github.com/handong0123/tensorflow_deploy.git"
url = "https://github.com/handong0123/tensorflow_deploy"
}
}
}
}
repositories {
maven {
url "https://oss.sonatype.org/service/local/staging/deploy/maven2"
credentials {
username sonatypeUsername
password sonatypePassword
}
}
}
}
signing {
sign publishing.publications.mavenJava
}
javadoc {
description = "Generates project-level javadoc for use in -javadoc jar"
options.memberLevel = JavadocMemberLevel.PROTECTED
options.author = true
options.version = true
options.header = project.name
options.addStringOption('Xdoclint:none', '-quiet')
logging.captureStandardError LogLevel.INFO
logging.captureStandardOutput LogLevel.INFO
options.encoding = "UTF-8"
options.charSet = 'UTF-8'
}