forked from apple/app-store-server-library-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
88 lines (77 loc) · 2.69 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
88
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: 'signing'
apply plugin: 'signing'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
dependencies {
implementation 'com.squareup.okhttp3:okhttp:4.11.0'
implementation 'com.google.code.gson:gson:2.10.1'
implementation 'com.auth0:java-jwt:4.4.0'
implementation 'org.bouncycastle:bcprov-jdk15on:1.70'
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.0'
}
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()
}