-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathopenlayer.publish.gradle.kts
54 lines (45 loc) · 1.66 KB
/
openlayer.publish.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
import org.gradle.api.publish.PublishingExtension
import org.gradle.api.publish.maven.MavenPublication
import org.gradle.kotlin.dsl.configure
import org.gradle.kotlin.dsl.register
import org.gradle.kotlin.dsl.get
import com.vanniktech.maven.publish.JavaLibrary
import com.vanniktech.maven.publish.JavadocJar
import com.vanniktech.maven.publish.MavenPublishBaseExtension
import com.vanniktech.maven.publish.SonatypeHost
plugins {
id("com.vanniktech.maven.publish")
}
repositories {
gradlePluginPortal()
mavenCentral()
}
extra["signingInMemoryKey"] = System.getenv("GPG_SIGNING_KEY")
extra["signingInMemoryKeyId"] = System.getenv("GPG_SIGNING_KEY_ID")
extra["signingInMemoryKeyPassword"] = System.getenv("GPG_SIGNING_PASSWORD")
configure<MavenPublishBaseExtension> {
signAllPublications()
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
this.coordinates(project.group.toString(), project.name, project.version.toString())
pom {
name.set("Openlayer API")
description.set("API for interacting with the Openlayer server.")
url.set("https://openlayer.com/docs/api-reference/rest/overview")
licenses {
license {
name.set("Apache-2.0")
}
}
developers {
developer {
name.set("Openlayer")
email.set("[email protected]")
}
}
scm {
connection.set("scm:git:git://github.com/openlayer-ai/openlayer-java.git")
developerConnection.set("scm:git:git://github.com/openlayer-ai/openlayer-java.git")
url.set("https://github.com/openlayer-ai/openlayer-java")
}
}
}