-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
61 lines (52 loc) · 1.38 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
plugins {
id 'java'
id 'application'
id "com.github.johnrengelman.shadow" version "6.0.0"
id 'maven-publish'
}
group = 'com.path-variable.watcher'
version = '1.0.0-SNAPSHOT'
repositories {
mavenCentral()
flatDir {
dirs './libs'
}
}
dependencies {
implementation 'ch.qos.logback:logback-classic:1.2.11'
implementation 'opencv:opencv-450'
implementation group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.13'
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.12.6.1'
implementation 'com.path-variable:commons-lib:1.3.2'
}
application {
mainClassName = 'com.path.variable.watcher.App'
}
task generateDeploymentFiles(type: Copy) {
from './deployment-templates'
into "$project.projectDir/deployment"
include '*'
expand(project: project)
}
shadowJar {
baseName('cam-watcher')
classifier('')
}
publishing {
publications {
shadow(MavenPublication) { publication ->
from project.shadow.component(publication)
artifactId = 'cam-watcher'
}
}
repositories {
maven {
name = "GitHubPackages"
url = "https://maven.pkg.github.com/isaric/cam-watcher"
credentials {
username = "isaric"
password = property("github.token")
}
}
}
}