-
Notifications
You must be signed in to change notification settings - Fork 9
/
publish.gradle
60 lines (57 loc) · 2.04 KB
/
publish.gradle
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
publishing {
publications {
maven(MavenPublication) {
from components.java
pom {
group = 'dev.openfga'
name = 'openfga-sdk'
version = '0.7.2'
description = 'This is an autogenerated Java SDK for OpenFGA. It provides a wrapper around the [OpenFGA API definition](https://openfga.dev/api).'
url = 'https://openfga.dev'
licenses {
license {
name = 'Apache-2.0'
url = 'https://github.com/openfga/java-sdk/blob/main/LICENSE'
}
}
developers {
developer {
name = 'OpenFGA'
url = 'https://openfga.dev'
}
}
scm {
url = 'https://github.com/openfga/java-sdk'
connection = 'scm:git:git@github.com:openfga/java-sdk.git'
developerConnection = 'scm:git:git@github.com:openfga/java-sdk.git'
}
}
}
}
repositories {
maven {
name = 'GitHubPackages'
url = 'https://maven.pkg.github.com/openfga/java-sdk'
credentials {
username = System.getenv('GITHUB_ACTOR')
password = System.getenv('GITHUB_TOKEN')
}
}
}
}
signing {
def signingKey = System.getenv('ORG_GRADLE_PROJECT_SIGNINGKEY')
def signingPassword = System.getenv('ORG_GRADLE_PROJECT_SIGNINGPASSWORD')
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications.maven
}
nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri('https://s01.oss.sonatype.org/service/local/'))
snapshotRepositoryUrl.set(uri('https://s01.oss.sonatype.org/content/repositories/snapshots/'))
username.set(System.getenv('MAVEN_USERNAME'))
password.set(System.getenv('MAVEN_PASSWORD'))
}
}
}