-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
90 lines (81 loc) · 2.38 KB
/
Copy pathbuild.gradle
File metadata and controls
90 lines (81 loc) · 2.38 KB
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
89
90
plugins {
id 'java'
id 'maven-publish'
id 'signing'
}
group 'io.github.kascoder'
version '0.4'
sourceCompatibility = 1.11
repositories {
mavenCentral()
}
dependencies {
compile 'com.fasterxml.jackson.core:jackson-databind:2.10.0'
compile 'org.slf4j:slf4j-api:1.7.30'
compileOnly 'org.projectlombok:lombok:1.18.12'
annotationProcessor 'org.projectlombok:lombok:1.18.12'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
java {
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'vkclient'
from components.java
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
pom {
name = 'Vk Client'
description = 'Vkontakte API java client'
url = 'https://github.com/kascoder/vkclient'
issueManagement {
system = 'GitHub'
url = 'https://github.com/kascoder/vkclient/issues'
}
licenses {
license {
name = 'Apache License 2.0'
url = 'https://github.com/kascoder/vkclient/blob/master/LICENSE'
distribution = 'repo'
}
}
scm {
url = 'https://github.com/kascoder/vkclient'
connection = 'scm:git:git://github.com/kascoder/vkclient.git'
developerConnection = 'scm:git:ssh://git@github.com:kascoder/vkclient.git'
}
developers {
developer {
name = 'Pavel Kasper'
}
}
}
}
}
repositories {
maven {
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2"
credentials {
username = sonatypeUsername
password = sonatypePassword
}
}
}
}
signing {
sign publishing.publications.mavenJava
}
javadoc {
if (JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}