-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
87 lines (72 loc) · 1.72 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
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
}
group = 'io.blockmason'
version = '0.1.0'
task sourcesJar(type: Jar) {
archiveClassifier = 'sources'
from sourceSets.main.allJava
}
task javadocJar(type: Jar) {
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
pom {
name = 'Link SDK for Java'
description = 'Blockmason Link SDK for Java/Android applications.'
url = 'https://blockmason.link/'
developers {
developer {
id = 'devin'
name = 'Devin Canterberry'
email = '[email protected]'
}
}
licenses {
license {
name = 'MIT'
url = 'https://opensource.org/licenses/MIT'
}
}
scm {
connection = 'scm:git:git://github.com/blockmason/link-sdk.java.git'
developerConnection = 'scm:git:ssh://[email protected]/blockmason/link-sdk.java.git'
url = 'https://github.com/blockmason/link-sdk.java'
}
}
}
}
repositories {
maven {
url = "$buildDir/repos/releases"
}
}
}
signing {
useInMemoryPgpKeys(findProperty('SIGNING_KEY'), '')
sign publishing.publications.mavenJava
}
jar {
manifest {
attributes('Implementation-Title': project.name, 'Implementation-Version': project.version)
}
}
repositories {
jcenter()
}
dependencies {
implementation 'org.json:json:20180813'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.4.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.4.2'
}
test {
useJUnitPlatform()
}