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