-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
63 lines (53 loc) · 1.98 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
plugins {
// code
id 'java'
// IDEs
id 'eclipse'
id 'idea'
// publishing
id 'com.cinnober.gradle.semver-git' version "2.3.1"
}
// XXX please change with your commits according to http://semver.org/
project.version = '1.0.0'
sourceCompatibility = 1.8
targetCompatibility = 1.8
// dependencies section
repositories {
mavenCentral()
maven { url "https://jitpack.io" }
}
/*
Forces dependencies' cache invalidation for each build for dependencies marked with
{ changing = true }
e.g.
compile('com.github.symbiote-h2020:SymbIoTeLibraries:develop-SNAPSHOT'){ changing = true }
*/
configurations.all {
// check for updates every build
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
dependencies {
/* SymbIoTeLibraries manual:
One can use the library from jitpack by default with the notation:
compile('com.github.symbiote-h2020:SymbIoTeLibraries:develop-SNAPSHOT') {changing = true }
or having cloned locally the SymbIoTeLibraries repo use it directly with project dependency by:
compile project(':SymbIoTeLibraries')
Important --- In order to use the latter you need to:
1) switch comments on the artifact and project dependencies
2) always have only one uncommented
3) project dependency requires changes in settings.gradle file in this project
4) never commit build.gradle which has project dependencies active as it will break CI builds
*/
compile('com.github.symbiote-h2020:SymbIoTeLibraries:5.38+') { changing = true }
compile('org.apache.logging.log4j:log4j-api:2.+')
compile('org.apache.logging.log4j:log4j-core:2.+')
}
//create a single Jar with all dependencies
jar {
exclude 'META-INF/*.RSA', 'META-INF/*.SF', 'META-INF/*.DSA'
manifest {
attributes 'Implementation-Version': project.version
}
baseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}