-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
86 lines (74 loc) · 2.18 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
/*
* libHeartbeat (https://github.com/imec-apt/heartbeat)
* Copyright 2018 Matthias Stevens, IMEC vzw, Belgium.
* Released to the public domain (CC0-v1.0 license: https://creativecommons.org/publicdomain/zero/1.0/).
*/
buildscript {
repositories {
mavenCentral()
}
dependencies {
}
}
allprojects {
repositories {
mavenCentral()
}
}
apply plugin: 'java-library'
apply plugin: 'maven-publish'
sourceCompatibility = "1.7"
targetCompatibility = "1.7"
dependencies {
//implementation fileTree(dir: 'libs', include: ['*.jar'])
api 'uk.me.berndporr:iirj:1.1'
testImplementation 'junit:junit:4.12'
}
task sourcesJar(type: Jar) {
from sourceSets.main.allJava
classifier 'sources'
}
task javadocJar(type: Jar) {
from javadoc
classifier 'javadoc'
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId 'be.imec.apt'
artifactId 'libheartbeat'
version '1.0.2'
from components.java
artifact sourcesJar
artifact javadocJar
pom {
name = 'libHeartbeat'
description = 'A Java library to synthesise heartbeat sounds, ported from MATLAB (https://github.com/bencholmes/heartbeat).'
url = 'https://github.com/imec-apt/heartbeat'
licenses {
license {
name = 'Public domain (CC0-v1.0)'
url = 'https://creativecommons.org/publicdomain/zero/1.0/'
}
}
developers {
developer {
id = 'mstevens83'
name = 'Matthias Stevens'
email = 'matthias.stevens@imec.be'
}
}
scm {
connection = 'scm:git:git://github.com:imec-apt/heartbeat.git'
developerConnection = 'scm:git:ssh://github.com:imec-apt/heartbeat.git'
url = 'https://github.com/imec-apt/heartbeat'
}
}
}
}
repositories {
maven {
mavenLocal()
}
}
}