-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
98 lines (86 loc) · 2.41 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
plugins {
id "idea"
id "jacoco"
id "maven-publish"
id "org.jetbrains.kotlin.jvm" version "1.9.22"
id "org.jlleitschuh.gradle.ktlint" version "12.1.1"
}
ext {
kotlinVersion = "1.9.22"
playwrightVersion = "1.46.0"
junitVersion = "5.11.0"
assertjVersion = "3.26.3"
slf4jVersion = "2.0.16"
logbackVersion = "1.5.8"
}
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}
ktlint {
version.set("1.1.1")
}
repositories {
mavenCentral()
}
[compileKotlin, compileTestKotlin]*.kotlinOptions*.jvmTarget = "17"
dependencies {
api "com.microsoft.playwright:playwright:$playwrightVersion"
api "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"
api "org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion"
testImplementation "org.slf4j:slf4j-api:$slf4jVersion"
testImplementation "ch.qos.logback:logback-classic:$logbackVersion"
testImplementation "org.assertj:assertj-core:$assertjVersion"
testImplementation "org.junit.jupiter:junit-jupiter:$junitVersion"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
}
test {
useJUnitPlatform()
testLogging {
showStandardStreams = true
}
}
jacocoTestReport {
reports {
xml.required = true
html.required = false
}
}
check.dependsOn jacocoTestReport
publishing {
publications {
maven(MavenPublication) {
from components.java
pom {
name = "playwright-page-object"
description = "Page Object pattern for Playwright framework"
licenses {
license {
name = "The MIT License"
url = "https://opensource.org/license/mit"
}
}
developers {
developer {
name = "Romanov Alex"
email = "[email protected]"
}
}
scm {
url = "https://github.com/Romanow/playwright-page-object/"
}
}
}
}
repositories {
maven {
url = uri("https://maven.pkg.github.com/Romanow/playwright-page-object")
credentials {
username = System.getenv("GITHUB_USER")
password = System.getenv("GITHUB_TOKEN")
}
}
}
}