Всё есть bundles
Всё же лучше вернуться к изначальной идее, когда модули и юиюлиотеки подгружаются как bundles, т.к. на данном этапе ясно, что разные модули могут использовать одни и теже бибилиотеки.
This commit is contained in:
@@ -1,23 +1,13 @@
|
||||
group = 'asys'
|
||||
version = '0.4-SNAPSHOT'
|
||||
version = '0.5-SNAPSHOT'
|
||||
|
||||
apply plugin: 'osgi'
|
||||
|
||||
configurations {
|
||||
included
|
||||
compile.extendsFrom included
|
||||
}
|
||||
|
||||
jar {
|
||||
dependsOn configurations.included
|
||||
|
||||
manifest {
|
||||
name = 'ASys MC server manager'
|
||||
instruction 'Bundle-Activator', 'asys.mcsmanager.Activator'
|
||||
instruction 'Import-Package', '!io.netty.*', 'javax.security.cert', 'org.slf4j.helpers', '*'
|
||||
}
|
||||
|
||||
from { configurations.included.collect { it.isDirectory() ? it : zipTree(it).matching{exclude{it.path.contains('META-INF')} } } }
|
||||
}
|
||||
|
||||
ext {
|
||||
@@ -27,5 +17,5 @@ ext {
|
||||
dependencies {
|
||||
compile project(':core')
|
||||
compile project(':webinterface')
|
||||
included group: 'io.netty', name: 'netty-codec', version: nettyVersion
|
||||
compile group: 'io.netty', name: 'netty-codec', version: nettyVersion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user