forked from crossbario/autobahn-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
42 lines (38 loc) · 1.03 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
def _PLATFORM = project.properties.get('buildPlatform')
assert (_PLATFORM == 'android' || _PLATFORM == 'netty' || _PLATFORM == 'next' || _PLATFORM == null)
def _PUBLISH = true
if (_PLATFORM == null) {
_PLATFORM = 'android'
_PUBLISH = false
}
project.ext {
PLATFORM = _PLATFORM
PLUGIN_ANDROID_APP = 'com.android.application'
PLUGIN_JAVA_APP = 'application'
IS_ANDROID = _PLATFORM == 'android'
IS_NETTY = _PLATFORM == 'netty'
IS_NEXT = _PLATFORM == 'next'
BUILD_LEGACY = project.properties.get('buildLegacy', false)
PUBLISH = _PUBLISH
}
buildscript {
repositories {
jcenter()
google()
mavenCentral()
}
// Android specific dependencies.
if (project.properties.get('buildPlatform', 'android') == 'android') {
dependencies {
classpath 'com.android.tools.build:gradle:4.1.3'
}
}
}
allprojects {
repositories {
jcenter()
google()
mavenCentral()
maven { url "https://dl.bintray.com/ethereum/maven/" }
}
}