-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
71 lines (58 loc) · 1.82 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
plugins {
id "org.sonarqube" version "2.5"
id 'nu.studer.credentials' version '1.0.1'
}
subprojects {
apply plugin: 'maven'
apply plugin: 'nu.studer.credentials'
apply plugin: "jacoco"
buildscript {
repositories {
mavenLocal()
mavenCentral()
maven {
url "https://cdn.lfrs.sl/repository.liferay.com/nexus/content/groups/public"
}
maven {
url "https://www.intranet.finalist.com/nexus/content/repositories/public"
}
}
dependencies {
classpath 'com.liferay:com.liferay.gradle.plugins:3.4.74'
}
}
repositories {
mavenLocal()
mavenCentral()
maven {
url "https://cdn.lfrs.sl/repository.liferay.com/nexus/content/groups/public"
}
maven {
url "https://www.intranet.finalist.com/nexus/content/repositories/public"
}
}
sonarqube {
properties {
property 'sonar.sources', 'src/main'
}
}
uploadArchives {
repositories {
mavenDeployer {
repository(url: "https://www.intranet.finalist.com/nexus/content/repositories/releases") {
authentication(userName: credentials.userid, password: credentials.password)
}
// Read project.version from bnd.bnd, this is possible because all modules in this project use bnd for
// JAR packaging
file("bnd.bnd").withInputStream {
def bnd = new Properties()
bnd.load(it)
project.version = bnd."Bundle-Version"
}
pom.version = project.version
pom.artifactId = project.name
pom.groupId = "nl.finalist.liferay.lam"
}
}
}
}