-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcf-build.gradle
More file actions
89 lines (77 loc) · 2.32 KB
/
Copy pathcf-build.gradle
File metadata and controls
89 lines (77 loc) · 2.32 KB
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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4.+"
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.1'
}
}
plugins {
id 'com.jfrog.artifactory' version '4.10.0'
id 'java'
id 'com.github.johnrengelman.shadow' version '2.0.1'
}
group 'com.cameraforensics'
version '1.2.0'
sourceCompatibility = 1.8
repositories {
mavenCentral()
flatDir {
dirs 'libs'
}
}
dependencies {
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.10.0'
compile group: 'com.squareup.okhttp', name: 'okhttp', version: '2.7.5'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.28'
compile group: 'commons-io', name: 'commons-io', version: '2.6'
implementation name: 'ffmpeg-0.6.4-SNAPSHOT'
// TODO: Update this when PR is merged https://github.com/bramp/ffmpeg-cli-wrapper/pull/203
// compile group: 'net.bramp.ffmpeg', name: 'ffmpeg', version: '0.6.3'
testCompile group: 'com.google.guava', name: 'guava', version: '20.0'
testCompile 'org.apache.commons:commons-lang3:3.5'
testCompile 'com.google.code.gson:gson:2.8.0'
testCompile 'org.modelmapper:modelmapper:0.7.7'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
// custom tasks for creating source/javadoc jars
task sourcesJar(type: Jar, dependsOn:classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn:javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifactoryPublish {
dependsOn sourcesJar, javadocJar
}
// add javadoc/source jar tasks as artifacts
artifacts {
archives sourcesJar
archives javadocJar
archives shadowJar
}
artifactory {
contextUrl = "${artifactoryUrl}"
publish {
repository {
repoKey = "libs-release-local"
username = "${artifactoryUsername}"
password = "${artifactoryPassword}"
}
defaults {
publishConfigs('archives', 'published')
publishArtifacts = true
properties = ['qa.level': 'basic', 'dev.team' : 'core']
publishPom = true
}
}
resolve {
repository {
repoKey = 'libs-release'
maven = true
}
}
}