разделение на разные модули кодека и сущностей
This commit is contained in:
25
build.gradle
25
build.gradle
@@ -1,27 +1,33 @@
|
|||||||
plugins {
|
/* Gradle 5.3 */
|
||||||
id 'java'
|
|
||||||
id 'jacoco'
|
|
||||||
}
|
|
||||||
|
|
||||||
wrapper {
|
wrapper {
|
||||||
gradleVersion = '5.3'
|
gradleVersion = '5.3'
|
||||||
distributionType = Wrapper.DistributionType.ALL
|
distributionType = Wrapper.DistributionType.ALL
|
||||||
}
|
}
|
||||||
|
|
||||||
group = 'mc-project'
|
subprojects {
|
||||||
version = '1.0-RC'
|
apply plugin: 'java'
|
||||||
|
apply plugin: 'jacoco'
|
||||||
|
|
||||||
repositories {
|
def publishScript = file(rootProject.getProjectDir().getPath() + '/publish.gradle')
|
||||||
mavenLocal()
|
if (publishScript.exists()) {
|
||||||
mavenCentral()
|
apply from: publishScript.path
|
||||||
}
|
}
|
||||||
|
|
||||||
|
project.group = projectGroup
|
||||||
|
project.version = projectVersion
|
||||||
|
|
||||||
compileJava {
|
compileJava {
|
||||||
sourceCompatibility = 1.8
|
sourceCompatibility = 1.8
|
||||||
targetCompatibility = 1.8
|
targetCompatibility = 1.8
|
||||||
options.encoding = 'UTF-8'
|
options.encoding = 'UTF-8'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenLocal()
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
|
||||||
ext {
|
ext {
|
||||||
slf4j_version = '1.7.25'
|
slf4j_version = '1.7.25'
|
||||||
lombok_version = '1.18.2'
|
lombok_version = '1.18.2'
|
||||||
@@ -50,3 +56,4 @@ test {
|
|||||||
jacoco {
|
jacoco {
|
||||||
toolVersion = '0.8.5'
|
toolVersion = '0.8.5'
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|||||||
2
gradle.properties
Normal file
2
gradle.properties
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
projectGroup=mc-project.nbt
|
||||||
|
projectVersion=1.1-RC
|
||||||
@@ -1,2 +1,4 @@
|
|||||||
rootProject.name = 'nbt-lib'
|
rootProject.name = 'nbt-lib'
|
||||||
|
|
||||||
|
include('nbt')
|
||||||
|
include('vanilla-codec')
|
||||||
|
|||||||
3
vanilla-codec/build.gradle
Normal file
3
vanilla-codec/build.gradle
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
dependencies {
|
||||||
|
compile project(':nbt')
|
||||||
|
}
|
||||||
2
vanilla-codec/gradle.properties
Normal file
2
vanilla-codec/gradle.properties
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
projectGroup=mc-project.nbt.codec
|
||||||
|
projectName=nbt-vanilla-codec
|
||||||
Reference in New Issue
Block a user