-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
75 lines (65 loc) · 1.95 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
/**
This is the default build.gradle for Toast modules
@author Jaci
*/
buildscript {
repositories {
mavenCentral()
maven {
name = "GradleRIO"
url = "http://dev.imjac.in/maven"
}
}
dependencies {
classpath group: 'jaci.openrio.gradle', name: 'GradleRIO', version: '+', classifier: 'Toast' //Change this line if you wish to Update GradleRIO
}
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'maven'
apply plugin: 'GradleRIO' //Apply the GradleRIO plugin
repositories {
maven {
name = "Toast"
url = "http://dev.imjac.in/maven"
}
}
archivesBaseName = "BlackBox"
version = "0.1.0"
group = "jaci.openrio.modules"
gradlerio.team = "9999" //Your FRC team number (e.g. 5333 for team 'Can't C#', or 47 for Chief Delphi)
//gradlerio.rioIP = "10.53.33.20" //Uncomment to specify the IP address of the RIO
gradlerio.deployFile = "toast/modules/${archivesBaseName}.jar"
configurations {
deployerJars
}
dependencies {
compile group: 'jaci.openrio.toast', name: 'Toast', version: '+' //Change this line to update Toast
deployerJars 'org.apache.maven.wagon:wagon-ssh:2.2'
}
uploadArchives {
repositories.mavenDeployer {
configuration = configurations.deployerJars
repository(url: "scp://imjac.in/home/maven/maven") {
authentication(userName: "maven", password: "")
}
pom {
groupId = project.group
version = project.version
artifactId = project.archivesBaseName
project {
name project.archivesBaseName
packaging 'jar'
description 'BlackBox Sensor Recording'
}
pom*.whenConfigured { pom -> pom.dependencies.clear() }
}
}
}
uploadArchives.doFirst {
println "Please input maven password"
println()
def pass = System.console().readPassword().toString().trim()
uploadArchives.repositories.mavenDeployer.repository.authentication.password = pass
}