forked from jeffheaton/encog-java-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
58 lines (46 loc) · 1.22 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
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'maven'
sourceCompatibility=1.6
targetCompatibility=1.6
def props = new Properties();
def localProperties = new File("local.properties")
if (localProperties.exists()) localProperties.withInputStream { props.load(it) }
group = props.get('group')
version = props.get('version')
configurations {
deployerJars
}
repositories {
mavenCentral()
}
dependencies {
testCompile 'junit:junit:4.10'
testCompile 'org.hsqldb:hsqldb:2.0.0'
deployerJars 'org.apache.maven.wagon:wagon-ssh:2.1'
}
task sourcesJar(type: Jar, dependsOn:classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn:javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
uploadArchives {
repositories {
mavenDeployer {
configuration = configurations.deployerJars
repository(url: props.get('maven.repository.url')) {
authentication(userName: props.get('maven.repository.user'), password: props.get('maven.repository.password'))
}
}
}
}
task createWrapper(type: Wrapper) {
gradleVersion = '1.0-milestone-6'
}