forked from magro/memcached-session-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
87 lines (75 loc) · 2.39 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
plugins {
id 'java-library'
id 'maven-publish'
}
repositories {
mavenCentral()
maven {
url = uri("https://maven.pkg.github.com/kikora/java-saml")
credentials {
//username = (project.findProperty("gpr.user") ?: System.getenv("USERNAME")) as String
//password = (project.findProperty("gpr.key") ?: System.getenv("TOKEN")) as String
}
}
}
dependencies{
compileOnly 'jakarta.servlet:jakarta.servlet-api:5.0.0'
compileOnly 'org.apache.tomcat:tomcat-catalina:10.1.13'
compileOnly 'redis.clients:jedis:2.9.0'
compileOnly 'net.spy:spymemcached:2.12.3'
compileOnly 'com.couchbase.client:couchbase-client:1.4.1'
compileOnly 'junit:junit:4.13.2'
compileOnly 'org.junit.jupiter:junit-jupiter:5.10.2'
testImplementation 'org.junit.vintage:junit-vintage-engine:5.10.2'
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.2'
}
java{
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
sourceSets {
main {
java {
srcDirs("src")
}
resources {
srcDirs("src")
}
output.setResourcesDir(file("build/classes/java/main"))
java.destinationDirectory.set(file("build/classes/java/main"))
}
test {
java {
srcDirs("test")
}
resources {
srcDirs("test")
}
}
}
publishing {
logger.info('Username: ' + project.findProperty("gpr.user") ?: System.getenv("USERNAME"))
logger.info('Token: ' + project.findProperty("gpr.key") ?: System.getenv("TOKEN"))
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/kikora/memcached-session-manager")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") ?: System.getenv("TOKEN")
}
}
}
publications {
maven(MavenPublication) {
groupId 'kikora'
artifactId 'memcached-session-manager'
version '0.1.1'
from(components.java)
}
}
}
//jar {
// archiveBaseName = 'kikora-memcached-session-manager-tc'
// archiveVersion = '0.1.0'
//}