13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
*/
16
- plugins {
17
- id ' co.riiid.gradle' version ' 0.4.2'
18
- }
16
+
19
17
20
18
apply plugin : ' java'
21
- apply from : ' plugin-helpers.gradle'
19
+ apply from : " https://raw.githubusercontent.com/gocd/gocd-plugin-gradle-task-helpers/master/helper.gradle?_=${ (int) (new Date().toInstant().epochSecond / 60)} "
20
+
21
+ gocdPlugin {
22
+ id = ' cd.go.contrib.elasticagent.kubernetes'
23
+ pluginVersion = ' 2.1.0'
24
+ goCdVersion = ' 18.10.0'
25
+ name = ' Kubernetes Elastic Agent Plugin'
26
+ description = ' Kubernetes Based Elastic Agent Plugins for GoCD'
27
+ vendorName = ' ThoughtWorks, Inc.'
28
+ vendorUrl = ' https://github.com/gocd/kubernetes-elastic-agents'
29
+
30
+ githubRepo {
31
+ owner = System . getenv(' GITHUB_USER' ) ?: ' bob'
32
+ repo = ' kubernetes-elastic-agents'
33
+ token = System . getenv(' GITHUB_TOKEN' ) ?: ' bad-token'
34
+ }
35
+
36
+ pluginProject = project
37
+
38
+ prerelease = ! " No" . equalsIgnoreCase(System . getenv(' PRERELEASE' ))
39
+ assetsToRelease = [project. tasks. jar]
40
+ }
22
41
23
42
sourceCompatibility = 1.8
24
43
targetCompatibility = 1.8
25
44
26
- project. ext. pluginVersion = ' 2.1.0'
27
- project. ext. fullVersion = project. git. distVersion() ? " ${ project.pluginVersion} -${ project.git.distVersion()} " : project. pluginVersion
28
-
29
45
group = ' cd.go.contrib'
30
- version = project. fullVersion
31
-
32
- project. ext. pluginDesc = [
33
- id : ' cd.go.contrib.elasticagent.kubernetes' ,
34
- repo : ' kubernetes-elastic-agents' ,
35
- version : project. version,
36
- goCdVersion : ' 18.10.0' ,
37
- name : ' Kubernetes Elastic Agent Plugin' ,
38
- description : ' Kubernetes Based Elastic Agent Plugins for GoCD' ,
39
- vendorName : ' GoCD Contributors' ,
40
- vendorUrl : ' https://github.com/gocd/kubernetes-elastic-agents'
41
- ]
46
+ version = gocdPlugin. fullVersion(project)
42
47
43
48
repositories {
44
49
jcenter()
80
85
// into "/"
81
86
// }
82
87
}
83
-
84
- apply from : ' plugin-tasks.gradle'
0 commit comments