This repository has been archived by the owner on Feb 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 49
/
build.gradle.kts
105 lines (89 loc) · 2.58 KB
/
build.gradle.kts
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.7.10"
id("org.jetbrains.dokka") version "1.7.10"
id("io.gatling.gradle") version "3.9.5.6"
id("me.champeau.jmh") version "0.6.6"
id("maven-publish")
id("signing")
idea
}
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
fun add(s: String) {
api(s)
// weird, was expecting gatling transitively depends on main's dependencies
gatlingImplementation(s)
}
add("com.github.phisgr:gatling-grpc:0.17.0")
add("io.gatling:gatling-core-java:3.9.5")
add("com.github.phisgr:gatling-kt-ext:0.5.0")
gatlingImplementation(project(":scala-tests"))
jmh(project(":scala-tests"))
}
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
freeCompilerArgs = freeCompilerArgs + "-Xlambdas=indy"
}
}
java {
withJavadocJar()
withSourcesJar()
}
val javadocJar = tasks.named<Jar>("javadocJar") {
from(tasks.named("dokkaHtml"))
}
publishing {
repositories {
maven {
name = "sonatype"
setUrl("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
credentials {
username = properties["ossrhUsername"] as String?
password = properties["ossrhPassword"] as String?
}
}
}
publications {
create<MavenPublication>("maven") {
groupId = "com.github.phisgr"
artifactId = "gatling-grpc-kt"
version = "0.17.0"
from(components["java"])
pom {
name.set("gatling-grpc-kt")
description.set("Kotlin/Java binding for Gatling-gRPC")
url.set("https://github.com/phiSgr/gatling-grpc/tree/master/gatling-grpc-kt")
licenses {
license {
name.set("APL2")
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
}
}
developers {
developer {
id.set("phiSgr")
name.set("George Leung")
email.set("[email protected]")
}
}
scm {
url.set("https://github.com/phiSgr/gatling-grpc/tree/master/gatling-grpc-kt")
}
}
}
}
}
signing {
sign(publishing.publications)
}
jmh {
iterations.set(3)
warmupIterations.set(3)
fork.set(10)
threads.set(1)
profilers.set(listOf("gc"))
}