-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
77 lines (67 loc) · 2.25 KB
/
build.gradle
File metadata and controls
77 lines (67 loc) · 2.25 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
plugins {
id 'java'
id 'maven-publish'
id 'signing'
}
group = 'net.swofty'
version = System.getenv('VERSION') ?: '1.0-SNAPSHOT'
java {
withSourcesJar()
withJavadocJar()
}
repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.code.gson:gson:2.11.0'
compileOnly 'redis.clients:jedis:5.2.0'
compileOnly 'org.mongodb:mongodb-driver-sync:5.3.1'
testImplementation platform('org.junit:junit-bom:5.10.0')
testImplementation 'org.junit.jupiter:junit-jupiter'
testImplementation 'redis.clients:jedis:5.2.0'
testImplementation 'org.mongodb:mongodb-driver-sync:5.3.1'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
test {
useJUnitPlatform()
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
groupId = 'net.swofty'
artifactId = 'SwoftyDataHandler'
pom {
name = 'SwoftyDataHandler'
description = 'A reactive, type-safe data management library for Java applications'
url = 'https://github.com/Swofty-Developments/SwoftyDataHandler'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'https://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'swofty'
name = 'Swofty'
url = 'https://github.com/Swofty-Developments'
}
}
scm {
connection = 'scm:git:git://github.com/Swofty-Developments/SwoftyDataHandler.git'
developerConnection = 'scm:git:ssh://github.com/Swofty-Developments/SwoftyDataHandler.git'
url = 'https://github.com/Swofty-Developments/SwoftyDataHandler'
}
}
}
}
}
signing {
def signingKey = System.getenv('GPG_SIGNING_KEY')
def signingPassword = System.getenv('GPG_SIGNING_PASSWORD')
if (signingKey && signingPassword) {
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications.mavenJava
}
}