-
Notifications
You must be signed in to change notification settings - Fork 3.6k
/
build.gradle
49 lines (38 loc) · 1.41 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
buildscript {
dependencies {
classpath group: "com.liferay", name: "com.liferay.gradle.plugins", version: "3.9.10"
}
repositories {
maven {
url "https://cdn.lfrs.sl/repository.liferay.com/nexus/content/groups/public"
}
}
}
apply plugin: "com.liferay.plugin"
apply plugin: "com.liferay.target.platform"
task runGradleTest
dependencies {
compileOnly group: "com.google.guava", name: "guava", version: "23.0"
compileOnly group: "com.liferay.portal", name: "com.liferay.portal.kernel"
compileOnly group: "com.liferay.portal", name: "com.liferay.util.taglib"
compileOnly group: "javax.portlet", name: "portlet-api"
compileOnly group: "javax.servlet", name: "javax.servlet-api"
compileOnly group: "jstl", name: "jstl"
compileOnly group: "org.osgi", name: "osgi.cmpn"
targetPlatformBoms group: "com.liferay", name: "com.liferay.ce.portal.bom", version: "7.0.4"
targetPlatformBoms group: "com.liferay", name: "com.liferay.ce.portal.compile.only", version: "7.0.4"
targetPlatformBundles group: "com.google.guava", name: "guava", version: "23.0"
targetPlatformDistro files("../../repo/distro.jar")
}
repositories {
maven {
url "https://cdn.lfrs.sl/repository.liferay.com/nexus/content/groups/public"
}
}
runGradleTest {
dependsOn resolve
doLast {
File bndrunFile = new File(resolve.temporaryDir, "resolve.bndrun")
assert bndrunFile.text.contains("com.liferay.resolve.bundles;version='[1.0.0,1.0.1)")
}
}