forked from OliverColeman/bain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
88 lines (74 loc) · 2.24 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
plugins {
id "com.jfrog.bintray" version "1.4"
}
apply plugin: 'java'
// Determine version from last git tag.
def getVersionName = { ->
try {
def stdout = new ByteArrayOutputStream()
exec {
commandLine 'git', 'describe', '--tags'
standardOutput = stdout
}
return stdout.toString().trim()
}
catch (ignored) {
return null;
}
}
group = "org.ojcoleman.bain"
version = getVersionName()
repositories {
// Use 'jcenter' for resolving your dependencies.
// You can declare any Maven/Ivy/file repository here.
jcenter()
maven {
url "http://mvnrepository.com"
}
}
dependencies {
// The production code uses the SLF4J logging API at compile time
compile 'org.jfree:jfreechart:1.0.19'
compile 'org.swinglabs.swingx:swingx-all:1.6.4'
compile fileTree(dir: 'lib', include: 'aparapi.jar')
// Declare the dependency for your favourite test framework you want to use in your tests.
// TestNG is also supported by the Gradle Test task. Just change the
// testCompile dependency to testCompile 'org.testng:testng:6.8.1' and add
// 'test.useTestNG()' to your build script.
testCompile 'junit:junit:4.12'
}
// Default jar file for "assemble" task.
jar {
manifest {
attributes 'Main-Class': 'com.ojcoleman.bain.gui.STDPTestGUIApp'
}
}
// Assemble task that includes all dependencies (makes a "fat" jar")
task withDeps(type: Jar) {
manifest.from jar.manifest
baseName = project.name + '-all'
from {
configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) }
}
with jar
}
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
pkg {
repo = 'maven'
name = 'bain'
desc = "Neural network simulator."
websiteUrl = "http://olivercoleman.github.io/bain"
issueTrackerUrl = "https://github.com/OliverColeman/bain/issues"
vcsUrl = 'https://github.com/OliverColeman/bain.git'
licenses = ['GPL-3.0']
version {
name = getVersionName()
//desc = 'Initial release'
released = new Date()
vcsTag = getVersionName()
}
}
configurations = ['archives']
}