-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathbuild.gradle
108 lines (87 loc) · 3.87 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
// *****************************************************************************
// -Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager
// *****************************************************************************
buildscript {
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}
dependencies {
classpath 'com.github.ben-manes:gradle-versions-plugin:0.11.3'
classpath 'com.github.lburgazzoli:gradle-karaf-features-plugin:2.0.3'
}
}
// *****************************************************************************
//
// *****************************************************************************
subprojects {
apply plugin: 'java'
apply plugin: 'osgi'
apply plugin: 'maven'
apply plugin: 'com.github.ben-manes.versions'
sourceCompatibility = 1.8
targetCompatibility = 1.8
version = '4.0.0-SNAPSHOT'
group = 'com.github.lburgazzoli'
ext.gradleVersion = '2.4'
ext.osgiVersion = project.version.replaceAll('-','.')
ext.versions = [
slf4j : '1.7.12',
log4j2 : '2.3',
felixConfigAdmin : '1.8.4',
karaf : '4.0.0',
guava : '18.0',
commonsLang : '3.4',
commonsCollections : '4.0',
commonsBeanUtils : '1.9.2',
osgi : '6.0.0',
osgiConpendium : '5.0.0',
lbKaraf : '4.0.0-SNAPSHOT',
lbKarafFeatures : '2.0.3'
]
repositories {
mavenLocal()
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}
dependencies {
compile "com.github.lburgazzoli:lb-karaf-common:$versions.lbKaraf"
compile("org.slf4j:slf4j-api:$versions.slf4j") { transitive = false }
compile("org.slf4j:slf4j-ext:$versions.slf4j") { transitive = false }
runtime "org.apache.logging.log4j:log4j-api:$versions.log4j2"
runtime "org.apache.logging.log4j:log4j-core:$versions.log4j2"
runtime "org.apache.logging.log4j:log4j-jcl:$versions.log4j2"
runtime "org.apache.logging.log4j:log4j-jul:$versions.log4j2"
runtime "org.apache.logging.log4j:log4j-slf4j-impl:$versions.log4j2"
compile "org.apache.felix:org.apache.felix.configadmin:$versions.felixConfigAdmin"
compile "org.apache.karaf.shell:org.apache.karaf.shell.console:$versions.karaf"
compile "org.apache.karaf.shell:org.apache.karaf.shell.table:$versions.karaf"
compile "org.apache.commons:commons-lang3:$versions.commonsLang"
compile "commons-beanutils:commons-beanutils:$versions.commonsBeanUtils"
compile "com.google.guava:guava:$versions.guava"
}
jar {
baseName = "${project.name}"
manifest.attributes['Bundle-Description' ] = "${project.name}"
manifest.attributes['Bundle-Name' ] = "${project.name}"
manifest.attributes['Bundle-SymbolicName' ] = "${project.group}-${project.name}"
manifest.attributes['Bundle-Version' ] = osgiVersion
manifest.attributes['Implementation-Title' ] = "${project.group}-${project.name}-${osgiVersion}"
manifest.attributes['Implementation-Version' ] = osgiVersion
manifest.attributes['Implementation-Vendor' ] = 'lb'
}
// *************************************************************************
//
// *************************************************************************
dependencyUpdates {
revision = 'release'
}
}
// *****************************************************************************
//
// *****************************************************************************
task wrapper(type: Wrapper) {
gradleVersion = "$gradleVersion"
}