-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.gradle
124 lines (104 loc) · 4.26 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
version = "$appVersion"
apply plugin: "java"
apply plugin: "maven-publish"
apply plugin: "signing"
apply plugin: "com.liferay.target.platform"
apply plugin: "com.liferay.plugin"
dependencies {
compileOnly group: "biz.aQute.bnd", name: "biz.aQute.bnd.annotation", version: "4.2.0"
compileOnly group: "org.slf4j", name: "slf4j-api"
compileOnly group: "javax.ws.rs", name: "javax.ws.rs-api"
compileOnly group: "com.liferay.portal", name: "com.liferay.portal.kernel"
compileOnly group: "com.liferay", name: "com.liferay.portal.configuration.metatype.api"
compileOnly group: "org.osgi", name: "org.osgi.core"
compileOnly group: "org.osgi", name: "org.osgi.service.jaxrs"
compileOnly group: "org.osgi", name: "org.osgi.service.component.annotations"
compileOnly group: "org.osgi", name: "org.osgi.annotation.versioning"
compileOnly group: "org.apache.felix", name: "org.apache.felix.dependencymanager", version: "4.6.0"
compileOnly group: "org.projectlombok", name: "lombok", version: "1.18.12"
annotationProcessor group: "org.projectlombok", name: "lombok", version: "1.18.12"
targetPlatformBoms group: "com.liferay.portal", name: "release.portal.bom", version: "$liferayVersion"
targetPlatformBoms group: "com.liferay.portal", name: "release.portal.bom.compile.only", version: "$liferayVersion"
targetPlatformBoms group: "com.liferay.portal", name: "release.portal.bom.third.party", version: "$liferayVersion"
}
def defaultEncoding = "UTF-8"
buildscript {
dependencies {
classpath group: "com.liferay", name: "com.liferay.gradle.plugins.target.platform", version: "2.1.23"
classpath group: "com.liferay", name: "com.liferay.gradle.plugins", version: "10.0.18"
}
repositories {
jcenter()
mavenCentral()
maven {
url "https://repository-cdn.liferay.com/nexus/content/groups/public"
}
}
}
repositories {
mavenCentral()
jcenter()
maven { url "http://repository.jboss.org/nexus/content/groups/public-jboss" }
maven { url "http://repository.apache.org/content/groups/public" }
maven { url "http://repository.springsource.com/maven/bundles/release" }
maven { url "http://repository.codehaus.org" }
maven { url "http://download.java.net/maven/2" }
maven { url "http://download.java.net/maven/glassfish" }
maven { url "http://m2repo.spockframework.org/snapshots" }
maven { url "http://repository.sonatype.org/content/groups/public" }
maven { url "https://mvnrepository.com/artifact/com.sun/tools" }
maven { url "https://jitpack.io" }
}
task sourcesJar(type: Jar) {
from sourceSets.main.allJava
archiveClassifier = "sources"
}
task javadocJar(type: Jar) {
from javadoc
archiveClassifier = "javadoc"
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId = "com.github.lgdd"
artifactId = "liferay-healthcheck"
version = "$appVersion"
from components.java
artifact sourcesJar
artifact javadocJar
pom {
name = "Liferay Health Check"
description = "A configurable API to help you expose more accurate readiness and liveness probes"
url = "https://github.com/lgdd/liferay-healthcheck"
licenses {
license {
name = "MIT License"
url = "https://github.com/lgdd/liferay-healthcheck/blob/master/LICENSE"
}
}
developers {
developer {
id = "lgdd"
}
}
scm {
connection = "scm:git:git://github.com/lgdd/liferay-healthcheck.git"
developerConnection = "scm:git:ssh://[email protected]:lgdd/liferay-healthcheck.git"
url = "https://github.com/lgdd/liferay-healthcheck"
}
}
}
}
repositories {
maven {
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2"
credentials {
username sonatypeUsername
password sonatypePassword
}
}
}
}
signing {
sign publishing.publications.mavenJava
}