| plugins { |
| id 'groovy' |
| id 'org.springframework.boot' version '3.5.4' |
| id 'io.spring.dependency-management' version '1.1.7' |
| id 'codenarc' |
| } |
|
|
| group = 'com.chewy.robotics.runaround' |
| version = '0.0.1-SNAPSHOT' |
|
|
| java { |
| toolchain { |
| languageVersion = JavaLanguageVersion.of(21) |
| } |
| } |
|
|
| |
| bootJar { |
| archiveFileName = 'skynet.jar' |
| } |
|
|
| repositories { |
| mavenCentral() |
| } |
|
|
| dependencies { |
| implementation 'org.springframework.boot:spring-boot-starter' |
| implementation 'org.springframework.boot:spring-boot-starter-web' |
| implementation 'org.springframework.boot:spring-boot-starter-validation' |
| implementation 'org.springframework.boot:spring-boot-starter-actuator' |
| implementation 'org.apache.groovy:groovy' |
|
|
| |
| compileOnly 'org.springframework.boot:spring-boot-configuration-processor' |
| annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor' |
|
|
| |
| testImplementation 'org.springframework.boot:spring-boot-starter-test' |
| testImplementation 'org.spockframework:spock-core:2.3-groovy-4.0' |
| testImplementation 'org.spockframework:spock-spring:2.3-groovy-4.0' |
| testImplementation 'cglib:cglib-nodep:3.3.0' |
| testRuntimeOnly 'org.junit.platform:junit-platform-launcher' |
|
|
| |
| codenarc 'org.codenarc:CodeNarc:3.4.0' |
| } |
|
|
| tasks.named('test') { |
| useJUnitPlatform() |
|
|
| |
| testLogging { |
| events "passed", "skipped", "failed" |
| exceptionFormat "full" |
| showStandardStreams = false |
| } |
|
|
| |
| reports { |
| html.required = true |
| junitXml.required = true |
| } |
| } |
|
|
| |
| java { |
| withSourcesJar() |
| withJavadocJar() |
| } |
|
|
| |
| javadoc { |
| options.addBooleanOption('html5', true) |
| options.addStringOption('Xdoclint:none', '-quiet') |
| if(javadoc.options.class.name == "org.gradle.external.javadoc.StandardJavadocDocletOptions") { |
| javadoc.options.addStringOption('tag', 'apiNote:a:API Note:') |
| javadoc.options.addStringOption('tag', 'implSpec:a:Implementation Requirements:') |
| javadoc.options.addStringOption('tag', 'implNote:a:Implementation Note:') |
| } |
| } |
|
|
| |
| codenarc { |
| toolVersion = '3.4.0' |
| configFile = file('config/codenarc/ruleset.groovy') |
| reportsDir = file('build/reports/codenarc') |
| } |
|
|
| codenarcMain { |
| reports { |
| html.required = true |
| xml.required = true |
| } |
| } |
|
|
| codenarcTest { |
| reports { |
| html.required = true |
| xml.required = true |
| } |
| } |
|
|