-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
95 lines (84 loc) · 2.68 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
plugins {
id 'java'
id 'maven-publish'
id 'application'
id 'com.github.johnrengelman.shadow' version '7.0.0'
id 'jacoco'
}
group = "com.nucleodb.memcache"
repositories {
mavenCentral()
maven {
name = 'GitHubPackages'
url = uri("https://nexus.synload.com/repository/maven-repo-releases/")
}
}
dependencies {
implementation 'com.nucleodb:library:1.14.1'
implementation 'net.spy:spymemcached:2.12.3'
implementation 'io.netty:netty-all:4.1.101.Final'
implementation 'org.apache.logging.log4j:log4j-api'
implementation 'org.apache.logging.log4j:log4j-core'
testImplementation 'junit:junit:4.13.1'
testImplementation 'org.junit.jupiter:junit-jupiter:5.8.1'
}
test {
useJUnitPlatform()
finalizedBy jacocoTestReport
environment "TEST2", "CHECK"
}
jacocoTestReport {
dependsOn test // tests are required to run before generating the report
}
application {
mainClass = 'svs.memcached.server.MemcachedServer'
}
shadowJar {
archiveBaseName.set(group)
archiveVersion.set(version)
archiveClassifier.set('')
manifest {
attributes 'Main-Class': 'svs.memcached.server.MemcachedServer'
}
}
publishing {
publications {
mavenJava(MavenPublication) {
artifact shadowJar
// Additional configuration, e.g., add artifacts, set up pom details, etc.
pom {
name = 'NucleoDB Memcache Server'
description = 'Memcache compatible nucleodb server'
url = 'https://github.com/NucleoTeam/NucleoDB'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'firestar'
name = 'Nathaniel Davidson'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:git://github.com/NucleoTeam/NucleoDB.git'
developerConnection = 'scm:git:ssh://github.com/NucleoTeam/NucleoDB.git'
url = 'https://github.com/NucleoTeam/NucleoDB/tree/master'
}
}
}
}
repositories {
maven {
name = 'SynloadRepo'
url = uri("https://nexus.synload.com/repository/maven-repo-releases/")
credentials {
username = System.getenv("SYNLOAD_REPO_USER")
password = System.getenv("SYNLOAD_REPO_PASS")
}
}
}
}