-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
67 lines (57 loc) · 2.22 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
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java library project to get you started.
* For more details take a look at the 'Building Java & JVM projects' chapter in the Gradle
* User Manual available at https://docs.gradle.org/8.0.2/userguide/building_java_projects.html
*/
plugins {
// Apply the java-library plugin for API and implementation separation.
id 'java-library'
id("io.freefair.lombok") version "8.0.0"
}
repositories {
mavenLocal()
mavenCentral()
maven {
url = uri("https://maven.pkg.github.com/pagopa/eng-http-signatures")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("GITHUB_ACTOR")
password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
}
}
}
configurations {
instrumentedJars {
canBeConsumed = true
canBeResolved = false
attributes {
attribute(Category.CATEGORY_ATTRIBUTE, objects.named(Category, Category.LIBRARY))
attribute(Usage.USAGE_ATTRIBUTE, objects.named(Usage, Usage.JAVA_RUNTIME))
attribute(Bundling.BUNDLING_ATTRIBUTE, objects.named(Bundling, Bundling.EXTERNAL))
attribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, JavaVersion.current().majorVersion.toInteger())
attribute(LibraryElements.LIBRARY_ELEMENTS_ATTRIBUTE, objects.named(LibraryElements, 'instrumented-core-jar'))
}
}
}
dependencies {
implementation 'javax.inject:javax.inject:1'
implementation 'com.typesafe:config:1.4.2'
implementation 'com.nimbusds:nimbus-jose-jwt:9.31'
implementation 'ch.qos.logback:logback-classic:1.4.6'
implementation 'ch.qos.logback:logback-core:1.4.6'
implementation 'org.codehaus.janino:janino:3.1.9'
implementation 'org.apache.wss4j:wss4j-ws-security-common:2.4.1'
implementation 'javax.servlet:javax.servlet-api:3.0.1'
implementation 'com.typesafe:config:1.3.3'
// Use JUnit Jupiter for testing.
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.2'
testImplementation 'org.mockito:mockito-core:5.2.0'
testImplementation 'org.mockito:mockito-junit-jupiter:5.2.0'
testImplementation 'org.assertj:assertj-core:3.24.2'
testImplementation 'org.springframework:spring-test:5.3.26'
}
tasks.named('test') {
// Use JUnit Platform for unit tests.
useJUnitPlatform()
}