-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdeploy.gradle
68 lines (63 loc) · 1.99 KB
/
deploy.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
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: 'signing'
group = 'dev.klepto.unreflect'
archivesBaseName = 'unreflect'
version = '1.5'
java {
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'unreflect'
from components.java
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
pom {
name = 'unreflect'
description = 'Small but dangerously powerful wrapper of Reflection API'
url = 'https://github.com/klepto/unreflect'
licenses {
license {
name = 'The MIT License'
url = 'https://github.com/klepto/unreflect/blob/master/license'
}
}
developers {
developer {
id = 'klepto'
name = 'Augustinas R.'
email = 'klepto@inbox.lt'
}
}
scm {
connection = 'scm:git:https://github.com/klepto/unreflect.git'
developerConnection = 'scm:git:https://github.com/klepto/unreflect.git'
url = 'https://github.com/klepto/unreflect'
}
}
}
}
repositories {
maven {
url "https://oss.sonatype.org/service/local/staging/deploy/maven2"
if (project.hasProperty('sonatypeUsername') && project.hasProperty('sonatypePassword')) {
credentials {
username sonatypeUsername
password sonatypePassword
}
}
}
}
}
signing {
sign publishing.publications.mavenJava
}