-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle
94 lines (80 loc) · 2.09 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
//File is based on: https://github.com/jitpack/gradle-simple/blob/master/build.gradle
apply plugin: 'maven'
apply plugin: 'scala'
apply plugin: 'idea'
apply plugin: 'maven-publish'
//apply plugin: 'distribution'
version = '0.2-SNAPSHOT'
group = 'com.github.stefansavev'
sourceCompatibility = 1.8 // java 8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile 'org.scala-lang:scala-library:2.11.4'
compile 'org.scala-lang:scala-compiler:2.11.4'
compile 'com.github.fommil.netlib:all:1.1.2'
compile 'com.googlecode.matrix-toolkits-java:mtj:1.0.1'
compile 'com.typesafe.akka:akka-actor_2.11:2.3.14'
compile 'com.typesafe.scala-logging:scala-logging_2.11:3.1.0'
testCompile "org.scalatest:scalatest_2.11:2.2.4"
testCompile 'org.slf4j:slf4j-simple:1.7.18'
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
// To specify a license in the pom:
install {
repositories.mavenInstaller {
pom.project {
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
}
}
}
/*
distributions {
main {
contents {
into('deploy') {
from(jar)
}
}
}
}
*/
dependencies {
testCompile "junit:junit:4.11"
}
/*
publishing {
publications {
myPublication(MavenPublication) {
// telling gradle to publish project's jar archive (2)
from components.java
}
}
// telling gradle to publish artifact to local directory (3)
repositories {
maven {
//url "file:/${project.projectDir}/artifacts"
url "file:/${project.projectDir}/../r/fuzzysearch-demo/local/repository"
}
}
}
*/