-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
48 lines (39 loc) · 1.01 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
apply plugin: 'java'
version = '0.2.2'
apply plugin: 'checkstyle'
apply plugin: 'jacoco'
checkstyle {
configFile = file('config/checkstyle/checkstyle.xml')
}
repositories {
mavenCentral()
}
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'Rec v2',
'Implementation-Version': version,
'Main-Class': 'net.kimleo.rec.App'
}
baseName = project.name
from { configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
dependencies {
compile "org.mozilla:rhino:1.7.7.1"
compile "org.slf4j:slf4j-api:1.7.25"
runtime "org.slf4j:slf4j-log4j12:1.7.25"
testCompile 'junit:junit:4.11'
testCompile 'org.mockito:mockito-core:2.8.47'
}
task sourcesJar(type: Jar) {
from sourceSets.main.java.srcDirs
classifier = 'sources'
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}