-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
53 lines (42 loc) · 1.1 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
group = 'one.chest'
version = '0.0.1'
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.10.0'
}
}
apply plugin: 'groovy'
apply from: 'publication.gradle'
apply from: 'integTest.gradle'
apply from: 'license.gradle'
repositories {
jcenter()
}
dependencies {
compile 'org.slf4j:slf4j-api:1.7.25'
compile 'org.codehaus.groovy:groovy-all:2.4.13'
compile 'org.mongodb:mongo-java-driver:3.6.1'
testCompile 'org.testcontainers:testcontainers:1.5.1'
testCompile 'junit:junit:4.12'
}
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
}
import org.apache.tools.ant.filters.ReplaceTokens
processResources {
filesMatching('**/org.codehaus.groovy.runtime.ExtensionModule') {
filter(ReplaceTokens, tokens: [NAME: project.name, VERSION: project.version])
}
}