-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
99 lines (85 loc) · 2.54 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
plugins {
id 'java'
id 'maven-publish'
id 'java-library'
id 'signing'
}
targetCompatibility = '1.8'
group 'dev.gemfire'
version '2.3.1'
repositories {
mavenCentral()
maven {
name = 'Broadcom Repository'
url = project.findProperty("commercialRepository") ?: "https://packages.broadcom.com/artifactory/gemfire"
credentials {
username = System.getenv("COMMERCIAL_MAVEN_USERNAME")
password = System.getenv("COMMERCIAL_MAVEN_PASSWORD")
}
}
}
signing {
sign publishing.publications
}
publishing {
publications {
maven(MavenPublication) {
pom {
name = "${project.group}:${project.name}"
description = 'Provide integration of GemFire and Testcontainers'
url = 'https://github.com/gemfire/gemfire-testcontainers'
developers {
developer {
name = 'Jens Deppe'
email = '[email protected]'
organization= 'Broadcom Inc.'
organizationUrl = 'https://broadcom.com'
}
}
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
scm {
url = 'https://github.com/gemfire/gemfire-testcontainers'
connection = 'scm:git:git://github.com/gemfire/gemfire-testcontainers.git'
developerConnection = 'scm:git:ssh://github.com:gemfire/gemfire-testcontainers.git'
}
}
from components.java
}
}
repositories {
maven {
name = "MavenCentral"
url = 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/'
credentials {
username = System.getenv("PUBLISH_MAVEN_USERNAME")
password = System.getenv("PUBLISH_MAVEN_PASSWORD")
}
}
}
}
dependencies {
api 'org.testcontainers:testcontainers:1.20.3'
testImplementation 'org.assertj:assertj-core:3.24.2'
testImplementation 'ch.qos.logback:logback-classic:1.3.5'
testImplementation 'com.vmware.gemfire:gemfire-core:10.1.1'
testRuntimeOnly 'com.vmware.gemfire:gemfire-log4j:10.1.1'
testRuntimeOnly 'com.vmware.gemfire:gemfire-logging:10.1.1'
testRuntimeOnly 'org.apache.logging.log4j:log4j-core:2.19.0'
}
java {
withSourcesJar()
withJavadocJar()
}
test {
useJUnit()
boolean debugTests = project.findProperty("logContainerOutput") ?: false
jvmArgs "-Dgemfire-testcontainers.log-container-output=${debugTests}"
if (project.findProperty('gemfire.image') != null) {
systemProperty 'gemfire.image', findProperty('gemfire.image')
}
}