-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
53 lines (45 loc) · 1.09 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
buildscript {
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
dependencies {
classpath 'org.xtext:xtext-gradle-plugin:2.0.8'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.+'
}
}
subprojects {
group = 'io.opencaesar.adapters'
version = '0.8.1'
ext.versions = [
legacy: '0.9.7.+',
oml: '0.8.+',
]
repositories {
mavenLocal()
maven { url 'https://dl.bintray.com/jpl-imce/gov.nasa.jpl.imce.oml' }
maven { url 'https://dl.bintray.com/opencaesar/oml' }
mavenCentral()
jcenter()
}
apply plugin: 'java-library'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'com.jfrog.bintray'
apply plugin: 'org.xtext.xtend'
apply from: "${rootDir}/gradle/source-layout.gradle"
apply from: "${rootDir}/gradle/maven-deployment.gradle"
sourceCompatibility = '11'
targetCompatibility = '11'
task createVersion {
doLast {
def version = project.version.toString()
def file = new File("$projectDir/src/main/resources/version.txt")
file.write(version)
}
}
classes {
dependsOn createVersion
}
}