This repository has been archived by the owner on Jun 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
69 lines (58 loc) · 1.67 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
plugins{
id 'java-library'
id 'idea'
id 'maven-publish'
}
group = 'io.homecentr'
sourceCompatibility = 1.8
jar {
baseName = 'testcontainers-extensions'
}
repositories{
mavenCentral()
jcenter()
}
dependencies {
implementation group: 'org.testcontainers', name: 'testcontainers', version: '1.16.0'
testImplementation group: 'junit', name: 'junit', version: '4.13.2'
testImplementation group: 'org.mockito', name: 'mockito-core', version :'3.4.6'
testImplementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.36'
testImplementation group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.36'
}
task sourcesJar(type: Jar, dependsOn: classes){
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc){
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts{
archives sourcesJar
archives javadocJar
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/homecentr/lib-testcontainers-extensions")
credentials {
username = System.getenv("GITHUB_USERNAME")
password = System.getenv("GITHUB_TOKEN")
}
}
}
publications {
gpr(MavenPublication) {
from(components.java)
groupId group
artifactId 'testcontainers-extensions'
version String.valueOf(System.getenv("RELEASE_VERSION")).replace("v", "")
}
}
}
test {
afterTest { desc, result ->
logger.quiet "Executing test ${desc.name} [${desc.className}] with result: ${result.resultType}"
}
}