-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
46 lines (35 loc) · 1.13 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
apply plugin: 'groovy'
apply plugin: 'idea'
version = '0.1'
defaultTasks 'clean', 'build', 'jar'
sourceCompatibility = '1.5'
targetCompatibility = '1.5'
repositories {
mavenCentral()
}
dependencies {
compile gradleApi()
groovy localGroovy()
compile 'org.apache.sshd:sshd-core:0.8.0'
testCompile 'org.apache.camel:camel-core:2.10.3'
testCompile 'org.apache.camel:camel-ftp:2.10.3'
}
idea.project {
jdkName = '1.6'
ipr.withXml { provider ->
def node = provider.asNode()
// Use GIT
def vcsConfig = node.component.find { it.'@name' == 'VcsDirectoryMappings' }
vcsConfig.mapping[0].'@vcs' = 'Git'
// Set Gradle home
def gradleSettings = node.appendNode('component', [name: 'GradleSettings'])
gradleSettings.appendNode('option', [name: 'SDK_HOME', value: gradle.gradleHomeDir])
}
}
manifest {
attributes 'Implementation-Title': 'Gradle SFTP plugin',
'Implementation-Version': version,
'Built-By': System.getProperty('user.name'),
'Built-Date': new Date(),
'Built-JDK': System.getProperty('java.version')
}