разделение на разные модули кодека и сущностей
This commit is contained in:
95
build.gradle
95
build.gradle
@@ -1,52 +1,59 @@
|
||||
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()
|
||||
}
|
||||
|
||||
compileJava {
|
||||
sourceCompatibility = 1.8
|
||||
targetCompatibility = 1.8
|
||||
options.encoding = 'UTF-8'
|
||||
}
|
||||
|
||||
ext {
|
||||
slf4j_version = '1.7.25'
|
||||
lombok_version = '1.18.2'
|
||||
junit_version = '5.3.1'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
/* LOGGER */
|
||||
implementation (group: 'org.slf4j', name: 'slf4j-api', version: slf4j_version)
|
||||
|
||||
/* LOMBOK */
|
||||
annotationProcessor (group: 'org.projectlombok', name: 'lombok', version: lombok_version)
|
||||
compileOnly (group: 'org.projectlombok', name: 'lombok', version: lombok_version)
|
||||
|
||||
/* TESTING */
|
||||
testImplementation (group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: junit_version)
|
||||
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 {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
|
||||
jacoco {
|
||||
toolVersion = '0.8.5'
|
||||
def publishScript = file(rootProject.getProjectDir().getPath() + '/publish.gradle')
|
||||
if (publishScript.exists()) {
|
||||
apply from: publishScript.path
|
||||
}
|
||||
|
||||
project.group = projectGroup
|
||||
project.version = projectVersion
|
||||
|
||||
compileJava {
|
||||
sourceCompatibility = 1.8
|
||||
targetCompatibility = 1.8
|
||||
options.encoding = 'UTF-8'
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenLocal()
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
ext {
|
||||
slf4j_version = '1.7.25'
|
||||
lombok_version = '1.18.2'
|
||||
junit_version = '5.3.1'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
/* LOGGER */
|
||||
implementation (group: 'org.slf4j', name: 'slf4j-api', version: slf4j_version)
|
||||
|
||||
/* LOMBOK */
|
||||
annotationProcessor (group: 'org.projectlombok', name: 'lombok', version: lombok_version)
|
||||
compileOnly (group: 'org.projectlombok', name: 'lombok', version: lombok_version)
|
||||
|
||||
/* TESTING */
|
||||
testImplementation (group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: junit_version)
|
||||
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 {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
|
||||
jacoco {
|
||||
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'
|
||||
|
||||
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