-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
102 lines (92 loc) · 2.86 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
plugins {
id 'groovy'
id 'maven-publish'
}
group 'org.m2ci.msp'
version '0.6-SNAPSHOT'
description 'Articulatory data ToolKit'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
jcenter()
}
dependencies {
compileOnly localGroovy()
compile group: 'com.google.guava', name: 'guava', version: '25.1-jre'
compile group: 'org.ejml', name: 'ejml-simple', version: '0.34'
testCompile localGroovy()
testCompile group: 'org.assertj', name: 'assertj-core', version: '3.10.0'
testCompileOnly group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.2.0'
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.2.0'
}
// only use the groovy compiler
sourceSets {
main {
java { srcDirs = [] }
groovy { srcDirs = ["src/main/java", "src/main/groovy"] }
}
}
test {
useJUnitPlatform()
}
task sourceJar(type: Jar) {
from sourceSets.main.allJava
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourceJar {
classifier 'sources'
}
pom {
name = project.name
description = project.description
organization {
name = 'MMCI'
url = 'http://m2ci.org/'
}
inceptionYear = '2011'
licenses {
license {
name = 'GNU General Public License v3.0 or later'
url = 'https://www.gnu.org/licenses/gpl.txt'
}
}
developers {
developer {
id = 'psibre'
name = 'Ingmar Steiner'
}
developer {
id = 'ahewer'
name = 'Alexander Hewer'
}
}
issueManagement {
system = 'GitHub'
url = 'https://github.com/m2ci-msp/artk/issues'
}
scm {
url = 'https://github.com/m2ci-msp/artk'
developerConnection = 'scm:git:git@github.com:m2ci-msp/artk.git'
}
distributionManagement {
downloadUrl = 'https://api.bintray.com/maven/m2ci-msp/maven/artk'
}
}
}
}
repositories {
maven {
url "$buildDir/repo"
}
maven {
url version.endsWith('-SNAPSHOT') ? 'https://oss.jfrog.org/artifactory/oss-snapshot-local' : 'https://api.bintray.com/maven/m2ci-msp/maven/artk'
credentials {
username = findProperty('bintrayUser')
password = findProperty('bintrayApiKey')
}
}
}
}