-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
106 lines (94 loc) · 3.14 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
plugins {
kotlin("jvm") version "2.0.21"
`java-library`
`maven-publish`
signing
id("org.jmailen.kotlinter") version "5.0.1"
id("org.jetbrains.dokka") version "2.0.0"
}
group = "com.lapanthere"
repositories {
mavenCentral()
}
dependencies {
implementation(kotlin("reflect"))
val flinkVersion = "1.20.0"
implementation("org.apache.flink:flink-java:$flinkVersion")
testImplementation("org.apache.flink:flink-test-utils:$flinkVersion")
testImplementation("org.apache.flink:flink-core:$flinkVersion:tests")
testImplementation(platform("org.junit:junit-bom:5.11.4"))
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("org.junit.vintage:junit-vintage-engine")
}
tasks.register<Jar>("sourcesJar") {
archiveClassifier.set("sources")
from(sourceSets.main.get().allSource)
}
tasks.register<Jar>("javadocJar") {
group = JavaBasePlugin.DOCUMENTATION_GROUP
archiveClassifier.set("javadoc")
from(tasks.named("dokkaHtml"))
}
kotlin {
explicitApi()
}
publishing {
repositories {
maven {
name = "Github"
url = uri("https://maven.pkg.github.com/cyberdelia/flink-kotlin")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
maven {
name = "OSSRH"
url = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
credentials {
username = System.getenv("OSSRH_USERNAME")
password = System.getenv("OSSRH_PASSWORD")
}
}
}
publications {
create<MavenPublication>("default") {
from(components["java"])
artifact(tasks["sourcesJar"])
artifact(tasks["javadocJar"])
pom {
name.set("flink-kotlin")
description.set("Kotlin extensions for Apache Flink")
url.set("https://github.com/cyberdelia/flink-kotlin")
scm {
connection.set("scm:git:git://github.com/cyberdelia/flink-kotlin.git")
developerConnection.set("scm:git:ssh://github.com/cyberdelia/flink-kotlin.git")
url.set("https://github.com/cyberdelia/flink-kotlin")
}
licenses {
license {
name.set("MIT License")
url.set("http://www.opensource.org/licenses/mit-license.php")
}
}
developers {
developer {
id.set("cyberdelia")
name.set("Timothée Peignier")
email.set("[email protected]")
organization.set("La Panthère")
organizationUrl.set("https://lapanthere.com")
}
}
}
}
}
}
signing {
useInMemoryPgpKeys(
System.getenv("GPG_KEY_ID"),
System.getenv("GPG_PRIVATE_KEY"),
System.getenv("GPG_PASSPHRASE")
)
sign(publishing.publications)
}