java-tutorials/gradle-modules/gradle-7/gradle-javadoc/build.gradle

27 lines
495 B
Groovy

plugins {
id 'java'
}
group 'org.example'
version '1.0-SNAPSHOT'
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
javadoc {
destinationDir = file("${buildDir}/docs/javadoc")
include 'com/baeldung/addition/**'
exclude 'com/baeldung/subtraction/**'
}
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
}
test {
useJUnitPlatform()
}