-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle
74 lines (62 loc) · 1.83 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
apply plugin: 'java'
apply plugin: 'maven'
group = 'com.tradeshift'
version = '3.1.1'
description = """Remote JUnit runner"""
sourceCompatibility = 1.6
targetCompatibility = 1.6
task wrapper(type: Wrapper) {
gradleVersion = '2.11' //version required
}
configurations {
deployerJars
}
repositories {
maven { url "http://repo.maven.apache.org/maven2" }
}
dependencies {
deployerJars "org.apache.maven.wagon:wagon-ssh-external:2.10"
compile group: 'org.eclipse.jetty', name: 'jetty-servlet', version: '7.4.0.v20110414'
compile group: 'args4j', name: 'args4j', version: '2.0.16'
compile(group: 'org.slf4j', name: 'slf4j-api', version: '1.6.0') {
/* This dependency was originally in the Maven provided scope, but the project was not of type war.
This behavior is not yet supported by Gradle, so this dependency has been converted to a compile dependency.
Please review and delete this closure when resolved. */
}
compile(group: 'junit', name: 'junit', version: '4.11') {
/* This dependency was originally in the Maven provided scope, but the project was not of type war.
This behavior is not yet supported by Gradle, so this dependency has been converted to a compile dependency.
Please review and delete this closure when resolved. */
}
}
uploadArchives {
repositories.mavenDeployer {
configuration = configurations.deployerJars
repository(url: "scpexe://vps.katalisindonesia.com/home/maven") {
authentication(userName: "maven")
}
}
}
apply plugin: 'maven-publish'
task sourceJar(type: Jar) {
from sourceSets.main.allJava
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourceJar {
classifier "sources"
}
}
}
repositories {
maven {
url "sftp://vps.katalisindonesia.com:22/home/maven"
credentials {
username 'maven'
password "$mavenPassword"
}
}
}
}