This repository has been archived by the owner on Apr 5, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
58 lines (51 loc) · 1.2 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
plugins {
id 'java'
id 'eclipse'
id 'idea'
id 'application'
id 'com.github.johnrengelman.shadow' version '1.2.3'
id 'com.github.hierynomus.license' version '0.12.1'
}
// Project properties
group = 'jbyoshi'
archivesBaseName = 'gitupdate'
version = '1.2-SNAPSHOT'
// Java 1.8
sourceCompatibility = targetCompatibility = '1.8'
// Project dependencies
repositories {
mavenLocal()
mavenCentral()
maven {
url 'https://repo.eclipse.org/content/groups/releases/'
}
}
dependencies {
compile "org.eclipse.jgit:org.eclipse.jgit:4.2.0.201511101648-m1"
compile "com.google.guava:guava:18.0"
runtime "org.slf4j:slf4j-simple:1.7.10" // Required by JGit
}
// License
defaultTasks 'licenseFormat', 'build'
license {
header file('gradle/HEADER.txt')
include '**/*.java'
ignoreFailures false
strictCheck true
mapping {
java = 'SLASHSTAR_STYLE'
}
}
processResources {
// Include in final JAR
from 'LICENSE.txt'
}
// Application+Shadow
mainClassName = 'jbyoshi.gitupdate.GitUpdate'
shadowJar {
dependencies {
exclude(dependency('org.eclipse.jdt:org.eclipse.jdt.annotation'))
}
classifier = ''
}
build.dependsOn shadowJar