-
Notifications
You must be signed in to change notification settings - Fork 0
/
publish.gradle
39 lines (38 loc) · 1.5 KB
/
publish.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
final deployPropertiesFile = rootProject.file('deploy.properties')
final deployProperty = new Properties()
if (deployPropertiesFile.exists()) {
deployProperty.load(new FileInputStream(deployPropertiesFile))
println 'deploy.properties find.'
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
pom {
name = project.name.toLowerCase()
description = 'It is a Module for Modulo. It facilitates the management of communications by a Sockets protocol.'
url = 'https://modulo.chillycheesy.com'
licenses {
license {
name = 'Mozilla Public License, Version 2.0'
url = 'https://www.mozilla.org/en-US/MPL/2.0/'
}
}
scm {
connection = 'scm:git:https://github.com/ChillyCheesy/SocketModule.git'
developerConnection = 'scm:git@github.com:ChillyCheesy/SocketModule.git'
url = 'https://github.com/ChillyCheesy/SocketModule/tree/master'
}
repositories {
maven {
url deployProperty.url ?: ''
credentials {
username deployProperty.repoUser ?: ''
password deployProperty.repoPassword ?: ''
}
}
}
}
}
}
}