-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
143 lines (115 loc) · 5.29 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
import jdk.nashorn.api.scripting.ClassFilter
buildscript {
repositories {
mavenCentral()
jcenter()
maven { url 'https://raw.githubusercontent.com/Argelbargel/gradle-jpi-plugin/mvn-repo/' }
}
dependencies {
classpath 'argelbargel.gradle.plugins:gradle-jpi-plugin:0.24.4'
}
}
apply plugin: 'org.jenkins-ci.jpi'
apply plugin: 'maven-publish'
archivesBaseName = 'modules-plugin'
group = 'argelbargel.jenkins.plugins'
description = 'Jenkins plugin modelling modules'
if (project.hasProperty('release') && project.getProperty('release') != '') {
version = project.getProperty('release')
}
artifacts {
archives war
}
publishing {
repositories {
maven {
url "$buildDir/repo"
}
}
publications {
plugin(MavenPublication) {
artifact war
artifactId archivesBaseName
}
}
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
jenkinsPlugin {
// version of Jenkins core this plugin depends on, must be 1.420 or later
coreVersion = '2.126'
// ID of the plugin, defaults to the project name without trailing '-plugin'
shortName = archivesBaseName
// human-readable name of plugin
displayName = 'Jenkins Modules-Plugin'
// URL for plugin on Jenkins wiki or elsewhere
url = 'https://github.com/Argelbargel/jenkins-modules-plugin'
// plugin URL on GitHub, optional
gitHubUrl = 'https://github.com/Argelbargel/jenkins-modules-plugin'
// use the plugin class loader before the core class loader, defaults to false
pluginFirstClassLoader = true
whitelistClasses = true
// set the directory from which the development server will run, defaults to 'work'
workDir = file("$buildDir/jenkins")
// URL used to deploy the plugin, defaults to the value shown
repoUrl = 'https://repo.jenkins-ci.org/releases'
// URL used to deploy snapshots of the plugin, defaults to the value shown
snapshotRepoUrl = 'https://repo.jenkins-ci.org/snapshots'
// enable injection of additional tests for checking the syntax of Jelly and other things
disabledTestInjection = true
// the output directory for the localizer task relative to the project root, defaults to the value shown
localizerOutputDir = "${project.buildDir}/generated-src/localizer"
// disable configuration of Maven Central, the local Maven cache and the Jenkins Maven repository, defaults to true
configureRepositories = true
// skip configuration of publications and repositories for the Maven Publishing plugin, defaults to true
configurePublishing = false
// the developers section is optional, and corresponds to the POM developers section
developers {
developer {
id 'argelbargel'
name 'Karsten Kraus'
email 'karsten.kraus@web.de'
}
}
// the licenses section is optional, and corresponds to the POM licenses section
licenses {
license {
name 'Apache License, Version 2.0'
url 'https://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
comments 'A business-friendly OSS license'
}
}
}
dependencies {
compile 'org.jgrapht:jgrapht-jdk1.5:0.7.3'
compile 'com.google.code.gson:gson:2.7'
compile 'org.jenkins-ci.plugins:view-job-filters:1.27@jar'
compile 'org.jenkins-ci.plugins:variant:1.1@jar'
testCompile 'org.mockito:mockito-core:2.7.22'
testCompile 'org.powermock:powermock-module-junit4:1.7.0RC4'
testCompile 'org.powermock:powermock-api-mockito2:1.7.0RC4'
optionalJenkinsPlugins 'org.jenkins-ci.plugins:branch-api:2.0.20@jar'
optionalJenkinsPlugins 'org.jenkins-ci.plugins:credentials:2.1.16@jar'
optionalJenkinsPlugins 'org.jenkins-ci.plugins:git:3.9.0@jar'
optionalJenkinsPlugins 'org.jenkins-ci.plugins:gitlab-plugin:1.5.6@jar'
optionalJenkinsPlugins 'org.jenkins-ci.plugins.workflow:workflow-aggregator:2.5@jar'
optionalJenkinsPlugins 'org.jenkins-ci.plugins.workflow:workflow-cps:2.53@jar'
optionalJenkinsPlugins 'org.jenkins-ci.plugins.workflow:workflow-cps-global-lib:2.9@jar'
optionalJenkinsPlugins 'org.jenkins-ci.plugins.workflow:workflow-job:2.21@jar'
optionalJenkinsPlugins 'org.jenkins-ci.plugins.workflow:workflow-multibranch:2.19@jar'
optionalJenkinsPlugins 'org.jenkins-ci.plugins:scm-api:2.2.7@jar'
optionalJenkinsPlugins 'org.jenkins-ci.plugins:pipeline-utility-steps:2.1.0@jar'
optionalJenkinsPlugins 'com.sonyericsson.hudson.plugins.rebuild:rebuild:1.28@jar'
optionalJenkinsPlugins 'org.6wind.jenkins:lockable-resources:2.2@jar'
optionalJenkinsPlugins 'org.jenkins-ci.plugins:timestamper:1.8.10@jar'
optionalJenkinsPlugins 'org.jvnet.hudson.plugins:checkstyle:3.50@jar'
optionalJenkinsPlugins 'org.jenkins-ci.plugins:junit:1.24@jar'
optionalJenkinsPlugins 'org.jenkins-ci.plugins:jacoco:3.0.1@jar'
optionalJenkinsPlugins 'org.jenkins-ci.plugins:cucumber-testresult-plugin:0.10.1@jar'
optionalJenkinsPlugins 'org.jvnet.hudson.plugins:dry:2.50@jar'
optionalJenkinsPlugins 'org.jvnet.hudson.plugins:findbugs:4.72@jar'
optionalJenkinsPlugins 'org.jvnet.hudson.plugins:tasks:4.52@jar'
optionalJenkinsPlugins 'org.jvnet.hudson.plugins:warnings:4.67@jar'
optionalJenkinsPlugins 'org.jvnet.hudson.plugins:analysis-collector:1.52@jar'
}