36 lines
824 B
Groovy
36 lines
824 B
Groovy
subprojects {
|
|
apply plugin: 'java'
|
|
apply plugin: LibsPlugin
|
|
apply plugin: LogicPlugin
|
|
|
|
def publishScript = rootDir.toPath().resolve('publish.gradle').toFile()
|
|
if (publishScript.exists()) {
|
|
apply from: publishScript
|
|
}
|
|
|
|
project.group = projectGroup
|
|
if (project.hasProperty('moduleVersion')) {
|
|
project.version = project.property('moduleVersion')
|
|
}
|
|
if (project.hasProperty('moduleName')) {
|
|
jar.archiveBaseName.set(project.property('moduleName') as String)
|
|
}
|
|
|
|
repositories {
|
|
mavenLocal()
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly libs.lombok
|
|
annotationProcessor libs.lombok
|
|
|
|
testImplementation libs.test.junit5
|
|
testImplementation libs.test.mock
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
}
|