-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
84 lines (72 loc) · 2.02 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
plugins {
id 'org.xtext.xtend' version '3.0.2'
id 'org.xtext.builder' version '3.0.2'
id 'java'
id 'eclipse'
id 'application'
id 'maven'
}
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
def blangVersion = '4.0.1'
dependencies {
xtextLanguages "com.github.UBC-Stat-ML.blangDSL:ca.ubc.stat.blang:${blangVersion}"
compile group: 'com.github.UBC-Stat-ML', name: 'blangSDK', version: '2.18.4'
compile group: 'com.github.UBC-Stat-ML', name: 'nowellpack', version: '0.0.0'
compile group: 'com.github.UBC-Stat-ML', name: 'conifer', version: '2.1.3'
}
xtext {
languages {
blang {
setup = 'ca.ubc.stat.blang.BlangDslStandaloneSetup'
fileExtension = 'bl'
generator.outlet.producesJava = true
generator.javaSourceLevel = '1.8'
}
}
}
repositories {
mavenCentral()
jcenter()
maven { url "file:///${System.properties['user.home']}/artifacts/" }
maven { url 'https://jitpack.io' }
maven { url "https://ubc-stat-ml.github.io/artifacts/" }
maven { url "https://www.stat.ubc.ca/~bouchard/maven/" }
}
xtend {
generator {
javaSourceLevel = 1.8
}
}
mainClassName = "demos.Main"
configurations.archives.with {
artifacts.remove artifacts.find { it.file =~ 'tar' }
artifacts.remove artifacts.find { it.file =~ 'zip' }
}
uploadArchives {
repositories {
mavenDeployer {
repository(url: "file:///${System.properties['user.home']}/artifacts/")
snapshotRepository(url: "file:///${System.properties['user.home']}/artifacts/")
pom.version = "1.0.1" /* blang-standalone-compiler-directive - do not edit : EXTRACT_VERSION */
pom.artifactId = "blangDemos"
pom.groupId = "com.github.UBC-Stat-ML"
}
}
}
jar {
from { fileTree(dir: 'src/main/java', includes: [ '**/*.bl' ]) }
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from 'build/docs/javadoc'
}
artifacts {
archives jar
archives sourcesJar
archives javadocJar
}