forked from signaflo/java-timeseries
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
100 lines (80 loc) · 3.19 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
plugins {
id "java-library"
id "com.github.johnrengelman.shadow" version "2.0.3" apply false
}
compileJava {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
compileTestJava {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
subprojects {
apply plugin: 'java-library'
apply plugin: 'maven'
apply plugin: 'signing'
apply plugin: 'jacoco'
apply plugin: 'com.github.johnrengelman.shadow'
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
signing {
required { isReleaseVersion && gradle.taskGraph.hasTask("uploadArchives") }
sign configurations.archives
}
repositories {
jcenter()
}
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: project.properties.ossrhUsername,
password: project.properties.ossrhPassword)
}
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: project.properties.ossrhUsername,
password: project.properties.ossrhPassword)
}
pom.project {
packaging 'jar'
// optionally artifactId can be defined here
description 'Time Series Analysis in Java'
url 'https://github.com/jrachiele/java-timeseries'
scm {
connection 'scm:git:git://github.com/signaflo/java-timeseries.git'
developerConnection 'scm:git:ssh://github.com/signaflo/java-timeseries.git'
url 'https://github.com/signaflo/java-timeseries'
}
licenses {
license {
name 'MIT License'
url 'https://opensource.org/licenses/MIT'
}
}
developers {
developer {
name 'Jacob Rachiele'
email '[email protected]'
}
}
}
}
}
}
shadowJar {
configurations = [project.configurations.getByName("runtimeClasspath")]
archiveName = "signal.jar"
}
dependencies {
//apt 'org.immutables:value:2.4.4'
//compileOnly 'org.immutables:value:2.4.4:annotations'
compileOnly 'org.projectlombok:lombok:1.18.0'
implementation 'com.google.guava:guava:21.0'
implementation 'org.ejml:all:0.30'
implementation 'org.knowm.xchart:xchart:3.2.2'
implementation 'org.slf4j:slf4j-api:1.7.25'
testImplementation 'com.google.guava:guava-testlib:21.0'
testImplementation 'junit:junit:4.12'
testImplementation 'org.hamcrest:hamcrest-library:1.3'
testRuntimeOnly 'org.slf4j:slf4j-nop:1.7.25'
}
}