forked from funbox/pipeline-heavy-job-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
55 lines (48 loc) · 1.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
plugins {
id "org.jenkins-ci.jpi" version "0.43.0"
id "maven-publish"
id "com.palantir.git-version" version "0.15.0"
}
ext {
coreBaseVersion = '2.164'
corePatchVersion = '3'
coreBomVersion = '10'
}
group = "ru.funbox.jenkins.plugins"
version = gitVersion(prefix:'pipeline-heavy-job@')
description = """This plugin allows to define job weight for pipeline projects.
This makes it possible to use server resources more efficiently."""
jenkinsPlugin {
jenkinsVersion = "${coreBaseVersion}.${corePatchVersion}"
shortName = "pipeline-heavy-job"
displayName = "Pipeline HeavyJob Plugin"
}
dependencies {
api platform("io.jenkins.tools.bom:bom-${coreBaseVersion}.x:${coreBomVersion}")
implementation 'org.jenkins-ci.plugins:structs'
implementation 'org.jenkins-ci.plugins:durable-task'
implementation 'org.jenkins-ci.modules:windows-slave-installer:1.12'
implementation 'org.jenkinsci.plugins:pipeline-model-definition:1.6.0'
implementation 'org.jenkins-ci.plugins.workflow:workflow-step-api'
implementation 'org.jenkins-ci.plugins.workflow:workflow-cps'
implementation 'org.jenkins-ci.plugins.workflow:workflow-durable-task-step'
testRuntimeOnly "org.jenkins-ci.main:jenkins-war:${coreBaseVersion}"
testImplementation 'org.jenkins-ci.main:jenkins-test-harness:2.62'
testImplementation 'org.jenkins-ci:test-annotations:1.3'
testImplementation 'junit:junit:4.13'
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = "https://maven.pkg.github.com/criteo-forks/pipeline-heavy-job-plugin"
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}