-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
71 lines (60 loc) · 1.84 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
// ROOT PROJECT
plugins {
id "java"
id "jacoco"
id "com.github.hierynomus.license-base" version "0.16.1"
id "org.sonarqube" version "6.0.1.5171"
id "de.jjohannes.extra-java-module-info" version "0.16"
}
allprojects {
repositories {
mavenLocal()
mavenCentral()
}
apply plugin: 'java-library'
apply plugin: 'jacoco'
apply plugin: 'org.sonarqube'
apply plugin: 'com.github.hierynomus.license-base'
apply plugin: 'signing'
apply plugin: 'project-report'
group = 'net.raumzeitfalle.registration'
version = '0.0.8-SNAPSHOT'
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
withJavadocJar()
withSourcesJar()
}
jacocoTestReport {
reports {
xml.required = true
}
}
test {
finalizedBy jacocoTestReport
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.11.4'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.11.4'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.11.4'
}
tasks.withType(GenerateModuleMetadata) {
enabled = false
}
sonarqube {
properties {
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.projectKey", System.getenv('SONARCLOUD_PROJECT_KEY')
property "sonar.login", System.getenv('SONARCLOUD_LOGIN')
property "sonar.organization", System.getenv('SONARCLOUD_ORG')
property 'sonar.coverage.jacoco.xmlReportPaths', "./solver-test/build/reports/jacoco/testCodeCoverageReport/testCodeCoverageReport.xml"
}
}
htmlDependencyReport {
projects = project.allprojects
}
}
wrapper {
distributionType = Wrapper.DistributionType.BIN
gradleVersion = "8.12.1"
}