разделение на разные модули кодека и сущностей

This commit is contained in:
2020-04-21 23:27:02 +03:00
parent cf47c189ed
commit 2aa7a2bd07
43 changed files with 60 additions and 44 deletions

View File

@@ -1,34 +1,40 @@
plugins {
id 'java'
id 'jacoco'
}
/* Gradle 5.3 */
wrapper {
gradleVersion = '5.3'
distributionType = Wrapper.DistributionType.ALL
}
group = 'mc-project'
version = '1.0-RC'
subprojects {
apply plugin: 'java'
apply plugin: 'jacoco'
repositories {
mavenLocal()
mavenCentral()
}
def publishScript = file(rootProject.getProjectDir().getPath() + '/publish.gradle')
if (publishScript.exists()) {
apply from: publishScript.path
}
compileJava {
project.group = projectGroup
project.version = projectVersion
compileJava {
sourceCompatibility = 1.8
targetCompatibility = 1.8
options.encoding = 'UTF-8'
}
}
ext {
repositories {
mavenLocal()
mavenCentral()
}
ext {
slf4j_version = '1.7.25'
lombok_version = '1.18.2'
junit_version = '5.3.1'
}
}
dependencies {
dependencies {
/* LOGGER */
implementation (group: 'org.slf4j', name: 'slf4j-api', version: slf4j_version)
@@ -41,12 +47,13 @@ dependencies {
testImplementation (group: 'org.junit.jupiter', name: 'junit-jupiter-params', version: junit_version)
testRuntimeOnly (group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: junit_version)
testImplementation (group: 'org.apache.commons', name: 'commons-lang3', version: '3.9')
}
}
test {
test {
useJUnitPlatform()
}
}
jacoco {
jacoco {
toolVersion = '0.8.5'
}
}

2
gradle.properties Normal file
View File

@@ -0,0 +1,2 @@
projectGroup=mc-project.nbt
projectVersion=1.1-RC

View File

@@ -1,2 +1,4 @@
rootProject.name = 'nbt-lib'
include('nbt')
include('vanilla-codec')

View File

@@ -0,0 +1,3 @@
dependencies {
compile project(':nbt')
}

View File

@@ -0,0 +1,2 @@
projectGroup=mc-project.nbt.codec
projectName=nbt-vanilla-codec