-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
141 lines (113 loc) · 4.83 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
plugins {
id "java"
id 'groovy'
id 'maven'
id 'maven-publish'
id 'checkstyle'
id 'findbugs'
id "info.solidsoft.pitest" version "1.1.4"
}
group 'evgenn'
version '1.0-SNAPSHOT'
checkstyle {
ignoreFailures = true
}
sourceCompatibility = 1.10
targetCompatibility = 1.10
repositories {
mavenCentral()
mavenLocal()
//link to a local folders
flatDir {
dirs 'lib'
}
jcenter()
}
dependencies {
// https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-api
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.5'
// https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.5'
// https://mvnrepository.com/artifact/org.apache.commons/commons-csv
compile group: 'org.apache.commons', name: 'commons-csv', version: '1.4'
// https://mvnrepository.com/artifact/org.codehaus.groovy/groovy-all
compile group: 'org.codehaus.groovy', name: 'groovy-all', version: '2.4.7'
compile name: 'sqljdbc42'
//for barcode example
compile name: 'comp102x_lib v2.1x'
compile name: 'core-2.3-SNAPSHOT'
compile name: 'tess4j'
compile name: 'javase-2.3-SNAPSHOT'
//for open_cv
// compile name: 'opencv-2413'
//mvn install:install-file -Dfile=/home/evgen/Development/1_Under_VCS/github/1_CAR_MEDIA/main_carauto_board/local-maven-repo/linux/opencv-341.jar -DgroupId=org.opencv -DartifactId=opencv.javawraper -Dversion=3.4.1 -Dpackaging=jar
compile 'org.opencv:opencv.javawraper:3.4.1'
compile name: 'algs4'
// https://mvnrepository.com/artifact/com.google.code.findbugs/findbugs
compile group: 'com.google.code.findbugs', name: 'findbugs', version: '3.0.1'
compile name: 'courserajava'
//https://github.com/google/guava
compile group: 'com.google.guava', name: 'guava', version: '19.0'
//https://github.com/ReactiveX/RxJava/wiki/Getting-Started
compile group: 'io.reactivex', name: 'rxjava', version: '+'
compile group: 'io.reactivex.rxjava2', name: 'rxjava', version: '+'
// https://mvnrepository.com/artifact/commons-net/commons-net
compile group: 'commons-net', name: 'commons-net', version: '+'
compile group: 'com.google.cloud', name: 'google-cloud-pubsub', version: '0.17.2-alpha'
compile group: 'com.google.cloud', name: 'google-cloud-datastore', version: '1.0.1'
// https://mvnrepository.com/artifact/org.apache.commons/commons-configuration2
compile group: 'org.apache.commons', name: 'commons-configuration2', version: '2.2'
// https://mvnrepository.com/artifact/commons-beanutils/commons-beanutils
compile group: 'commons-beanutils', name: 'commons-beanutils', version: '1.9.3'
testCompile group: 'junit', name: 'junit', version: '4.11'
// https://mvnrepository.com/artifact/org.mockito/mockito-core
testCompile group: 'org.mockito', name: 'mockito-core', version: '+'
// https://mvnrepository.com/artifact/org.mockito/mockito-all
testCompile group: 'org.mockito', name: 'mockito-all', version: '+'
compile group: 'org.zeroturnaround', name: 'zt-exec', version: '1.9'
//logging
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
compile group: 'org.slf4j', name: 'slf4j-ext', version: '1.7.25'
//Binding for Log4J
compile group: 'org.apache.logging.log4j', name: 'log4j-slf4j-impl', version: '2.8.1'
//Log4j API and Core implementation required for binding
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.8.1'
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.8.1'
compile group: 'org.apache.logging.log4j', name: 'log4j-web', version: '2.8.1'
//youtube
// https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient
compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.3'
// https://mvnrepository.com/artifact/org.apache.httpcomponents/fluent-hc
compile group: 'org.apache.httpcomponents', name: 'fluent-hc', version: '4.5.3'
}
// creating javadoc task for test code
task testJavadoc(type: Javadoc) {
source = sourceSets.test.allJava
classpath = sourceSets.test.compileClasspath
// if not changed the destinationDir, the javadoc for production code is overridden.
destinationDir = file("${buildDir}/docs/testjavadoc")
}
//publish sources jar to a maven local
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
artifacts {
archives jar
archives sourcesJar
}
uploadArchives {
repositories {
mavenLocal()
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar {
classifier "sources"
}
}
}
}
}