-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathbuild.gradle
executable file
·72 lines (62 loc) · 2.12 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
buildscript {
ext {
assetPipelineVersion = "2.7.2"
jobDslVersion = "1.79"
}
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'io.ratpack:ratpack-gradle:1.2.0'
classpath "com.github.jengelman.gradle.plugins:shadow:1.2.2"
classpath "com.bertramlabs.plugins:asset-pipeline-gradle:${assetPipelineVersion}"
classpath "com.bertramlabs.plugins:less-asset-pipeline:${assetPipelineVersion}"
}
}
// The “ratpack” plugin applies the “application” plugin, making it easy to create a standalone application.
// See: http://gradle.org/docs/current/userguide/application_plugin.html
apply plugin: "io.ratpack.ratpack-groovy"
apply plugin: "com.github.johnrengelman.shadow"
apply plugin: "asset-pipeline"
// The “ratpack” plugin is IDEA aware.
// It will create a run configuration in IDEA to launch your app in your IDE, with hot reloading.
apply plugin: "idea"
idea {
project {
jdkName "1.8"
languageLevel "1.8"
ipr {
withXml { provider ->
def node = provider.asNode()
//configure git support for the project in idea
node.component.find { it.'@name' == 'VcsDirectoryMappings' }?.mapping[0].'@vcs' = 'Git'
}
}
}
}
apply plugin: "eclipse"
repositories {
mavenCentral()
maven { url "https://repo.jenkins-ci.org/releases/" }
}
configurations.all {
exclude module: "groovy"
}
dependencies {
// Default SLF4J binding. Note that this is a blocking implementation.
// See here for a non blocking appender http://logging.apache.org/log4j/2.x/manual/async.html
runtime 'org.slf4j:slf4j-simple:1.7.7'
compile "org.jenkins-ci.plugins:job-dsl-core:${jobDslVersion}"
compile "com.bertramlabs.plugins:ratpack-asset-pipeline:${assetPipelineVersion}"
runtime "com.bertramlabs.plugins:less-asset-pipeline:${assetPipelineVersion}"
testCompile "org.spockframework:spock-core:1.0-groovy-2.4"
}
shadowJar {
manifest {
attributes 'Implementation-Version': jobDslVersion
}
}
task stage {
dependsOn shadowJar
}