Skip to content

Commit 0eb6b6f

Browse files
committed
commit gradle files
1 parent 461e148 commit 0eb6b6f

3 files changed

Lines changed: 104 additions & 4 deletions

File tree

JavaShimmerConnect/build.gradle

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ repositories {
1818
flatDir {
1919
dirs 'libs'
2020
}
21+
maven {
22+
url "http://dl.bintray.com/jongchern/testshimmer"
23+
}
2124
}
2225

2326
// In this section you declare the dependencies for your production and test code
@@ -31,8 +34,9 @@ dependencies {
3134
// 'test.useTestNG()' to your build script.
3235
testCompile 'junit:junit:4.12'
3336

34-
compile project (':ShimmerDriver')
35-
compile project (':ShimmerDriverPC')
37+
//compile project (':ShimmerDriver')
38+
//compile project (':ShimmerDriverPC')
3639
compile name: 'ShimmerBiophysicalProcessingLibrary_Rev_0_11'
37-
40+
compile 'com.shimmerresearch.driver:ShimmerDriver:0.4'
41+
compile 'com.shimmerresearch.pcdriver:ShimmerDriverPC:1.0'
3842
}

ShimmerDriver/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ archivesBaseName = 'ShimmerDriver'
88
/*Rev0.2
99
* - fixes for shimmer2r and writeSensors not working after streaming
1010
*/
11-
version = '0.4b'
11+
version = '0.4c'
1212

1313
group = 'com.shimmerresearch.driver'
1414

ShimmerDriverPC/build.gradle

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,22 @@
99

1010
// Apply the java plugin to add support for Java
1111
apply plugin: 'java'
12+
apply plugin: 'eclipse'
13+
apply plugin: 'maven'
14+
apply plugin: 'maven-publish'
15+
apply plugin: 'com.jfrog.bintray'
16+
archivesBaseName = 'ShimmerDriverPC'
17+
group = 'com.shimmerresearch.pcdriver'
18+
//group = "myorg"
1219
version = '1.0'
20+
buildscript {
21+
repositories {
22+
jcenter()
23+
}
24+
dependencies {
25+
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
26+
}
27+
}
1328

1429
// In this section you declare where to find the dependencies of your project
1530
repositories {
@@ -54,6 +69,87 @@ task fatJar(type: Jar) {
5469
with jar
5570
}
5671

72+
73+
// custom tasks for creating source/javadoc jars
74+
task sourcesJar(type: Jar, dependsOn: classes) {
75+
classifier = 'sources'
76+
from sourceSets.main.allSource
77+
}
78+
79+
task javadocJar(type: Jar, dependsOn: javadoc) {
80+
classifier = 'javadoc'
81+
from javadoc.destinationDir
82+
}
83+
84+
// add javadoc/source jar tasks as artifacts
85+
artifacts {
86+
archives sourcesJar, javadocJar
87+
}
88+
89+
publishing {
90+
publications {
91+
mavenJava(MavenPublication) {
92+
if (plugins.hasPlugin('war')) {
93+
from components.web
94+
} else {
95+
from components.java
96+
}
97+
98+
artifact sourcesJar
99+
//artifact javadocJar
100+
}
101+
}
102+
}
103+
104+
bintray {
105+
user = bintray_username //this usually comes from gradle.properties file in ~/.gradle
106+
key = bintray_api_key //this usually comes from gradle.properties file in ~/.gradle
107+
108+
// configurations = ['deployables'] //When uploading configuration files
109+
// - OR -
110+
publications = ['mavenJava'] //When uploading Maven-based publication files
111+
// - AND/OR -
112+
// filesSpec { //When uploading any arbitrary files ('filesSpec' is a standard Gradle CopySpec)
113+
// from 'arbitrary-files'
114+
// into 'standalone_files/level1'
115+
// rename '(.+)\\.(.+)', '$1-suffix.$2'
116+
// }
117+
dryRun = false //Whether to run this as dry-run, without deploying
118+
publish = true //If version should be auto published after an upload
119+
pkg {
120+
// repo = 'myrepo'
121+
repo = 'testshimmer'
122+
name = 'shimmerdriverpc'
123+
// userOrg = 'myorg' //An optional organization name when the repo belongs to one of the user's orgs
124+
desc = 'this is the Shimmer Driver for PC'
125+
websiteUrl = 'https://github.com/bintray/bintray-examples'
126+
issueTrackerUrl = 'https://github.com/bintray/bintray-examples/issues'
127+
vcsUrl = 'https://github.com/JongChern/ShimmerTest'
128+
licenses = ['Apache-2.0']
129+
labels = ['example', 'gradle', 'bintray']
130+
publicDownloadNumbers = true
131+
attributes= ['a': ['ay1', 'ay2'], 'b': ['bee'], c: 'cee'] //Optional package-level attributes
132+
//Optional version descriptor
133+
version {
134+
name = project.version //Bintray logical version name
135+
desc = 'optional, version-specific description'
136+
// released = 'optional, date of the version release' //2 possible values: date in the format of 'yyyy-MM-dd'T'HH:mm:ss.SSSZZ' OR a java.util.Date instance
137+
// vcsTag = '1.3.0'
138+
// attributes = ['gradle-plugin': 'com.use.less:com.use.less.gradle:gradle-useless-plugin'] //Optional version-level attributes
139+
// gpg {
140+
// sign = true //Determines whether to GPG sign the files. The default is false
141+
// passphrase = 'passphrase' //Optional. The passphrase for GPG signing'
142+
// }
143+
mavenCentralSync {
144+
sync = false //Optional (true by default). Determines whether to sync the version to Maven Central.
145+
user = 'userToken' //OSS user token
146+
password = 'paasword' //OSS user password
147+
close = '1' //Optional property. By default the staging repository is closed and artifacts are released to Maven Central. You can optionally turn this behaviour off (by puting 0 as value) and release the version manually.
148+
}
149+
}
150+
}
151+
}
152+
57153
// In this section you declare the dependencies for your production and test code
58154
dependencies {
59155
// The production code uses the SLF4J logging API at compile time

0 commit comments

Comments
 (0)