-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
128 lines (107 loc) · 3.96 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.8.10'
id 'maven-publish'
id 'signing'
id 'io.codearte.nexus-staging' version '0.30.0'
}
group = 'io.github.ricardorlg'
version = '1.1.0'
ext {
isReleasedVersion = !project.version.endsWith("-SNAPSHOT")
}
repositories {
mavenCentral()
maven {
url = "https://oss.sonatype.org/content/repositories/snapshots"
}
}
dependencies {
implementation platform("software.amazon.awssdk:bom:$aws_version")
implementation 'software.amazon.awssdk:devicefarm'
implementation "io.arrow-kt:arrow-fx-coroutines:$arrow_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlin_coroutines_version"
implementation "io.github.microutils:kotlin-logging:$kotlin_logging_version"
implementation "org.http4k:http4k-core:$http4k_version"
implementation "com.jakewharton.picnic:picnic:$picnic_version"
testImplementation "org.slf4j:slf4j-simple:$slf4j_version"
testImplementation "io.mockk:mockk:$mockk_version"
testImplementation "io.kotest:kotest-runner-junit5:$kotest_version"
testImplementation "io.kotest:kotest-assertions-core:$kotest_version"
testImplementation "io.kotest.extensions:kotest-assertions-arrow:$kotest_arrow_extension_version"
testImplementation "io.kotest:kotest-extensions-htmlreporter:$kotest_version"
testImplementation "io.kotest:kotest-property:$kotest_version"
}
java {
withSourcesJar()
withJavadocJar()
}
jar {
manifest {
attributes("Implementation-Title": "Device Farm Tractor",
"Implementation-Version": project.version.toString())
}
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
kotlinOptions {
freeCompilerArgs += "-opt-in=kotlin.time.ExperimentalTime"
}
}
test {
testLogging.showStandardStreams = true
useJUnitPlatform()
}
publishing {
repositories {
maven {
name = "MavenCentral"
credentials {
username findProperty("ossrhUsername") ?: System.getenv("OSSRH_USERNAME")
password findProperty("ossrhPassword") ?: System.getenv("OSSRH_PASSWORD")
}
if (!isReleasedVersion) {
url "https://oss.sonatype.org/content/repositories/snapshots"
} else {
url "https://oss.sonatype.org/service/local/staging/deploy/maven2"
}
}
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/ricardorlg/aws-device-farm-tractor")
credentials {
username = findProperty("GITHUB_ACTOR") ?: System.getenv("GITHUB_ACTOR")
password = findProperty("GITHUB_TOKEN") ?: System.getenv("GITHUB_TOKEN")
}
}
}
publications {
deviceFarmTractor(MavenPublication) {
from(components.java)
pom {
name = "Device Farm Tractor"
description = "Run Serenity BDD appium tests in AWS device farm"
url = "https://github.com/ricardorlg/aws-device-farm-tractor"
scm {
connection = "scm:git:git@github.com:ricardorlg/aws-device-farm-tractor.git"
developerConnection = "scm:git:ssh://github.com/ricardorlg/aws-device-farm-tractor.git"
url = "https://github.com/ricardorlg/aws-device-farm-tractor"
}
licenses {
license {
name = 'MIT License'
url = 'https://opensource.org/licenses/MIT'
}
}
developers {
developer {
id = 'ricardorlg'
name = 'Ricardo Larrahondo'
email = 'ricardolarrahondo2@hotmail.com'
}
}
}
}
}
}
signing {
sign publishing.publications.deviceFarmTractor
}