You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.6 KiB
Groovy

import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.8.20'
}
def java_version = 17
java {
sourceCompatibility = JavaVersion.toVersion(java_version)
targetCompatibility = JavaVersion.toVersion(java_version)
}
tasks.withType(KotlinCompile).configureEach {
kotlinOptions {
jvmTarget = java_version.toString()
}
}
dependencies {
implementation 'com.microsoft.playwright:playwright:1.34.0'
implementation 'org.testng:testng:7.8.0'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1'
implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.8.20'
implementation 'org.jetbrains.kotlin:kotlin-reflect:1.8.20'
implementation 'org.slf4j:slf4j-api:1.7.32'
implementation 'org.projectlombok:lombok:1.18.30'
implementation 'org.jsoup:jsoup:1.15.4'
implementation 'org.testng:testng:7.8.0'
implementation("io.rest-assured:rest-assured:5.1.1")
}
repositories {
mavenLocal()
mavenCentral()
google()
maven {
url 'https://repo.maven.apache.org/maven2/'
}
maven {
url "https://plugins.gradle.org/m2"
}
maven {
url "https://repo1.maven.org/maven2/"
}
}
test {
systemProperty('encryptionKey', System.getProperty('encryptionKey'))
useTestNG() {
listeners << 'core.listeners.TestNGListener'
suites('src/test/resources/testng.xml')
}
jvmArgs('--add-opens', 'java.base/java.lang=ALL-UNNAMED')
jvmArgs('--add-opens', 'java.base/java.lang.invoke=ALL-UNNAMED')
jvmArgs('--add-opens', 'java.base/java.nio=ALL-UNNAMED')
}