-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
116 lines (102 loc) · 3.58 KB
/
build.gradle
File metadata and controls
116 lines (102 loc) · 3.58 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
plugins {
id 'net.researchgate.release' version '3.0.0'
id 'java'
id 'maven-publish'
id 'signing'
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
}
group = 'fr.maif'
ext {
vavrVersion = "0.10.6"
jacksonVersion = "2.18.4"
lombokVersion = "1.18.38"
jupiterVersion = "5.13.3"
}
repositories {
mavenCentral()
}
java {
withSourcesJar()
withJavadocJar()
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
dependencies {
compileOnly "org.projectlombok:lombok:$lombokVersion"
annotationProcessor "org.projectlombok:lombok:$lombokVersion"
implementation "io.vavr:vavr:$vavrVersion"
implementation "io.vavr:vavr-jackson:0.10.3"
implementation "com.fasterxml.jackson.core:jackson-core:$jacksonVersion"
implementation "com.fasterxml.jackson.core:jackson-annotations:$jacksonVersion"
implementation "com.fasterxml.jackson.core:jackson-databind:$jacksonVersion"
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jdk8:$jacksonVersion"
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jacksonVersion"
testCompileOnly "org.projectlombok:lombok:$lombokVersion"
testAnnotationProcessor "org.projectlombok:lombok:$lombokVersion"
testImplementation(platform("org.junit:junit-bom:$jupiterVersion"))
testImplementation("org.junit.jupiter:junit-jupiter")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
testImplementation "org.assertj:assertj-core:3.27.3"
testImplementation "com.github.erosb:everit-json-schema:1.14.6"
}
tasks.named('test', Test) {
useJUnitPlatform()
testLogging {
events "passed"
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from(components.java)
pom {
name = "Functional Json"
description = "Functional json parsing"
inceptionYear = "2020"
url = "https://github.com/maif/functional-json"
licenses {
license {
name = "The Apache License, Version 2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
distribution = "http://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
developers {
developer {
id = 'alexandre.delegue'
name = 'Alexandre Delègue'
url = 'https://github.com/larousso'
}
developer {
id = 'benjamin.cavy'
name = 'Benjamin Cavy'
url = 'https://github.com/ptitFicus'
}
}
scm {
url = "https://github.com/maif/functional-json"
connection = "scm:git:git://github.com/maif/functional-json.git"
developerConnection = "scm:git:ssh://github.com/maif/functional-json.git"
}
}
}
}
}
signing {
sign publishing.publications.mavenJava
}
nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
username = System.env.SONATYPE_USERNAME
password = System.env.SONATYPE_PASSWORD
}
}
}
release {
tagTemplate = 'v${version}'
}
release.git.requireBranch.set('master')