-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
90 lines (75 loc) · 2.59 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
buildscript {
repositories {
maven {
url 'https://plugins.gradle.org/m2/'
}
}
dependencies {
classpath 'gradle.plugin.io.ratpack:ratpack-gradle:1.4.4'
classpath 'com.gradle.publish:plugin-publish-plugin:0.9.6'
classpath 'gradle.plugin.com.energizedwork:idea-gradle-plugins:1.1'
classpath 'gradle.plugin.com.energizedwork.asl2:asl2-gradle-plugin:1.0'
}
}
apply plugin: 'io.ratpack.ratpack-base'
apply plugin: 'groovy'
apply plugin: 'codenarc'
apply plugin: 'java-gradle-plugin'
apply plugin: 'com.gradle.plugin-publish'
apply plugin: 'com.energizedwork.idea-junit'
apply plugin: 'com.energizedwork.idea-base'
apply plugin: 'com.energizedwork.asl2'
apply from: 'gradle/idea/idea.gradle'
apply from: 'gradle/dependencyRules.gradle'
repositories {
jcenter()
mavenCentral()
}
version = '1.3'
gradlePlugin {
plugins {
herokuRunnableJarBuildpackPlugin {
id = 'com.energizedwork.heroku-buildpack-runnable-jar'
implementationClass = 'com.energizedwork.gradle.heroku.HerokuRunnableJarBuildpackPlugin'
}
}
}
pluginBundle {
website = 'https://github.com/energizedwork/heroku-buildpack-runnable-jar-gradle-plugin/blob/master/README.md'
vcsUrl = 'https://github.com/energizedwork/heroku-buildpack-runnable-jar-gradle-plugin'
description = 'A Gradle plugin for deploying applications using runnable jar buildpack to Heroku'
tags = ['heroku', 'fatjar', 'deployment']
plugins {
herokuRunnableJarBuildpackPlugin {
id = 'com.energizedwork.heroku-buildpack-runnable-jar'
displayName = 'Heroku Runnable Jar Buildpack plugin'
}
}
}
dependencies {
codenarc('org.codenarc:CodeNarc:0.26.0') {
exclude module: 'GMetrics'
}
compile 'org.eclipse.jgit:org.eclipse.jgit:4.5.0.201609210915-r'
compile 'com.squareup.okhttp3:okhttp:3.4.2'
testCompile 'com.amazonaws:aws-java-sdk-s3:1.11.52'
testCompile ratpack.dependency('test')
testCompile 'org.gebish:geb-waiting:1.0'
testCompile 'com.nagternal:spock-genesis:0.6.0'
}
task writeTestConfig(type: WriteTestConfig) {
generatedTestResourcesDir = file("$buildDir/generated-test-resources")
testConfig(
herokuApiKey: project.herokuApiKey,
awsAccessKey: project.awsAccessKey,
awsSecretKey: project.awsSecretKey
)
}
processTestResources {
from writeTestConfig
}
sourceSets.test.resources.srcDir writeTestConfig.outputs.files.singleFile
ideaModule {
dependsOn writeTestConfig
}
codenarc.configFile = rootProject.file('gradle/codenarc/rulesets.groovy')