|
| 1 | +import org.jetbrains.kotlin.gradle.tasks.KotlinCompile |
| 2 | + |
1 | 3 | plugins {
|
2 | 4 | id 'org.antora' version '1.0.0'
|
3 | 5 | id 'io.spring.antora.generate-antora-yml' version '0.0.1'
|
4 | 6 | id 'io.spring.convention.repository'
|
| 7 | + id 'kotlin' |
5 | 8 | }
|
6 | 9 |
|
7 | 10 | apply plugin: 'io.spring.convention.docs'
|
@@ -33,10 +36,23 @@ tasks.register("generateAntoraResources") {
|
33 | 36 |
|
34 | 37 | dependencies {
|
35 | 38 | testImplementation platform(project(':spring-security-dependencies'))
|
| 39 | + testImplementation project(':spring-security-config') |
| 40 | + testImplementation project(path : ':spring-security-config', configuration : 'tests') |
| 41 | + testImplementation project(':spring-security-test') |
36 | 42 | testImplementation 'com.unboundid:unboundid-ldapsdk'
|
37 | 43 | testImplementation libs.webauthn4j.core
|
| 44 | + testImplementation 'org.jetbrains.kotlin:kotlin-reflect' |
| 45 | + testImplementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8' |
38 | 46 | testImplementation 'org.apache.directory.server:apacheds-core'
|
39 | 47 | testImplementation 'org.springframework:spring-core'
|
| 48 | + testImplementation 'org.springframework:spring-test' |
| 49 | + |
| 50 | + testImplementation 'org.springframework:spring-webmvc' |
| 51 | + testImplementation 'jakarta.servlet:jakarta.servlet-api' |
| 52 | + testImplementation "org.junit.jupiter:junit-jupiter-api" |
| 53 | + testImplementation "org.junit.jupiter:junit-jupiter-params" |
| 54 | + testImplementation "org.junit.jupiter:junit-jupiter-engine" |
| 55 | + testRuntimeOnly 'org.junit.platform:junit-platform-launcher' |
40 | 56 | }
|
41 | 57 |
|
42 | 58 | def generateAttributes() {
|
@@ -78,3 +94,16 @@ def resolvedVersions(Configuration configuration) {
|
78 | 94 | .resolvedArtifacts
|
79 | 95 | .collectEntries { [(it.name + '-version'): it.moduleVersion.id.version] }
|
80 | 96 | }
|
| 97 | + |
| 98 | +test { |
| 99 | + useJUnitPlatform() |
| 100 | +} |
| 101 | + |
| 102 | +tasks.withType(KotlinCompile).configureEach { |
| 103 | + kotlinOptions { |
| 104 | + languageVersion = "1.7" |
| 105 | + apiVersion = "1.7" |
| 106 | + freeCompilerArgs = ["-Xjsr305=strict", "-Xsuppress-version-warnings"] |
| 107 | + jvmTarget = "17" |
| 108 | + } |
| 109 | +} |
0 commit comments