-
Notifications
You must be signed in to change notification settings - Fork 1
/
repos.gradle
53 lines (49 loc) · 1.44 KB
/
repos.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
apply plugin: 'maven'
repositories {
mavenCentral()
maven { url ossSnapshotRepositoryUrl }
}
if (!project.version.endsWith('-SNAPSHOT')) {
apply plugin: 'signing'
signing {
sign configurations.archives
}
}
uploadArchives {
repositories.mavenDeployer {
if (project.version.endsWith('-SNAPSHOT')) {
repository(url: ossSnapshotRepositoryUrl) {
authentication(userName: ossSnapshotRepositoryUserName, password: ossSnapshotRepositoryPassword)
}
} else {
repository(url: ossReleaseRepositoryUrl) {
authentication(userName: ossReleaseRepositoryUserName, password: ossReleaseRepositoryPassword)
}
beforeDeployment { deployment -> signing.signPom(deployment) }
}
pom.project {
name pomProjectTitle
packaging 'jar'
description pomProjectDescription
url "https://github.com/aestasit/${githubProjectName}"
scm {
url "scm:[email protected]:aestasit/${githubProjectName}.git"
connection "scm:[email protected]:aestasit/${githubProjectName}.git"
developerConnection "scm:[email protected]:aestasit/${githubProjectName}.git"
}
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
developers {
developer {
id 'aadamovich'
name 'Andrey Adamovich'
}
}
}
}
}