This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
84 lines (73 loc) · 2.65 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
buildscript {
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath('org.yaml:snakeyaml:1.19')
classpath('io.freefair.gradle:lombok-plugin:3.8.1')
classpath('com.gradle.publish:plugin-publish-plugin:0.12.0')
}
}
apply plugin: 'groovy'
apply plugin: 'java'
apply plugin: 'io.freefair.lombok'
apply plugin: "com.gradle.plugin-publish"
apply plugin: "java-gradle-plugin"
group = 'com.ibm.esw'
version = '0.0.5.13-beta'
sourceCompatibility = 1.8
repositories {
mavenCentral()
jcenter()
maven { url "https://repo.spring.io/milestone" }
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
implementation gradleApi()
implementation localGroovy()
compile 'io.github.openfeign:feign-core:10.4.0'
compile 'io.github.openfeign:feign-jackson:10.4.0'
compile 'io.github.openfeign:feign-slf4j:10.4.0'
compile 'io.github.openfeign.form:feign-form:3.8.0'
compile 'com.google.guava:guava:28.1-jre'
compile 'com.nimbusds:nimbus-jose-jwt:6.0.2'
compile 'io.fabric8:kubernetes-client:4.10.3'
compile 'net.lingala.zip4j:zip4j:2.2.8'
compile 'com.bmuschko:gradle-docker-plugin:6.6.1'
compileOnly 'org.projectlombok:lombok'
}
// Use java-gradle-plugin to generate plugin descriptors and specify plugin ids
gradlePlugin {
plugins {
KubernetesJavaApplicationPlugin {
id = 'com.ibm.esw.kubernetesJavaApplicationPlugin'
implementationClass = 'com.ibm.gradle.plugin.kubernetes.plugin.KubernetesJavaApplicationPlugin'
}
KubernetesSpringBootApplicationPlugin {
id = 'com.ibm.esw.kubernetesSpringBootApplicationPlugin'
implementationClass = 'com.ibm.gradle.plugin.kubernetes.plugin.KubernetesSpringBootApplicationPlugin'
}
}
}
// The configuration example below shows the minimum required properties
// configured to publish your plugin to the plugin portal
pluginBundle {
website = '/~https://github.com/IBM/gradle-k8s-plugin'
vcsUrl = '/~https://github.com/IBM/gradle-k8s-plugin'
description = 'a Gradle plugin help java application deploy to Kubernetes cluster.'
tags = ['k8s']
plugins {
KubernetesJavaApplicationPlugin {
// id is captured from java-gradle-plugin configuration
displayName = 'Gradle k8s java application plugin'
}
KubernetesSpringBootApplicationPlugin {
// id is captured from java-gradle-plugin configuration
displayName = 'Gradle k8s spring boot application plugin'
}
}
}
tasks.withType(Javadoc).all { enabled = false }