forked from JaciBrunning/Pathfinder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
39 lines (34 loc) · 1.03 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
plugins {
id "jaci.openrio.gradle.GradleRIO" version "2018.03.06" apply false
id "jaci.gradle.EmbeddedTools" version "2018.02.04" apply false
}
allprojects {
repositories {
jcenter()
}
apply plugin: 'idea'
version = '1.8'
}
subprojects {
apply plugin: 'jaci.openrio.gradle.GradleRIO'
apply plugin: 'maven-publish'
plugins.withType(CPlugin).whenPluginAdded {
project.apply plugin: "visual-studio"
}
publishing {
repositories {
maven {
def pwdfile = file(java.nio.file.Paths.get(System.getProperty('user.home')).resolve('imjacinta.maven.cred'))
if (pwdfile.exists() && !project.hasProperty('mavenlocal')) {
url("sftp://imjac.in:22/home/maven/public")
credentials {
username 'maven'
password pwdfile.text
}
} else {
url("${project.buildDir}/repo")
}
}
}
}
}