forked from zowe/zowe-zdevops-jenkins-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
81 lines (65 loc) · 2.41 KB
/
build.gradle.kts
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
/*
* This program and the accompanying materials are made available under the terms of the
* Eclipse Public License v2.0 which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-v20.html
*
* SPDX-License-Identifier: EPL-2.0
*
* Copyright IBA Group 2022
*/
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
val kotlinVersion = findProperty("kotlinVersion")
project.gradle.startParameter.excludedTaskNames.add("copyGeneratedJenkinsTestPluginDependencies")
project.gradle.startParameter.excludedTaskNames.add("copyTestPluginDependencies")
plugins {
kotlin("jvm") version ("1.6.0")
kotlin("kapt") version ("1.6.0")
id("org.jenkins-ci.jpi") version ("0.43.0")
}
repositories {
mavenCentral()
maven {
url = uri("https://zowe.jfrog.io/zowe/libs-release")
}
}
dependencies {
implementation(fileTree("lib"))
compileOnly(fileTree("lib"))
kotlin("stdlib-jre11", kotlinVersion as String)
// Retrofit and r2z is used to run z/OSMF REST API
implementation("com.squareup.retrofit2:retrofit:2.9.0")
implementation("com.squareup.retrofit2:converter-gson:2.9.0")
implementation("com.squareup.retrofit2:converter-scalars:2.9.0")
implementation("org.zowe.sdk:zowe-kotlin-sdk:0.3.1")
// Jenkins development related plugins
implementation("org.jenkins-ci.plugins.workflow:workflow-step-api:2.23")
implementation("org.jenkins-ci.plugins.workflow:workflow-aggregator:581.v0c46fa_697ffd")
// SezPoz is used to process @hudson.Extension and other annotations
kapt("net.java.sezpoz:sezpoz:1.13")
}
java {
sourceCompatibility = JavaVersion.VERSION_11
}
kapt {
correctErrorTypes = true
includeCompileClasspath = false
}
jenkinsPlugin {
jenkinsVersion.set("2.357")
displayName = "Zowe z/OS DevOps"
shortName = "zdevops"
gitHubUrl = "https://github.com/jenkinsci/zos-devops-plugin.git"
compatibleSinceVersion = jenkinsVersion.get()
fileExtension = "hpi"
pluginFirstClassLoader = true
licenses = this.Licenses().apply {
license(delegateClosureOf<org.jenkinsci.gradle.plugins.jpi.JpiLicense> {
setProperty("name", "Eclipse Public License - v 2.0")
setProperty("url", "https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt")
setProperty("distribution", "repo")
})
}
}
tasks.withType(KotlinCompile::class.java).all {
dependsOn("localizer")
}