-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
86 lines (68 loc) · 1.86 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
buildscript {
apply from: project.rootProject.relativePath('buildscript.gradle'), to: buildscript
}
apply plugin: 'neva.osgi-container'
defaultTasks = ['clean', 'createOsgiContainer']
description = "OSGi based, written in Kotlin, MVC framework for web artisans from Java community"
allprojects {
group 'com.neva.javarel'
version "1.0.0.ALPHA"
apply plugin: 'idea'
apply plugin: 'base'
repositories {
mavenCentral()
jcenter()
}
}
dependencies {
osgiModule project(':framework')
}
osgiContainer {
felix()
debug()
later("javarel-*")
javaArg('-Dderby.system.home=db')
exclude([
'slf4j-api-1.7.7*',
'xml-apis-1.3*',
'antlr',
'animal-sniffer-annotations',
'kxml2',
'xmlpull',
])
}
subprojects { subProject ->
def baseName = "javarel-${subProject.path.substring(1).replace(':', '.')}"
plugins.withId 'kotlin', {
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', 'javarel'
instructionReplace 'Bundle-SymbolicName', baseName
}
}
}
}