This repository has been archived by the owner on Jan 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
66 lines (57 loc) · 1.81 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
plugins {
id("com.neva.fork")
id("com.cognifide.sling.instance.local")
id("com.cognifide.sling.bundle")
id("com.cognifide.sling.package")
id("com.cognifide.sling.package.sync")
id("net.researchgate.release")
id("maven-publish")
}
apply(from = "gradle/fork/fork.gradle.kts")
apply(from = "gradle/fork/props.gradle.kts")
defaultTasks(":instanceSetup", ":packageDeploy")
description = "Example"
group = "com.company"
repositories {
jcenter()
}
dependencies {
compileOnly("org.osgi:osgi.cmpn:6.0.0")
compileOnly("org.osgi:org.osgi.core:6.0.0")
compileOnly("javax.servlet:servlet-api:2.5")
compileOnly("javax.servlet:jsp-api:2.0")
compileOnly("javax.jcr:jcr:2.0")
compileOnly("org.slf4j:slf4j-api:1.7.25")
compileOnly("org.apache.geronimo.specs:geronimo-atinject_1.0_spec:1.0")
compileOnly("org.apache.sling:org.apache.sling.api:2.16.4")
compileOnly("org.apache.sling:org.apache.sling.jcr.api:2.4.0")
compileOnly("org.apache.sling:org.apache.sling.models.api:1.3.6")
compileOnly("org.apache.sling:org.apache.sling.settings:1.3.8")
compileOnly("org.apache.sling:org.apache.sling.servlets.annotations:1.2.4")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.3.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.3.2")
}
sling {
instance {
provisioner {
deployPackage("com.neva.felix:search-webconsole-plugin:1.3.0")
}
}
}
tasks {
test {
failFast = true
useJUnitPlatform()
testLogging.showStandardStreams = true
}
}
publishing {
publications {
create<MavenPublication>("mavenSling") {
artifact(common.publicationArtifact(tasks.packageCompose))
}
create<MavenPublication>("mavenJava") {
from(components["java"])
}
}
}