This repository has been archived by the owner on Nov 8, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
66 lines (55 loc) · 1.83 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
plugins {
id "org.sonarqube" version "3.1.1"
}
subprojects {
apply plugin: 'idea'
apply plugin: 'java-library'
apply plugin: 'signing'
apply plugin: 'maven-publish'
apply plugin: 'jacoco'
group 'com.jinyframework'
version '0.3.3'
repositories {
mavenCentral()
}
dependencies {
// Lombok
compileOnly 'org.projectlombok:lombok:1.18.12'
annotationProcessor 'org.projectlombok:lombok:1.18.12'
testCompileOnly 'org.projectlombok:lombok:1.18.12'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.12'
// JUnit
testImplementation('org.junit.jupiter:junit-jupiter:5.6.2')
// SLF4J as a facade
compile group: 'org.slf4j', name:'slf4j-api', version: '1.7.2'
}
publishing {
repositories {
maven {
def releasesRepoUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2'
def snapshotsRepoUrl = 'https://oss.sonatype.org/content/repositories/snapshots'
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
credentials {
username = project.findProperty("sonatypeUsername") ?: System.getenv("sonatypeUsernamer")
password = project.findProperty("sonatypePassword") ?: System.getenv("sonatypePassword")
}
}
}
}
jacocoTestReport {
getExecutionData().setFrom(fileTree(buildDir).include("/jacoco/*.exec"))
reports {
xml.enabled true
}
}
test {
finalizedBy jacocoTestReport
}
}
sonarqube {
properties {
property "sonar.projectKey", "tuhuynh27_jiny"
property "sonar.organization", "huynhminhtufu-github"
property "sonar.host.url", "https://sonarcloud.io"
}
}