-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathbuild.gradle
78 lines (62 loc) · 2.81 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
import org.jsweet.transpiler.EcmaScriptComplianceLevel;
apply plugin: 'java'
apply plugin: 'maven'
group = 'org.jsweet'
version = "2.0.0" + project.dependenciesVersionSuffix
description = """A set of examples to illustrate JSweet"""
sourceCompatibility = 1.8
targetCompatibility = 1.8
buildscript {
boolean snapshotMode = true;
project.ext.repoType = snapshotMode ? 'snapshot' : 'release';
project.ext.dependenciesVersionSuffix = snapshotMode ? '-SNAPSHOT' : '';
println "repoType=" + project.repoType
println "dependenciesVersionSuffix=" + project.dependenciesVersionSuffix
repositories {
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://google-diff-match-patch.googlecode.com/svn/trunk/maven" }
}
dependencies {
classpath('org.jsweet:jsweet-gradle-plugin:2.0.0-SNAPSHOT') { //
transitive = true }
}
}
task wrapper(type: Wrapper) {
description = "Generates gradlew(.bat) scripts. To update, run this after changing Gradle's version number."
gradleVersion = "3.3"
// Include Gradle documentation and source
distributionUrl = "https://services.gradle.org/distributions/gradle-${gradleVersion}-all.zip"
}
repositories {
mavenCentral()
maven { url "http://repository.jsweet.org/artifactory/libs-" + project.repoType + "-local" }
maven { url "http://google-diff-match-patch.googlecode.com/svn/trunk/maven" }
}
configurations {
jsweetcorestrict
}
dependencies {
compile group: 'org.jsweet', name: 'jsweet-transpiler', version:"2.0.0" + project.dependenciesVersionSuffix
compile group: 'org.jsweet', name: 'jsweet-core', version:"5" + project.dependenciesVersionSuffix
compile group: 'org.jsweet.candies.ext', name: 'angular', version:"1.4.0" + project.dependenciesVersionSuffix
compile group: 'org.jsweet.candies.ext', name: 'angular-route', version:"1.2.0" + project.dependenciesVersionSuffix
compile group: 'org.jsweet.candies.trusted', name: 'es6-promise', version:"0.0.0" + project.dependenciesVersionSuffix
compile group: 'org.jsweet.candies.ext', name: 'backbone', version:"1.3.0" + project.dependenciesVersionSuffix
compile group: 'org.jsweet.candies.ext', name: 'knockout', version:"3.4.0" + project.dependenciesVersionSuffix
// Allows us to use 'marked', a Markdown to HTML converter: https://github.com/chjj/marked
compile group: 'org.jsweet.candies.ext', name: 'marked', version: "0.0.0" + project.dependenciesVersionSuffix
}
compileJava {
enabled = false
}
apply plugin: 'org.jsweet.jsweet-gradle-plugin'
jsweet {
verbose = true
encoding = 'UTF-8'
sourceMap = true
outDir = new File('target/js')
targetVersion = EcmaScriptComplianceLevel.ES3
includes = ['**/org/jsweet/examples/**/*.java', '**/def/**/*.java']
}