Core as module
This commit is contained in:
22
build.gradle
22
build.gradle
@@ -1,4 +1,4 @@
|
||||
allprojects {
|
||||
subprojects {
|
||||
apply plugin: 'java'
|
||||
|
||||
compileJava {
|
||||
@@ -40,23 +40,3 @@ allprojects {
|
||||
from configurations.compile + configurations.runtime - configurations.compile_excludeCopy
|
||||
}
|
||||
}
|
||||
|
||||
group 'mc'
|
||||
version '1.0-SNAPSHOT'
|
||||
|
||||
apply plugin: 'application'
|
||||
|
||||
mainClassName = "mc.core.Main"
|
||||
|
||||
ext {
|
||||
log4j_version = '2.5'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
/* Logger */
|
||||
runtime (group: 'org.apache.logging.log4j', name: 'log4j-core', version: log4j_version)
|
||||
runtime (group: 'org.apache.logging.log4j', name: 'log4j-slf4j-impl', version: log4j_version)
|
||||
|
||||
/* Components */
|
||||
compile (group: 'commons-io', name: 'commons-io', version: '2.6')
|
||||
}
|
||||
|
||||
19
core/build.gradle
Normal file
19
core/build.gradle
Normal file
@@ -0,0 +1,19 @@
|
||||
group 'mc'
|
||||
version '1.0-SNAPSHOT'
|
||||
|
||||
apply plugin: 'application'
|
||||
|
||||
mainClassName = "mc.core.Main"
|
||||
|
||||
ext {
|
||||
log4j_version = '2.5'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
/* Logger */
|
||||
runtime (group: 'org.apache.logging.log4j', name: 'log4j-core', version: log4j_version)
|
||||
runtime (group: 'org.apache.logging.log4j', name: 'log4j-slf4j-impl', version: log4j_version)
|
||||
|
||||
/* Components */
|
||||
compile (group: 'commons-io', name: 'commons-io', version: '2.6')
|
||||
}
|
||||
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
@@ -7,7 +7,7 @@ ext {
|
||||
|
||||
dependencies {
|
||||
/* Core */
|
||||
compile_excludeCopy rootProject
|
||||
compile_excludeCopy project(':core')
|
||||
|
||||
/* Netty */
|
||||
compile (group: 'io.netty', name: 'netty-all', version: netty_version)
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
rootProject.name = 'core'
|
||||
rootProject.name = 'server'
|
||||
|
||||
include('proto125')
|
||||
include('core') // Core
|
||||
include('proto125') // Protocol 1.2.5
|
||||
|
||||
Reference in New Issue
Block a user