-
Notifications
You must be signed in to change notification settings - Fork 0
/
publish.gradle
39 lines (38 loc) · 1.49 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
description = 'Butler is a simple and easy to use module for Modulo. He add multiple interfaces to configure your modulo server.'
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/Butler.git'
developerConnection = 'scm:git@github.com:ChillyCheesy/Butler.git'
url = 'https://github.com/ChillyCheesy/Butler/tree/master'
}
repositories {
maven {
url deployProperty.url ?: ''
credentials {
username deployProperty.repoUser ?: ''
password deployProperty.repoPassword ?: ''
}
}
}
}
}
}
}