-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathbuild.gradle
126 lines (104 loc) · 4.02 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
apply plugin: 'maven'
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'signing'
apply plugin: 'application'
mainClassName = 'org.numenta.nupic.examples.napi.hotgym.NetworkAPIDemo'
group = 'org.numenta'
version = '0.6.9-SNAPSHOT'
archivesBaseName = 'htm.java-examples'
sourceCompatibility = 1.8
targetCompatibility = 1.8
jar {
manifest {
attributes 'Implementation-Title': 'htm.java-examples', 'Implementation-Version': '0.6.9-SNAPSHOT'
}
}
// In this section you declare where to find the dependencies of your project
repositories {
// Use 'maven central' for resolving your dependencies.
// You can declare any Maven/Ivy/file repository here.
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
maven { url "./libs" }
}
dependencies {
compile group: 'org.numenta', name: 'htm.java', version: '0.6.9-SNAPSHOT'
compile group: 'cortical', name: 'cortical-fxwidgets', version: '0.9.1'
compile group: 'cortical', name: 'cortical-twitterutils', version: '0.9.1'
compile group: 'joda-time', name: 'joda-time', version: '2.5'
compile(group: 'com.chaschev', name: 'chutils', version:'1.4') {
exclude(module: 'mockito-all')
exclude(module: 'slf4j-api')
exclude(module: 'guava')
exclude(module: 'jsr305')
exclude(module: 'commons-io')
}
compile group: 'net.sf.trove4j', name: 'trove4j', version:'3.0.3'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version:'2.4.4'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version:'2.4.4'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version:'2.4.4'
compile group: 'org.slf4j', name: 'slf4j-api', version:'1.7.10'
compile group: 'io.reactivex', name: 'rxjava', version: '1.0.10'
compile group: 'io.cortical', name: 'retina-api-java-sdk', version: '1.0.1'
testCompile group: 'junit', name: 'junit', version:'4.11'
testCompile group: 'ch.qos.logback', name: 'logback-classic', version:'1.1.2'
}
/////////////////////////////////////////////////////////////////
// SonaType Central Repo //
/////////////////////////////////////////////////////////////////
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives javadocJar, sourcesJar
}
signing {
required { gradle.taskGraph.hasTask("uploadArchives") }
sign configurations.archives
}
uploadArchives {
javadoc.failOnError = false
if(!project.hasProperty('ossrhUsername')) {
return
}
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
pom.project {
name 'Numenta htm.java-examples'
packaging 'jar'
artifactId 'htm.java'
description "Example Apps for the Java version of Numenta's HTM technology."
url 'https://github.com/numenta/htm.java-examples'
scm {
connection 'scm:git:git://github.com/numenta/htm.java-examples.git'
developerConnection 'scm:git:git://github.com/numenta/htm.java-examples.git'
url 'https://github.com/numenta/htm.java-examples'
}
licenses {
license {
name 'The GNU General Public License.'
url 'https://github.com/numenta/htm.java-examples/blob/master/LICENSE.txt'
}
}
}
}
}
}
/////////////////// END Central Repo ////////////////
// create Gradle wrapper with command line `gradle wrapper` in terminal
task wrapper(type: Wrapper) {
gradleVersion = '2.2'
}