forked from Scuilion/gradle-syntastic-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
69 lines (55 loc) · 1.33 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
buildscript {
repositories {
mavenLocal()
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.gradle.publish:plugin-publish-plugin:0.9.1"
}
}
plugins {
id "com.jfrog.bintray" version "1.2"
}
apply plugin: "com.gradle.plugin-publish"
apply plugin: 'java-gradle-plugin'
apply plugin: 'groovy'
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.bintray'
apply from: 'gradle/check.gradle'
apply from: 'gradle/publish-plugin.gradle'
apply from: 'gradle/functional-tests.gradle'
repositories {
mavenCentral()
}
dependencies {
compile 'org.codehaus.groovy:groovy-all:2.4.4'
compile 'org.apache.commons:commons-lang3:3.4'
testCompile 'org.spockframework:spock-core:1.0-groovy-2.4'
testCompile 'junit:junit:4.12'
}
task sourceJar(type: Jar, dependsOn:classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives sourceJar
}
publishing {
publications {
maven(MavenPublication) {
groupId group
artifactId artifactId
version version
from components.java
artifact sourceJar
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.8'
}
apply from: 'gradle/bintray.gradle'
//apply plugin: 'syntastic-plugin'