-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
79 lines (69 loc) · 2.05 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
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
}
repositories {
jcenter()
}
dependencies {
implementation 'com.google.code.gson:gson:2.8.9'
implementation 'commons-codec:commons-codec:1.15'
compileOnly "org.projectlombok:lombok:1.18.4"
annotationProcessor("org.projectlombok:lombok:1.18.4")
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.6.2'
}
test {
useJUnitPlatform()
exclude 'io/craftgate/sample/**'
}
java {
withJavadocJar()
withSourcesJar()
}
group = 'io.craftgate'
sourceCompatibility = '1.8'
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
pom {
name = 'Craftgate'
description = 'Craftgate Java API Client'
url = 'https://github.com/craftgate/craftgate-java-client'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'Craftgate'
name = 'Craftgate'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:git://github.com/craftgate/craftgate-java-client'
developerConnection = 'scm:git:[email protected]:craftgate/craftgate-java-client'
url = 'https://github.com/craftgate/craftgate-java-client'
}
}
}
}
repositories {
maven {
name 'nexus'
url "https://oss.sonatype.org/service/local/staging/deploy/maven2"
credentials {
username project.repoUser
password project.repoPassword
}
}
}
}
signing {
sign publishing.publications.mavenJava
}