Archived
0

разделение mc.protocol и mc.server на подмодули

This commit is contained in:
2021-04-26 15:27:59 +03:00
parent 38091e8685
commit fcfcb16e6d
25 changed files with 58 additions and 29 deletions

View File

@@ -1,4 +1,6 @@
//file:noinspection GrUnresolvedAccess
apply plugin: 'java'
apply from: rootDir.toPath().resolve('libs.gradle').toFile()
String getProperty1(String propertyName1, String propertyName2) {
return (String) (project.hasProperty(propertyName1) ? project.property(propertyName1) : project.property(propertyName2))
@@ -6,7 +8,7 @@ String getProperty1(String propertyName1, String propertyName2) {
project.group = getProperty1('module.group', 'project.group')
project.version = getProperty1('module.version', 'project.version')
project.jar.archiveBaseName.set(getProperty1('module.name', 'project.name'))
jar.archiveBaseName.set(getProperty1('module.name', 'project.name'))
compileJava {
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_11
@@ -16,4 +18,25 @@ compileJava {
repositories {
mavenLocal()
mavenCentral()
}
}
dependencies {
annotationProcessor libs.lombok
compileOnly libs.lombok
compileOnly libs.annotations
implementation libs.logger.slf4j
implementation libs.dagger2.implementation
annotationProcessor libs.dagger2.annotationProcessor
testImplementation libs.test.junit5.api
testImplementation libs.test.junit5.params
testRuntimeOnly libs.test.junit5.engine
testRuntimeOnly libs.test.logger
}
test {
useJUnitPlatform()
}