-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle.kts
98 lines (77 loc) · 2.7 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.7.10"
`maven-publish`
}
group = "counters"
version = "2.5.2"
repositories {
mavenCentral()
maven { url = uri("https://maven.pkg.github.com/counters/jvm-minter-grpc-class")
credentials {
username = project.findProperty("gpr.user") as String? ?: System.getenv("GITHUB_USER")
password = project.findProperty("gpr.key") as String? ?: System.getenv("GITHUB_TOKEN")
}
}
}
dependencies {
testImplementation(kotlin("test-junit5"))
testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.0")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.9.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
implementation("io.github.microutils:kotlin-logging-jvm:3.0.4")
implementation("org.slf4j:slf4j-simple:2.0.5") // http://saltnlight5.blogspot.com/2013/08/how-to-configure-slf4j-with-different.html
implementation("joda-time:joda-time:2.12.2")
implementation("com.google.code.gson:gson:2.10")
implementation(group = "org.json", name = "json", version = "20220320")
implementation("com.squareup.okhttp3:okhttp:4.10.0")
implementation("com.github.kittinunf.fuel:fuel:2.3.1")
implementation("com.github.kittinunf.fuel:fuel-coroutines:2.3.1")
implementation("counters:jvm-minter-grpc-class:1.3.2")
implementation("io.grpc:grpc-netty-shaded:1.50.2")
implementation("io.grpc:grpc-kotlin-stub:1.3.0")
implementation("io.grpc:grpc-protobuf:1.50.2")
// implementation("io.grpc:grpc-stub:1.50.2")
// implementation("com.google.protobuf:protobuf-java:3.21.9")
// implementation("com.google.protobuf:protobuf-kotlin:3.20.3")
// implementation(kotlin("stdlib-jdk8"))
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
/*
application {
mainClassName = "MainKt"
}
*/
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions {
jvmTarget = "1.8"
}
val compileTestKotlin: KotlinCompile by tasks
compileTestKotlin.kotlinOptions {
jvmTarget = "1.8"
}
/*plugins {
`maven-publish`
}*/
publishing {
repositories {
maven {
name = "MinterKotlinSDK"
url = uri("https://maven.pkg.github.com/counters/minter-kotlin-sdk")
credentials {
username = project.findProperty("gpr.user") as String? ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") as String? ?: System.getenv("GITHUB_TOKEN")
}
}
}
publications {
register<MavenPublication>("gpr") {
from(components["java"])
}
}
}