Skip to content

Commit

Permalink
add aspectj and compile opts
Browse files Browse the repository at this point in the history
  • Loading branch information
baev committed Sep 1, 2023
1 parent 889af7d commit 5d90c4d
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,31 @@ version = 1.3

val allureVersion = "2.24.0"
val cucumberVersion = "7.13.0"
val aspectJVersion = "1.9.20"

tasks.withType(JavaCompile::class) {
sourceCompatibility = "${JavaVersion.VERSION_1_8}"
targetCompatibility = "${JavaVersion.VERSION_1_8}"
options.encoding = "UTF-8"
options.compilerArgs.add("-parameters")
}

tasks {
compileJava {
options.encoding = "UTF-8"
}
compileTestJava {
options.encoding = "UTF-8"
}
val agent: Configuration by configurations.creating {
isCanBeConsumed = true
isCanBeResolved = true
}

tasks.withType(Test::class) {
tasks.test {
ignoreFailures = true
useJUnitPlatform()
}

repositories {
mavenLocal()
mavenCentral()
jvmArgs = listOf(
"-javaagent:${agent.singleFile}"
)
}

dependencies {
agent("org.aspectj:aspectjweaver:${aspectJVersion}")

testImplementation(platform("io.cucumber:cucumber-bom:$cucumberVersion"))
testImplementation("io.cucumber:cucumber-junit-platform-engine")
testImplementation("io.cucumber:cucumber-java")
Expand All @@ -51,3 +50,7 @@ dependencies {

testImplementation("org.slf4j:slf4j-simple:1.7.30")
}

repositories {
mavenCentral()
}

0 comments on commit 5d90c4d

Please sign in to comment.