-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbuild.gradle
More file actions
108 lines (90 loc) · 3.09 KB
/
build.gradle
File metadata and controls
108 lines (90 loc) · 3.09 KB
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
100
101
102
103
104
105
106
107
108
// MockFtpServer - Gradle build file
plugins {
id 'groovy'
id 'maven-publish'
id 'signing'
}
version = "3.2.0"
group = 'org.mockftpserver'
archivesBaseName = 'MockFtpServer'
sourceCompatibility = 1.8
targetCompatibility = 1.8
sourceSets {
test {
java { srcDirs = [] }
groovy { srcDirs = ['src/test/java', 'src/test/groovy'] }
}
}
repositories {
maven { url "https://repo.maven.apache.org/maven2" }
}
def springVersion = '5.3.30'
def junitVersion = '5.9.0'
dependencies {
implementation "org.slf4j:slf4j-api:2.0.0"
testImplementation "org.codehaus.groovy:groovy-all:3.0.12"
testImplementation 'ch.qos.logback:logback-classic:1.3.0'
testImplementation 'commons-net:commons-net:3.8.0'
testImplementation "org.springframework:spring-core:$springVersion"
testImplementation "org.springframework:spring-context:$springVersion"
testImplementation 'org.mockito:mockito-core:4.7.0'
testImplementation "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
testImplementation "org.junit.jupiter:junit-jupiter-params:$junitVersion"
}
java {
withJavadocJar()
withSourcesJar()
}
test {
useJUnitPlatform()
}
//------------------------------------------------------------------------------
// Publish to Maven Central
//------------------------------------------------------------------------------
signing {
required { gradle.taskGraph.hasTask(publish) }
sign publishing.publications
}
// Publish to Sonatype (OSSRH) Maven Repository
// See http://central.sonatype.org/pages/gradle.html
publishing {
publications {
maven(MavenPublication) {
from components.java
pom {
name = 'MockFtpServer'
description = 'The MockFtpServer project provides mock/dummy FTP server implementations for testing FTP client code.'
url = 'https://mockftpserver.org'
scm {
connection = 'scm:git:git@github.com:CodeNarc/CodeNarc.git'
developerConnection = 'scm:git:git@github.com:dx42/MockFtpServer.git'
url = 'scm:git:git@github.com:dx42/MockFtpServer.git'
}
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'chrismair'
name = 'Chris Mair'
email = 'chrismair@users.sourceforge.net'
}
}
}
}
}
repositories {
maven {
def releasesUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
def snapshotsUrl = 'https://oss.sonatype.org/content/repositories/snapshots/'
url = version.endsWith('SNAPSHOT') ? snapshotsUrl : releasesUrl
credentials {
username = ossrhUsername
password = ossrhPassword
}
}
}
}