-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
76 lines (69 loc) · 2.5 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
plugins {
id 'maven-publish'
id 'com.enonic.xp.app' version '3.4.0'
}
app {
name = "${appName}"
displayName = "${appDisplayName}"
vendorName = "${vendorName}"
vendorUrl = "${vendorUrl}"
systemVersion = "${xpVersion}"
keepArchiveFileName = true
}
dependencies {
implementation "com.enonic.xp:core-api:${xpVersion}"
implementation "com.enonic.xp:portal-api:${xpVersion}"
include "com.enonic.xp:lib-content:${xpVersion}"
include "com.enonic.xp:lib-portal:${xpVersion}"
include "com.enonic.xp:lib-io:${xpVersion}"
include "com.enonic.xp:lib-i18n:${xpVersion}"
include "com.enonic.xp:lib-common:${xpVersion}"
include "com.enonic.xp:lib-repo:${xpVersion}"
include "com.enonic.xp:lib-task:${xpVersion}"
include "com.enonic.xp:lib-node:${xpVersion}"
include "com.enonic.xp:lib-context:${xpVersion}"
include "com.enonic.lib:lib-thymeleaf:2.1.0"
include 'com.enonic.lib:lib-http-client:3.2.2'
include "com.enonic.lib:lib-cron:1.1.2"
include "org.json:json:20200518"
}
tasks.register('dev', Exec) {
commandLine './gradlew', 'deploy', '-t'
}
repositories {
mavenLocal()
mavenCentral()
xp.enonicRepo()
maven {
url = uri("https://maven.pkg.github.com/99x/imageshop-xp")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("USERNAME") // fill properly the value at gradle.properties
password = project.findProperty("gpr.key") ?: System.getenv("TOKEN") // fill properly the value at gradle.properties
}
}
}
publishing {
publications {
gpr(MavenPublication) {
from components.java
groupId = project.findProperty("group") // fill properly the value at gradle.properties
artifactId = project.findProperty("projectName") // fill properly the value at gradle.properties
version = project.findProperty("version") // fill properly the value at gradle.properties
}
}
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/99x/imageshop-xp")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("USERNAME") // fill properly the value at gradle.properties
password = project.findProperty("gpr.key") ?: System.getenv("TOKEN") // fill properly the value at gradle.properties
}
}
}
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
}