-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.gradle
74 lines (63 loc) · 1.84 KB
/
build.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
69
70
71
72
73
74
allprojects {
repositories {
jcenter()
}
}
apply plugin: 'maven'
apply plugin: 'signing'
repositories {
mavenCentral()
mavenLocal()
maven {
url nexusURL
credentials {
username = nexusUser
password = nexusPassword
}
}
}
artifacts {
def appImage = file("./dist_electron/Loginized ${version}.AppImage")
def debFile = file("./dist_electron/loginized_${version}_amd64.deb")
// def snapFile = file("./dist_electron/loginized_${version}_amd64.snap")
def pacmanFile = file("./dist_electron/loginized-${version}.pacman")
def rpmFile = file("./dist_electron/loginized-${version}.x86_64.rpm")
def zipFile = file("./dist_electron/loginized-${version}.zip")
archives appImage, debFile, pacmanFile, rpmFile, zipFile
}
signing {
sign configurations.archives
}
uploadArchives {
repositories.mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: nexusURL) {
authentication(userName: nexusUser, password: nexusPassword)
}
pom.project {
name rootProject.name
groupId 'juhaku.gnome'
artifactId 'loginized'
version = version
description 'Gnome GDM Login Theme Manager'
url nexusURL
scm {
connection nexusURL
developerConnection nexusURL
url nexusURL
}
licenses {
license {
name 'GNU General Public License v3.0'
url 'https://opensource.org/licenses/GPL-3.0'
}
}
developers {
developer {
id 'juhaku'
name 'Juha Kukkonen'
}
}
}
}
}