-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.gradle
92 lines (80 loc) · 2.82 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
plugins {
id 'idea'
id 'java'
id 'java-library'
id 'maven-publish'
id 'signing'
}
group 'ch.pontius.nio'
version '0.12-SNAPSHOT'
repositories {
mavenCentral()
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
java {
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId = 'ch.pontius.nio'
artifactId = 'smb-nio'
version = System.getenv().getOrDefault("MAVEN_PUBLICATION_VERSION", version.toString())
pom {
name = 'NIO SMB Driver'
description = 'This is a Java NIO.2 file system provider that can be used to access CIFS/SMB (SMB 1 and SMB 2) file systems.'
url = 'https://github.com/pontiussoftware/smb-nio/'
licenses {
license {
name = 'MIT License'
url = 'https://opensource.org/licenses/MIT'
}
}
developers {
developer {
id = 'ppanopticon'
name = 'Ralph Gasser'
email = '[email protected]'
organization = 'pontius software GmbH'
}
}
scm {
connection = 'scm:git:git://github.com/pontiussoftware/smb-nio.git'
url = 'https://github.com/pontiussoftware/smb-nio'
}
}
from components.java
}
}
repositories {
maven {
def releasesRepoUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
def snapshotsRepoUrl = 'https://oss.sonatype.org/content/repositories/snapshots/'
name = "OSSRH"
url = (publishing.publications.mavenJava.version.endsWith('SNAPSHOT')) ? snapshotsRepoUrl : releasesRepoUrl
credentials {
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_PASSWORD")
}
}
}
}
signing {
def signingKey = findProperty("signingKey")
def signingPassword = findProperty("signingPassword")
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications.mavenJava
}
dependencies {
implementation group: 'eu.agno3.jcifs', name: 'jcifs-ng', version: '2.1.10'
/* JUnit 5 */
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.10.1'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.10.1'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-params', version: '5.10.1'
testImplementation group: 'org.junit.platform', name: 'junit-platform-commons',version: '1.10.1'
}
test {
useJUnitPlatform()
}