-
Notifications
You must be signed in to change notification settings - Fork 38
/
build.gradle
87 lines (77 loc) · 2.73 KB
/
build.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
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
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: 'signing'
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
dependencies {
implementation 'com.squareup.okhttp3:okhttp:4.12.0'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.16.1'
implementation 'com.auth0:java-jwt:4.4.0'
implementation 'org.bouncycastle:bcprov-jdk18on:1.77'
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.2'
testImplementation 'org.mockito:mockito-core:5.14.2'
}
repositories {
mavenCentral()
}
java {
withSourcesJar()
withJavadocJar()
}
javadoc {
source = sourceSets.main.allJava
}
signing {
def signingKey = findProperty("signingKey")
def signingPassword = findProperty("signingPassword")
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications
}
publishing {
publications {
maven(MavenPublication) {
groupId = 'com.apple.itunes.storekit'
artifactId = 'app-store-server-library'
from components.java
pom {
name = "App Store Server Library"
description = "The Java server library for the App Store Server API and App Store Server Notifications"
url = "https://github.com/apple/app-store-server-library-java/"
licenses {
license {
name = "MIT License"
url = "https://github.com/apple/app-store-server-library-java/blob/main/LICENSE.txt"
}
}
developers {
developer {
id = 'app-store-server-library-project-authors'
name = 'App Store Server Library project authors'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:git://github.com:apple/app-store-server-library-java.git'
developerConnection = 'scm:git:ssh://github.com:apple/app-store-server-library-java.git'
url = 'https://github.com/apple/app-store-server-library-java/'
}
}
}
}
repositories {
maven {
credentials {
username findProperty("mavenUsername")
password findProperty("mavenPassword")
}
if(project.version.endsWith('-SNAPSHOT')) {
url "https://s01.oss.sonatype.org/content/repositories/snapshots/"
} else {
url "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
}
}
}
}
test {
useJUnitPlatform()
}