This repository has been archived by the owner on Oct 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
120 lines (109 loc) · 4.27 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
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
import com.cognifide.gradle.aem.bundle.tasks.bundle
plugins {
kotlin("jvm")
id("com.neva.fork")
id("com.cognifide.aem.instance.local")
id("com.cognifide.aem.bundle")
id("com.cognifide.aem.package")
id("com.cognifide.aem.package.sync")
id("net.researchgate.release")
id("maven-publish")
}
apply(from = "gradle/fork/props.gradle.kts")
defaultTasks(":instanceSetup", ":packageDeploy")
description = "Slinkt"
group = "com.cognifide"
allprojects {
repositories {
jcenter()
maven("https://repo.adobe.com/nexus/content/groups/public")
maven("https://dl.bintray.com/acs/releases")
maven("https://dl.bintray.com/jetbrains/intellij-third-party-dependencies")
}
}
dependencies {
compileOnly("org.osgi:org.osgi.annotation.versioning:1.1.0")
compileOnly("org.osgi:org.osgi.annotation.bundle:1.0.0")
compileOnly("org.osgi:org.osgi.service.metatype.annotations:1.4.0")
compileOnly("org.osgi:org.osgi.service.component.annotations:1.4.0")
compileOnly("org.osgi:org.osgi.service.component:1.4.0")
compileOnly("org.osgi:org.osgi.service.cm:1.6.0")
compileOnly("org.osgi:org.osgi.service.event:1.3.1")
compileOnly("org.osgi:org.osgi.service.log:1.4.0")
compileOnly("org.osgi:org.osgi.framework:1.9.0")
compileOnly("org.osgi:org.osgi.resource:1.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.scripting.api:2.2.0")
compileOnly("org.apache.sling:org.apache.sling.servlets.annotations:1.2.4")
compileOnly("com.google.guava:guava:15.0")
compileOnly("com.google.code.gson:gson:2.8.2")
compileOnly("joda-time:joda-time:2.9.1")
compileOnly("org.jetbrains.kotlin:kotlin-script-util:1.4.0")
compileOnly("org.jetbrains.kotlin:kotlin-compiler-embeddable:1.4.0")
compileOnly("org.jetbrains.kotlin:kotlin-scripting-jvm-host:1.4.0")
compileOnly("org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:1.4.0")
compileOnly("org.jetbrains.kotlin:kotlin-scripting-compiler-impl-embeddable:1.4.0")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.3.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.3.2")
testImplementation("io.wcm:io.wcm.testing.aem-mock.junit5:2.3.2")
}
aem {
`package` {
validator {
base("com.adobe.acs:acs-aem-commons-oakpal-checks:4.3.4")
}
}
instance {
provisioner {
enableCrxDe()
}
}
}
tasks {
test {
failFast = true
useJUnitPlatform()
testLogging.showStandardStreams = true
}
packageCompose {
installBundle("org.jetbrains.kotlin:kotlin-osgi-bundle:1.4.0")
//installBundleProject(":kotlin:stdlib")
//installBundleProject(":kotlin:reflect")
installBundleProject(":kotlin:coroutines-core")
installBundleProject(":kotlin:coroutines-core-jvm")
installBundleProject(":kotlin:compiler-embeddable")
installBundleProject(":kotlin:script-runtime")
installBundleProject(":kotlin:script-util")
installBundleProject(":kotlin:scripting-common")
installBundleProject(":kotlin:scripting-jvm")
installBundleProject(":kotlin:scripting-jvm-host")
installBundleProject(":kotlin:scripting-compiler")
installBundleProject(":kotlin:scripting-compiler-embeddable")
installBundleProject(":kotlin:scripting-compiler-impl-embeddable")
}
jar {
bundle {
attribute("ScriptEngine-Name", "kts")
attribute("ScriptEngine-Version", "1.4")
exportPackage("com.neva.slinkt")
}
}
}
publishing {
publications {
create<MavenPublication>("mavenAem") {
artifact(tasks.packageCompose)
}
create<MavenPublication>("mavenJava") {
from(components["java"])
}
}
}