proto-125 as module
This commit is contained in:
61
build.gradle
61
build.gradle
@@ -1,43 +1,62 @@
|
|||||||
group 'mc'
|
allprojects {
|
||||||
version '1.0-SNAPSHOT'
|
apply plugin: 'java'
|
||||||
|
|
||||||
apply plugin: 'java'
|
compileJava {
|
||||||
|
|
||||||
compileJava {
|
|
||||||
sourceCompatibility = 1.8
|
sourceCompatibility = 1.8
|
||||||
targetCompatibility = 1.8
|
targetCompatibility = 1.8
|
||||||
options.encoding = 'UTF-8'
|
options.encoding = 'UTF-8'
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
|
|
||||||
ext {
|
ext {
|
||||||
slf4j_version = '1.7.21'
|
slf4j_version = '1.7.21'
|
||||||
log4j_version = '2.5'
|
|
||||||
spring_version = '4.2.5.RELEASE'
|
spring_version = '4.2.5.RELEASE'
|
||||||
netty_version = '4.1.22.Final'
|
}
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
configurations {
|
||||||
|
compile_excludeCopy
|
||||||
|
compile.extendsFrom compile_excludeCopy
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
/* Logger */
|
/* Logger */
|
||||||
compile (group: 'org.slf4j', name: 'slf4j-api', version: slf4j_version)
|
compile (group: 'org.slf4j', name: 'slf4j-api', version: slf4j_version)
|
||||||
compile (group: 'org.slf4j', name: 'jcl-over-slf4j', version: slf4j_version)
|
compile (group: 'org.slf4j', name: 'jcl-over-slf4j', version: slf4j_version)
|
||||||
compile (group: 'org.apache.logging.log4j', name: 'log4j-core', version: log4j_version)
|
|
||||||
compile (group: 'org.apache.logging.log4j', name: 'log4j-slf4j-impl', version: log4j_version)
|
|
||||||
|
|
||||||
/* Spring */
|
/* Spring */
|
||||||
compile (group: 'org.springframework', name: 'spring-context', version: spring_version) {
|
compile (group: 'org.springframework', name: 'spring-context', version: spring_version) {
|
||||||
exclude group: 'commons-logging'
|
exclude group: 'commons-logging'
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Netty */
|
|
||||||
compile (group: 'io.netty', name: 'netty-all', version: netty_version)
|
|
||||||
|
|
||||||
/* Components */
|
/* Components */
|
||||||
compile (group: 'org.projectlombok', name: 'lombok', version: '1.16.16')
|
compile (group: 'org.projectlombok', name: 'lombok', version: '1.16.16')
|
||||||
compile (group: 'commons-io', name: 'commons-io', version: '2.6')
|
}
|
||||||
compile (group: 'com.google.guava', name: 'guava', version: '24.1-jre')
|
|
||||||
compile (group: 'com.google.code.gson', name: 'gson', version: '2.8.2')
|
task copyDep(type: Copy) {
|
||||||
|
into 'libs'
|
||||||
|
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')
|
||||||
}
|
}
|
||||||
|
|||||||
18
proto125/build.gradle
Normal file
18
proto125/build.gradle
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
group 'mc'
|
||||||
|
version '1.0-SNAPSHOT'
|
||||||
|
|
||||||
|
ext {
|
||||||
|
netty_version = '4.1.22.Final'
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
/* Core */
|
||||||
|
compile_excludeCopy rootProject
|
||||||
|
|
||||||
|
/* Netty */
|
||||||
|
compile (group: 'io.netty', name: 'netty-all', version: netty_version)
|
||||||
|
|
||||||
|
/* Components */
|
||||||
|
compile (group: 'com.google.guava', name: 'guava', version: '24.1-jre')
|
||||||
|
compile (group: 'com.google.code.gson', name: 'gson', version: '2.8.2')
|
||||||
|
}
|
||||||
@@ -1,2 +1,3 @@
|
|||||||
rootProject.name = 'core'
|
rootProject.name = 'core'
|
||||||
|
|
||||||
|
include('proto125')
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ package mc.core;
|
|||||||
|
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import mc.core.network.proto_125.packets.PositionAndLookPacket;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
|
|||||||
Reference in New Issue
Block a user