This repository has been archived by the owner on Nov 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
65 lines (57 loc) · 1.68 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
buildscript {
dependencies {
classpath group: "com.liferay", name: "com.liferay.gradle.plugins",
version: "14.0.158"
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:4.2.1.3168"
}
repositories {
mavenCentral()
maven {
url "https://repository-cdn.liferay.com/nexus/content/groups/public"
}
}
}
subprojects {
buildscript {
repositories {
maven {
url "https://repository-cdn.liferay.com/nexus/content/groups/public"
}
}
}
apply plugin: "com.liferay.plugin"
apply plugin: "maven-publish"
plugins.withId("java") {
sourceCompatibility = "1.8"
}
repositories {
maven {
url "https://repository-cdn.liferay.com/nexus/content/groups/public"
}
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/amusarra/liferay-portal-security-audit")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("GITHUB_USERNAME")
password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
}
}
}
publications {
gpr(MavenPublication) {
from(components.java)
}
}
}
}
apply plugin: "org.sonarqube"
sonar {
properties {
property "sonar.projectKey", "amusarra_liferay-portal-security-audit"
property "sonar.organization", "amusarra-github"
property "sonar.host.url", "https://sonarcloud.io"
}
}