-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.backup
66 lines (54 loc) · 1.64 KB
/
build.gradle.backup
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
plugins {
id 'java'
id("org.sonarqube") version "5.0.0.4638"
id 'jacoco'
id "org.owasp.dependencycheck" version "8.3.1"
}
group = 'com.ldiamond'
version = '0.2.0'
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
maven { url 'https://repo.spring.io/milestone' }
maven { url 'https://repo.spring.io/snapshot' }
}
dependencies {
implementation 'com.tngtech.archunit:archunit-junit5:1.3.0'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.2'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
// Needed to test JPA_COHESION_RESTFUL_GET_MAPPINGS - when Java 17 has a higher market share we will upgrade to Java 17 and upgrade the Spring Dependency to latest
testCompileOnly 'org.springframework:spring-context:5.3.36'
testCompileOnly 'org.springframework:spring-web:5.3.36'
testCompileOnly 'jakarta.persistence:jakarta.persistence-api:3.2.0'
}
sonarqube {
properties {
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.projectKey", "larrydiamond_ArchitectureUnitTests"
property "sonar.organization", "larrydiamond-github"
property "sonar.sourceEncoding", "UTF-8"
property "sonar.scm.disabled", "true"
}
}
jacoco {
toolVersion = "0.8.11"
}
jacocoTestReport {
reports {
xml.required = true
csv.required = true
html.outputLocation = layout.buildDirectory.dir('jacocoHtml')
}
}
tasks.named('test') {
useJUnitPlatform()
}