Add unit testing dependencies
This commit is contained in:
parent
2c5fd57694
commit
1797be0037
4 changed files with 32 additions and 4 deletions
|
@ -4,23 +4,43 @@ plugins {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
// -> Runtime <-
|
||||||
// Lombok
|
// Lombok
|
||||||
compileOnly 'org.projectlombok:lombok:' + project.dependencyLombok
|
compileOnly 'org.projectlombok:lombok:' + project.dependencyLombok
|
||||||
annotationProcessor 'org.projectlombok:lombok:' + project.dependencyLombok
|
annotationProcessor 'org.projectlombok:lombok:' + project.dependencyLombok
|
||||||
|
|
||||||
// JetBrains annotations
|
// JetBrains Annotations
|
||||||
compileOnly 'org.jetbrains:annotations:' + project.dependencyJetbrainsAnnotations
|
compileOnly 'org.jetbrains:annotations:' + project.dependencyJetbrainsAnnotations
|
||||||
|
|
||||||
// ANSI support
|
// ANSI support
|
||||||
implementation 'org.fusesource.jansi:jansi:' + project.dependencyJansi
|
implementation 'org.fusesource.jansi:jansi:' + project.dependencyJansi
|
||||||
|
|
||||||
|
// -> Testing <-
|
||||||
|
// Jetbrains Annotations
|
||||||
|
testCompileOnly 'org.jetbrains:annotations:' + project.dependencyJetbrainsAnnotations
|
||||||
|
|
||||||
|
// 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
|
||||||
|
|
||||||
|
// jOOR
|
||||||
|
testImplementation 'org.jooq:joor:' + project.dependencyjOOR
|
||||||
}
|
}
|
||||||
|
|
||||||
javadoc.options {
|
javadoc.options {
|
||||||
setMemberLevel(JavadocMemberLevel.PUBLIC)
|
setMemberLevel(JavadocMemberLevel.PUBLIC)
|
||||||
setOverview("src/main/javadoc/overview.html")
|
setOverview("src/main/javadoc/overview.html")
|
||||||
setLocale("en_US");
|
setLocale("en_US")
|
||||||
setJFlags([
|
setJFlags([
|
||||||
// Force Javadoc to use English translations
|
// Force Javadoc to use English translations
|
||||||
"-Duser.language=en_US"
|
"-Duser.language=en_US"
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
test {
|
||||||
|
useJUnitPlatform()
|
||||||
|
testLogging {
|
||||||
|
events "passed", "skipped", "failed"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -7,6 +7,11 @@ dependencies {
|
||||||
// Lombok
|
// Lombok
|
||||||
compileOnly 'org.projectlombok:lombok:' + project.dependencyLombok
|
compileOnly 'org.projectlombok:lombok:' + project.dependencyLombok
|
||||||
annotationProcessor 'org.projectlombok:lombok:' + project.dependencyLombok
|
annotationProcessor 'org.projectlombok:lombok:' + project.dependencyLombok
|
||||||
|
|
||||||
|
// 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
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.register('javadocAll', Javadoc) {
|
tasks.register('javadocAll', Javadoc) {
|
||||||
|
|
|
@ -8,6 +8,8 @@ versioningFork=
|
||||||
dependencyLombok=1.18.32
|
dependencyLombok=1.18.32
|
||||||
dependencyJetbrainsAnnotations=24.1.0
|
dependencyJetbrainsAnnotations=24.1.0
|
||||||
dependencyJansi=2.4.1
|
dependencyJansi=2.4.1
|
||||||
|
dependencyJUnit=11.0-M2
|
||||||
|
dependencyjOOR=0.9.14
|
||||||
|
|
||||||
# Plugins
|
# Plugins
|
||||||
pluginShadow=8.1.1
|
pluginShadow=8.1.1
|
||||||
|
|
|
@ -6,14 +6,15 @@ plugins {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
// -> Runtime <-
|
||||||
// Lombok
|
// Lombok
|
||||||
compileOnly 'org.projectlombok:lombok:' + project.dependencyLombok
|
compileOnly 'org.projectlombok:lombok:' + project.dependencyLombok
|
||||||
annotationProcessor 'org.projectlombok:lombok:' + project.dependencyLombok
|
annotationProcessor 'org.projectlombok:lombok:' + project.dependencyLombok
|
||||||
|
|
||||||
// JetBrains annotations
|
// JetBrains Annotations
|
||||||
compileOnly 'org.jetbrains:annotations:' + project.dependencyJetbrainsAnnotations
|
compileOnly 'org.jetbrains:annotations:' + project.dependencyJetbrainsAnnotations
|
||||||
|
|
||||||
// Project
|
// -> Project <-
|
||||||
implementation project(":base")
|
implementation project(":base")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue