Engine/build.gradle

51 lines
1.5 KiB
Groovy
Raw Normal View History

2024-06-08 17:09:36 +02:00
plugins {
id 'java'
2024-06-08 17:37:02 +02:00
id 'io.freefair.lombok' version "${pluginLombok}"
2024-06-08 17:09:36 +02:00
}
dependencies {
// Lombok
compileOnly 'org.projectlombok:lombok:' + project.dependencyLombok
annotationProcessor 'org.projectlombok:lombok:' + project.dependencyLombok
2024-06-09 00:21:01 +02:00
// JUnit
testImplementation platform('org.junit:junit-bom:5.' + project.dependencyJUnit)
testImplementation 'org.junit.jupiter:junit-jupiter:5.' + project.dependencyJUnit
testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.' + project.dependencyJUnit
2024-06-08 17:09:36 +02:00
}
tasks.register('javadocAll', Javadoc) {
setDescription("Generates Javadoc API documentation for all subprojects.")
setGroup("documentation")
def subprojects= [
':base',
':testapp',
]
setSource(subprojects.collect { project(it).sourceSets.main.allJava })
setClasspath(files(subprojects.collect { project(it).sourceSets.main.compileClasspath }))
setDestinationDir(file("build/docs/javadoc"))
options {
setMemberLevel(JavadocMemberLevel.PUBLIC)
setOverview("src/main/javadoc/overview.html")
setLocale("en_US")
setJFlags([
// Force Javadoc to use English translations
"-Duser.language=en_US"
])
}
dependsOn delombok
}
2024-06-08 17:09:36 +02:00
allprojects {
group = project.group
2024-06-08 17:35:41 +02:00
version = project.versioningVersion + '-' + project.versioningType + project.versioningTyperelease + project.versioningFork
2024-06-08 17:09:36 +02:00
repositories {
mavenCentral()
}
}