-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.gradle
83 lines (71 loc) · 1.99 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
72
73
74
75
76
77
78
79
80
81
82
83
import com.vanniktech.maven.publish.JavaLibrary
import com.vanniktech.maven.publish.JavadocJar
import com.vanniktech.maven.publish.SonatypeHost
plugins {
id "java-library"
id "com.vanniktech.maven.publish" version "0.29.0"
id "me.qoomon.git-versioning" version "6.4.3"
}
repositories {
mavenCentral()
}
group = "io.consensys.protocols"
version = "UNKNOWN"
gitVersioning.apply {
refs {
tag(".+") {
version = "\${ref}"
}
branch("master") {
version = "develop"
}
branch(".+") {
version = "\${ref}"
}
}
rev {
version = "UNKNOWN"
}
}
java {
sourceCompatibility = 17
targetCompatibility = 17
}
mavenPublishing {
configure(new JavaLibrary(new JavadocJar.Javadoc(), true))
pom {
name = "${project.name}"
url = "http://github.com/Consensys/jc-kzg-4844"
description = "Java wrapper around C-KZG-4844"
licenses {
license {
name = "The Apache License, Version 2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
developers {
developer {
id = "consensys"
name = "Protocols Team"
email = "devops@consensys.net"
}
}
scm {
connection = "scm:git:git://github.com/Consensys/jc-kzg-4844.git"
developerConnection = "scm:git:ssh://github.com/Consensys/jc-kzg-4844.git"
url = "https://github.com/Consensys/jc-kzg-4844"
}
}
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
signAllPublications()
}
// https://github.com/vanniktech/gradle-maven-publish-plugin/issues/821
mavenPlainJavadocJar.archiveBaseName.set("${project.name}")
tasks.register("checkJarContents") {
doLast {
exec {
executable project.file("src/test/bash/checkResources.sh")
args "${project.jar.outputs.files.getFiles()[0]}"
}
}
}