-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
58 lines (50 loc) · 1.24 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
plugins {
id 'java-library'
id 'org.sonarqube' version '5.1.0.4882'
id 'jacoco'
id 'maven-publish'
}
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.bouncycastle:bcprov-jdk15on:1.70'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.11.4'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.11.4'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.11.4'
testImplementation 'org.mockito:mockito-core:5.15.2'
}
group = 'com.github.mcaserta'
version = '1.0.6-SNAPSHOT'
description = 'An ergonomic wrapper around the JCA api'
java {
sourceCompatibility = JavaVersion.VERSION_17
withSourcesJar()
withJavadocJar()
}
test {
useJUnitPlatform()
}
tasks.named('compileJava') {
options.encoding = 'UTF-8'
options.javaModuleVersion = provider { project.version }
}
publishing {
publications {
myLibrary(MavenPublication) {
from components.java
}
}
}
sonarqube {
properties {
property "sonar.projectKey", "mcaserta_bruce"
property "sonar.organization", "mcaserta"
property "sonar.host.url", "https://sonarcloud.io"
}
}
jacocoTestReport {
reports {
xml.required = true
}
}