forked from nebula-plugins/gradle-ospackage-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
143 lines (126 loc) · 4.76 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
/*
* Copyright 2014-2019 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
plugins {
id 'nebula.plugin-plugin' version '11.2.12'
}
description 'Provides a task similar to Tar and Zip for constructing RPM and DEB package files.'
contacts {
moniker 'Justin Ryan'
github 'quidryan'
}
moniker 'Alan Krueger'
github 'AlanKrueger'
}
moniker 'Rob Spieldenner'
github 'rspieldenner'
}
moniker 'Roberto Perez Alcolea'
github 'rpalcolea'
}
}
dependencies {
compile 'org.apache.commons:commons-lang3:3.1'
compile('org.redline-rpm:redline:1.2.7') {
// Where logging goes is a runtime decision
exclude group: 'org.slf4j', module: 'slf4j-log4j12'
}
compile('org.vafer:jdeb:1.4') {
// Individual listing so that they translate into the pom file
exclude group: 'org.apache.maven', module: 'maven-core'
exclude group: 'org.apache.maven', module: 'maven-plugin-api'
exclude group: 'org.apache.maven', module: 'maven-project'
exclude group: 'org.apache.maven', module: 'maven-artifact'
exclude group: 'org.codehaus.plexus', module: 'plexus-utils'
}
compile 'com.bmuschko:gradle-docker-plugin:3.2.1'
}
def javaApiUrl = 'http://docs.oracle.com/javase/1.6.0/docs/api/'
def groovyApiUrl = 'http://groovy.codehaus.org/gapi/'
tasks.withType(Javadoc) {
options.links(javaApiUrl, groovyApiUrl)
}
test {
maxHeapSize = '384m'
}
pluginBundle {
plugins {
ospackage {
id = 'nebula.ospackage'
displayName = 'Nebula OS Package'
description = project.description
tags = ['nebula', 'rpm', 'centos', 'deb', 'debian']
}
ospackageApplication {
id = 'nebula.ospackage-application'
displayName = 'Nebula OS Package Application Plugin'
description = 'Packages output of application plugin into a debian or rpm'
tags = ['nebula', 'os', 'package', 'rpm', 'deb', 'application']
}
ospackageApplicationDaemon {
id = 'nebula.ospackage-application-daemon'
displayName = 'Nebula OS Package Application Daemon Plugin'
description = 'Creates daemontools setup to run output from application plugin'
tags = ['nebula', 'os', 'package', 'rpm', 'deb', 'application', 'daemon']
}
ospackageApplicationSpring {
id = 'nebula.ospackage-application-spring-boot'
displayName = 'Nebula OS Package Spring Application Plugin'
description = 'Packages output of application plugin into a debian or rpm'
tags = ['nebula', 'os', 'package', 'rpm', 'deb', 'application', 'spring']
}
ospackageBase {
id = 'nebula.ospackage-base'
displayName = 'Nebula OS Package Base'
description = 'Setup base publishing for OS packages'
tags = ['nebula', 'rpm', 'centos', 'deb', 'debian']
}
ospackageDaemon {
id = 'nebula.ospackage-daemon'
displayName = 'Nebula OS Package Daemon Plugin'
description = 'Create daemontools runner'
tags = ['nebula', 'os', 'package', 'rpm', 'deb', 'daemon']
}
ospackageDocker {
id = 'nebula.ospackage-docker'
displayName = 'Nebula OS Package Docker'
description = 'Create docker images from ospackage block'
tags = ['nebula', 'docker']
}
ospackageDockerBase {
id = 'nebula.ospackage-docker-base'
displayName = 'Nebula OS Package Docker Base'
description = 'Setup base publishing for docker images'
tags = ['nebula', 'docker']
}
deb {
id = 'nebula.deb'
displayName = 'Nebula Debian Packaging Plugin'
description = 'Create debian system packages'
tags = ['nebula', 'deb', 'debian']
}
rpm {
id = 'nebula.rpm'
displayName = 'Nebula RPM Packaging Plugin'
description = 'Create RPM system packages'
tags = ['nebula', 'rpm', 'centos']
}
}
}