-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
100 lines (87 loc) · 2.34 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
plugins {
id "com.github.hierynomus.license" version "0.15.0"
}
apply plugin: 'distribution'
allprojects {
group = 'com.sitewhere'
version = '3.0.1'
repositories {
maven { url "https://repo.maven.apache.org/maven2" }
mavenLocal()
}
apply plugin: 'eclipse'
apply plugin: "com.github.hierynomus.license"
license {
header rootProject.file('HEADER')
include "**/*.java"
}
// Choose Java settings.
apply plugin: 'java'
sourceCompatibility = 1.8
targetCompatibility = 1.8
// Library dependencies.
dependencies {
compile platform('io.quarkus:quarkus-bom:1.7.2.Final')
// Force latest version of k8s client.
compile group: 'io.fabric8', name: 'kubernetes-client', version: '4.13.0'
// Used for helper functions.
compile group: 'com.google.guava', name: 'guava'
testCompile group: 'junit', name: 'junit'
}
}
task sourcesJar(type: Jar) {
from sourceSets.main.allJava
classifier = 'sources'
}
task javadocJar(type: Jar) {
from javadoc
classifier = 'javadoc'
}
// Publish jar.
apply plugin: 'maven-publish'
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
pom {
name = 'SiteWhere Kubernetes Model'
description = 'SiteWhere Kubernetes Entity Model'
url = 'http://sitewhere.io'
licenses {
license {
name = 'CPAL-1.0'
url = 'https://opensource.org/licenses/CPAL-1.0'
}
}
developers {
developer {
id = 'admin'
name = 'SiteWhere Admin'
email = 'admin@sitewhere.com'
}
}
scm {
connection = 'https://github.com//sitewhere/sitewhere-k8s-model.git'
url = 'https://github.com//sitewhere/sitewhere-k8s-model'
}
}
}
}
repositories {
maven {
url project.nexusUrl
credentials {
username project.nexusUsername
password project.nexusPassword
}
}
}
}
if (project.hasProperty("signing.keyId")) {
apply plugin: 'signing'
signing {
sign publishing.publications.mavenJava
}
}