-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
97 lines (87 loc) · 2.56 KB
/
build.gradle
File metadata and controls
97 lines (87 loc) · 2.56 KB
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
plugins {
id 'java-library'
id 'maven-publish'
id 'org.jreleaser' version '1.19.0'
}
repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.code.gson:gson:2.10.1'
testImplementation 'junit:junit:4.13.2'
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
maven(MavenPublication) {
groupId = 'com.authsignal'
artifactId = 'authsignal-java'
version = project.version
from components.java
pom {
name = 'authsignal-java'
description = 'The Authsignal Server SDK for Java.'
url = 'https://github.com/authsignal/authsignal-java'
licenses {
license {
name = 'MIT'
url = 'https://github.com/authsignal/authsignal-java/blob/main/LICENSE.md'
}
}
developers {
developer {
id = 'Authsignal'
name = 'Authsignal'
}
}
scm {
connection = 'scm:git:github.com/authsignal/authsignal-java.git'
developerConnection = 'scm:git:ssh://github.com/authsignal/authsignal-java.git'
url = 'https://github.com/authsignal/authsignal-java/tree/main'
}
}
}
}
repositories {
maven {
url = layout.buildDirectory.dir('staging-deploy')
}
}
}
jreleaser {
project {
java {
groupId = 'com.authsignal'
artifactId = 'authsignal-java'
description = 'The Authsignal Server SDK for Java.'
version = project.version
}
}
signing {
active = 'ALWAYS'
verify = false
secretKey = System.getenv('SIGNING_SECRET_KEY')
passphrase = System.getenv('SIGNING_PASSPHRASE')
}
deploy {
maven {
mavenCentral {
sonatype {
active = 'ALWAYS'
url = 'https://central.sonatype.com/api/v1/publisher'
username = System.getenv('MAVENCENTRAL_USERNAME')
password = System.getenv('MAVENCENTRAL_PASSWORD')
stagingRepository('build/staging-deploy')
}
}
}
}
}
test {
testLogging.showStandardStreams = true
}