-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
90 lines (74 loc) · 2.07 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
buildscript {
apply from: project.rootProject.relativePath('buildscript.gradle'), to: buildscript
}
apply plugin: 'neva.osgi-container'
defaultTasks 'createOsgiContainer'
description = 'Sample application that can be used as quick start for using Javarel Framework'
allprojects {
group 'com.neva.javarel'
version "1.0.0.ALPHA"
apply plugin: 'idea'
apply plugin: 'base'
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
}
dependencies {
osgiModule project(':app:core')
osgiModule project(':app:adm')
osgiModule project(':app:sample')
}
osgiContainer {
felix()
debug(16661)
later(["javarel-*", "quickstart-*"])
javaArg('-Dderby.system.home=db')
exclude([
'slf4j-api-1.7.7*',
'slf4j-log4j12-1.7.6*',
'xml-apis-1.3*',
'org.apache.felix.scr.annotations-*',
'antlr',
'animal-sniffer-annotations',
'kxml2',
'xmlpull',
])
}
subprojects { subProject ->
def baseName = "quickstart-${subProject.path.substring(1).replace(':', '.')}"
plugins.withId 'kotlin', {
// testCompile group: 'junit', name: 'junit', version: '4.11'
jar.baseName = baseName
sourceCompatibility = 1.7
targetCompatibility = 1.7
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
def compileOptions = {
options.encoding = "UTF-8"
}
compileJava compileOptions
compileTestJava compileOptions
}
plugins.withId 'maven-publish', {
publishing {
publications {
mavenJava(MavenPublication) {
artifactId jar.baseName
from components.java
}
}
}
}
plugins.withId 'neva.osgi-module', {
jar {
manifest {
name subProject.description
instruction 'Bundle-Category', 'quickstart'
instructionReplace 'Bundle-SymbolicName', baseName
}
}
}
}