-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
62 lines (50 loc) · 1.24 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
plugins {
kotlin("jvm") version com.ecwid.gradle.Versions.kotlin apply false
}
subprojects {
group = "com.ecwid.upsource-rpc"
version = "0.9.21"
repositories {
mavenCentral()
}
apply(plugin = "kotlin")
apply(plugin = "java-library")
apply(plugin = "maven-publish")
configure<JavaPluginExtension> {
withJavadocJar()
withSourcesJar()
}
// kotlin
dependencies {
"implementation"(kotlin("stdlib", com.ecwid.gradle.Versions.kotlin))
"implementation"(kotlin("reflect", com.ecwid.gradle.Versions.kotlin))
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.jvmTarget = "17"
}
tasks.withType<JavaCompile> {
sourceCompatibility = "17"
targetCompatibility = "17"
}
// junit
dependencies {
"testImplementation"(com.ecwid.gradle.Dependencies.JUnit.jupiterApi)
"testRuntimeOnly"(com.ecwid.gradle.Dependencies.JUnit.jupiterEngine)
}
tasks.withType<Test> {
useJUnitPlatform()
}
// Publishing
configure<PublishingExtension> {
repositories {
maven {
name = "GitHubPackages"
url = java.net.URI("https://maven.pkg.github.com/turchenkoalex/upsource-rpc")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
}
}