-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
60 lines (54 loc) · 1.5 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
buildscript {
repositories {
mavenLocal()
mavenCentral()
google()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
jcenter()
maven { url "https://chaquo.com/maven" }
}
dependencies {
classpath "org.wisepersist:gwt-gradle-plugin:$gwtPluginVersion"
classpath "com.android.tools.build:gradle:$androidPluginVersion"
classpath "com.mobidevelop.robovm:robovm-gradle-plugin:$robovmVersion"
classpath 'io.github.fvarrui:javapackager:1.5.1'
classpath 'com.chaquo.python:gradle:9.1.0'
}
}
allprojects {
apply plugin: 'eclipse'
apply plugin: 'idea'
}
configure(subprojects - project(':android')) {
apply plugin: 'java-library'
sourceCompatibility = 8.0
compileJava {
options.incremental = true
}
}
subprojects {
version = '0.1'
ext.appName = 'robot-recharge'
repositories {
mavenLocal()
mavenCentral()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
maven { url 'https://jitpack.io' }
jcenter()
}
}
eclipse.project.name = 'robot-recharge' + '-parent'
task buildBlockly(type: Exec) {
workingDir 'blockly'
commandLine 'npm', 'run', 'build'
}
task updateBlockly(type: Copy) {
dependsOn buildBlockly
from ('blockly') {
include '*_compressed.js'
exclude 'dart_compressed.js'
}
//from "blockly/javascript_compressed.js", "blockly/php_compressed.js", "blockly/lua_compressed.js", "blockly/python_compressed.js", "blockly/blockly_compressed.js", "blockly/blocks_compressed.js"
into "assets/blockly"
rename '(.+)_compressed\\.js', '$1.js'
}