-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
60 lines (45 loc) · 1.3 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
group = 'one.chest.ratpack'
version = '0.0.3'
apply plugin: 'groovy'
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.10.0'
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.8.1'
}
}
apply from: 'coverage.gradle'
apply from: 'license.gradle'
apply from: 'publication.gradle'
repositories {
jcenter()
}
dependencies {
compileOnly 'io.ratpack:ratpack-groovy:1.4.6'
compile 'org.codehaus.groovy:groovy-all:2.4.12'
compile 'javax.validation:validation-api:1.1.0.Final'
testCompile 'io.ratpack:ratpack-groovy:1.4.6'
testCompile 'org.glassfish.web:el-impl:2.2'
testCompile 'org.hibernate:hibernate-validator:5.4.1.Final'
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])
}
}