-
Notifications
You must be signed in to change notification settings - Fork 18
/
build.gradle
67 lines (54 loc) · 2.13 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
import org.jsweet.transpiler.EcmaScriptComplianceLevel;
apply plugin: 'java'
apply plugin: 'maven'
group = 'org.jsweet'
version = "3.1.0-SNAPSHOT"
description = """A set of examples to illustrate JSweet"""
sourceCompatibility = 1.11
targetCompatibility = 1.11
buildscript {
ext {
JSweetVersion = "3.1.0-SNAPSHOT"
}
boolean snapshotMode = true;
project.ext.repoType = snapshotMode ? 'snapshot' : 'release';
println "repoType=" + project.repoType + " JSweetVersion=${JSweetVersion}"
repositories {
mavenLocal()
mavenCentral()
maven { url "http://repository.jsweet.org/artifactory/libs-" + project.repoType + "-local" }
maven { url "http://repository.jsweet.org/artifactory/plugins-" + project.repoType + "-local" }
maven { url "http://repository.jsweet.org/artifactory/libs-release-local" }
maven { url "http://repository.jsweet.org/artifactory/plugins-release-local" }
}
dependencies {
classpath("org.jsweet:jsweet-gradle-plugin:" + JSweetVersion) { transitive = true }
}
}
repositories {
mavenCentral()
maven { url "http://repository.jsweet.org/artifactory/libs-" + project.repoType + "-local" }
maven { url "http://repository.jsweet.org/artifactory/libs-release-local" }
}
dependencies {
compile group: 'org.jsweet', name: 'jsweet-transpiler', version: project.version
compile group: 'org.jsweet', name: 'jsweet-core', version: "6.3.0"
compile group: 'org.jsweet.candies', name: 'angular', version: "1.4.0-20201211"
compile group: 'org.jsweet.candies', name: 'angular-route', version: "1.2.0-20201211"
compile group: 'org.jsweet.candies', name: 'backbone', version:"1.3.0-20201211"
compile group: 'org.jsweet.candies', name: 'knockout', version:"3.4.0-20170726"
// Allows us to use 'marked', a Markdown to HTML converter: https://github.com/chjj/marked
compile group: 'org.jsweet.candies', name: 'marked', version: "0.0.0-20170726"
}
compileJava {
enabled = false
}
apply plugin: 'org.jsweet.jsweet-gradle-plugin'
jsweet {
verbose = true
encoding = 'UTF-8'
sourceMap = true
outDir = project.file('target/js')
targetVersion = EcmaScriptComplianceLevel.ES6
includes = ['**/org/jsweet/examples/**/*.java', '**/def/**/*.java']
}