-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
84 lines (70 loc) · 2.08 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
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
id 'io.github.gradle-nexus.publish-plugin' version '1.1.0'
}
version '1.0.3'
group 'com.schibsted.account'
repositories {
mavenCentral()
}
dependencies {
compile('com.konghq:unirest-java:3.10.00')
compile('com.nimbusds:oauth2-oidc-sdk:9.35')
compile('ch.qos.logback:logback-core:1.2.3')
compile('ch.qos.logback:logback-classic:1.2.3')
compile('org.slf4j:slf4j-api:1.7.25')
testCompile('junit:junit:4.12')
testCompile('org.mockito:mockito-core:2.+')
}
java {
withJavadocJar()
withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
test {
beforeTest { descriptor ->
logger.lifecycle("Running test: " + descriptor)
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
pom {
name = 'Schibsted account SDK Java'
packaging = 'jar'
description = "Schibsted account Java SDK ${project.version}"
url = 'https://github.com/schibsted/account-sdk-java'
scm {
connection = 'scm:git:https://github.com/schibsted/account-sdk-java.git'
url = 'https://github.com/schibsted/account-sdk-java'
}
licenses {
license {
name = 'MIT License'
url = 'https://opensource.org/licenses/MIT'
}
}
developers {
developer {
id = 'schibsted-account'
name = 'Schibsted account team'
email = '[email protected]'
}
}
}
}
}
}
nexusPublishing {
repositories {
sonatype()
}
}
signing {
useInMemoryPgpKeys(new String(System.getenv('SIGNING_KEY').decodeBase64()), System.getenv('SIGNING_PASSWORD'))
sign publishing.publications.mavenJava
}