разделение mc.protocol и mc.server на подмодули
This commit is contained in:
27
logic.gradle
27
logic.gradle
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user