-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
116 lines (99 loc) · 3.33 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
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
//
// build.gradle
// DiME - Data Identity Message Envelope
// A powerful universal data format that is built for secure, and integrity protected communication between trusted
// entities in a network.
//
// Released under the MIT licence, see LICENSE for more information.
// Copyright (c) 2024 Shift Everywhere AB. All rights reserved.
//
plugins {
id 'java-library'
id "org.sonarqube" version "3.4.0.2513"
id 'maven-publish'
id 'signing'
}
group 'io.dimeformat'
version '1.2.9'
description 'DiME (Data Integrity Message Envelope). A powerful universal data format that is built for secure, and integrity protected communication between trusted entities in a network using an application-based publik-key infrastructure (APKI).'
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
api 'com.goterl:lazysodium-java:5.1.4'
api 'net.java.dev.jna:jna:5.14.0'
api 'org.json:json:20240205'
api 'org.slf4j:slf4j-simple:2.0.12'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.2'
}
subprojects {
tasks.withType(Javadoc).all { enabled = false }
}
test {
useJUnitPlatform()
}
tasks.named('jar') {
manifest {
attributes('Implementation-Title': project.name,
'Implementation-Version': project.version)
}
}
java {
withSourcesJar()
withJavadocJar()
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId = project.group
artifactId = 'dime-java-ref'
version = project.version
from components.java
pom {
name = 'DiME'
description = 'DiME (Data Integrity Message Envelope). A powerful universal data format that is built for secure, and integrity protected communication between trusted entities in a network using an application-based publik-key infrastructure (APKI).'
url = 'https://docs.dimeformat.io'
licenses {
license {
name = 'MIT License'
url = 'http://www.opensource.org/licenses/mit-license.php'
}
}
developers {
developer {
id = 'shifteverywhere'
name = 'Niclas Kjellin'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:git://github.com/shifteverywhere/dime-java-ref.git'
developerConnection = 'scm:git:ssh://github.com/shifteverywhere/dime-java-ref.git'
url = 'http://github.com/shifteverywhere/dime-java-ref'
}
}
}
}
repositories {
maven {
name = 'OSSRH'
url = 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/'
credentials {
username = project.properties["ossrUsername"]
password = project.properties["ossrPassword"]
}
}
}
}
signing {
sign publishing.publications.mavenJava
}