forked from johndevs/gradle-vaadin-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vaadin-groovy.plugin
34 lines (32 loc) · 1.12 KB
/
vaadin-groovy.plugin
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
/*
* Bootstrap script for the Gradle Vaadin Plugin.
*
* The script will add the latest version of the plugin to the build script
* dependencies and apply the plugin to the project. If you do not want
* this behaviour you can copy&paste the below configuration into your
* own build script and define your own repository and version for the plugin.
*/
buildscript {
repositories {
def version = VersionNumber.parse(project.gradle.gradleVersion)
def repositoryName = 'Bintray Repository'
def repositoryUrl = 'http://dl.bintray.com/johndevs/maven'
if(version.minor < 9 && version.major == 1){
mavenRepo(
name: repositoryName,
url: repositoryUrl
)
} else {
maven({
name = repositoryName
url = repositoryUrl
})
}
}
dependencies {
classpath group: 'fi.jasoft.plugin', name: 'gradle-vaadin-plugin', version: '+'
}
}
if (!project.plugins.findPlugin(fi.jasoft.plugin.GradleVaadinGroovyPlugin)) {
project.apply(plugin: fi.jasoft.plugin.GradleVaadinGroovyPlugin)
}