-
Notifications
You must be signed in to change notification settings - Fork 35
/
build.gradle.kts
117 lines (101 loc) · 3.68 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
106
107
108
109
110
111
112
113
114
115
116
117
@file:Suppress("UnstableApiUsage")
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath(jcp)
classpath(mavenPublish)
}
}
plugins {
mavenPublish version Versions.mavenPublish
dokka version Versions.dokka
idea
kotlin version Versions.kotlin apply false
}
group = Versions.groupID
version = Versions.project
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
repositories {
mavenCentral()
}
allprojects {
plugins.withId(mavenPublishBase) {
group = Versions.groupID
version = Versions.project
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/Kotlin/kotlin-spark-api")
credentials {
username = project.findProperty("gpr.user") as String?
?: System.getenv("GITHUB_ACTOR")
password = project.findProperty("gpr.key") as String?
?: System.getenv("GITHUB_TOKEN")
}
}
}
}
mavenPublishing {
pomFromGradleProperties()
publishToMavenCentral()
// The username and password for Sonatype OSS can be provided as Gradle properties
// called mavenCentralUsername and mavenCentralPassword to avoid having to commit them.
// You can also supply them as environment variables called
// ORG_GRADLE_PROJECT_mavenCentralUsername and
// ORG_GRADLE_PROJECT_mavenCentralPassword.
// also ORG_GRADLE_PROJECT_signingInMemoryKey=exported_ascii_armored_key
// # optional
// ORG_GRADLE_PROJECT_signingInMemoryKeyId=24875D73
// # if key was created with a password
// ORG_GRADLE_PROJECT_signingInMemoryKeyPassword=secret
signAllPublications()
pom {
name.set("Kotlin Spark API")
description.set("Kotlin for Apache Spark")
packaging = "pom"
url.set("https://maven.apache.org")
inceptionYear.set("2019")
organization {
name.set("JetBrains")
url.set("https://www.jetbrains.com/")
}
licenses {
license {
name.set("Apache License, Version 2.0")
url.set("https://www.apache.org/licenses/LICENSE-2.0.txt")
}
}
developers {
developer {
id.set("asm0dey")
name.set("Pasha Finkelshteyn")
email.set("asm0dey@jetbrains.com")
timezone.set("GMT+3")
}
developer {
id.set("vitaly.khudobakhshov")
name.set("Vitaly Khudobakhshov")
email.set("vitaly.khudobakhshov@jetbrains.com")
timezone.set("GMT+3")
}
developer {
id.set("Jolanrensen")
name.set("Jolan Rensen")
email.set("jolan.rensen@jetbrains.com")
timezone.set("GMT+1")
}
}
scm {
connection.set("scm:git:https://github.com/Kotlin/kotlin-spark-api.git")
url.set("https://github.com/Kotlin/kotlin-spark-api")
tag.set("HEAD")
}
}
}
}
}