forked from xtext/xtext-gradle-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
91 lines (74 loc) · 1.98 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
91
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.xtext:xtext-gradle-plugin:2.0.2'
classpath 'com.github.oehme.sobula:sobula:0.6.7'
classpath 'com.netflix.nebula:nebula-project-plugin:4.0.1'
}
}
allprojects {
apply plugin: 'com.github.oehme.sobula.plugin-release'
group = "org.xtext"
bintray.pkg.name = "org.xtext:xtext-gradle-plugin"
contacts {
moniker "The Xtext team"
roles "owner"
github "xtext"
}
}
bintray.user = "xtext-team"
bintray.pkg.version.mavenCentralSync.user = "xtext.team"
repositories {
jcenter()
}
}
subprojects {
apply plugin: 'eclipse'
apply plugin: 'java'
sourceCompatibility = 1.8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
dependencies {
compile gradleApi()
compile 'com.google.guava:guava:21.0'
testCompile 'junit:junit:4.12'
testCompile 'org.ow2.asm:asm:6.1.1'
}
}
configure(subprojects.findAll{p-> !p.name.contains('protocol')}) {
apply plugin: 'org.xtext.xtend'
}
apply from: "${rootDir}/gradle/xtend-bootstrap.gradle"
configure(subprojects.findAll{p-> p.name.contains('plugin')}){
apply plugin: 'java-gradle-plugin'
apply plugin: 'nebula.facet'
jar {
manifest {
attributes("Implementation-Version": project.version)
}
}
facets {
integTest {
parentSourceSet = 'test'
testTaskName = 'minimumIntegrationTest'
}
}
minimumIntegrationTest {
dependsOn("install")
systemProperty 'gradle.project.version', version
systemProperty 'xtext.version', minimumXtextVersion
}
task latestIntegrationTest(type: Test) {
classpath = minimumIntegrationTest.classpath
testClassesDirs = minimumIntegrationTest.testClassesDirs
dependsOn("install")
systemProperty 'gradle.project.version', version
systemProperty 'xtext.version', latestXtextVersion
enabled = JavaVersion.current().java8Compatible
}
check.dependsOn(latestIntegrationTest)
}