MCSM: выделяем протокол в отдельный subproject
This commit is contained in:
15
bridge-protocol/build.gradle
Normal file
15
bridge-protocol/build.gradle
Normal file
@@ -0,0 +1,15 @@
|
||||
group = 'asys'
|
||||
version = '0.1-SNAPSHOT'
|
||||
|
||||
task jar(type: Jar, overwrite: true) {
|
||||
// не собирать jar
|
||||
}
|
||||
|
||||
ext {
|
||||
nettyVersion = '4.1.9.Final'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile group: 'com.google.guava', name: 'guava', version: '21.0'
|
||||
compile group: 'io.netty', name: 'netty-codec', version: nettyVersion
|
||||
}
|
||||
22
build.gradle
22
build.gradle
@@ -5,18 +5,22 @@ subprojects {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
ext {
|
||||
slf4jVersion = '1.7.21'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile group: 'org.slf4j', name: 'slf4j-api', version: slf4jVersion
|
||||
compile group: 'org.osgi', name: 'org.osgi.core', version: '6.0.0'
|
||||
}
|
||||
|
||||
compileJava {
|
||||
sourceCompatibility = 1.8
|
||||
targetCompatibility = 1.8
|
||||
options.encoding = 'UTF-8'
|
||||
}
|
||||
}
|
||||
|
||||
subprojects {
|
||||
if (!it.name.startsWith('bridge')) {
|
||||
ext {
|
||||
slf4jVersion = '1.7.21'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile group: 'org.slf4j', name: 'slf4j-api', version: slf4jVersion
|
||||
compile group: 'org.osgi', name: 'org.osgi.core', version: '6.0.0'
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,13 +1,21 @@
|
||||
group = 'asys'
|
||||
version = '0.5-SNAPSHOT'
|
||||
version = '0.6-SNAPSHOT'
|
||||
|
||||
apply plugin: 'osgi'
|
||||
|
||||
configurations {
|
||||
include
|
||||
compile.extendsFrom include
|
||||
}
|
||||
|
||||
jar {
|
||||
manifest {
|
||||
name = 'ASys MC server manager'
|
||||
instruction 'Bundle-Activator', 'asys.mcsmanager.Activator'
|
||||
}
|
||||
|
||||
dependsOn configurations.include
|
||||
from { configurations.include.collect { it.isDirectory() ? it : zipTree(it) } }
|
||||
}
|
||||
|
||||
ext {
|
||||
@@ -17,5 +25,6 @@ ext {
|
||||
dependencies {
|
||||
compile project(':core')
|
||||
compile project(':webinterface')
|
||||
include files(project(':bridge-protocol').sourceSets.main.output.classesDir)
|
||||
compile group: 'io.netty', name: 'netty-codec', version: nettyVersion
|
||||
}
|
||||
|
||||
@@ -2,3 +2,4 @@ rootProject.name = 'asys'
|
||||
include 'core'
|
||||
include 'webinterface'
|
||||
include 'mcserver-manager'
|
||||
include 'bridge-protocol'
|
||||
|
||||
Reference in New Issue
Block a user