-
Notifications
You must be signed in to change notification settings - Fork 105
/
Copy pathbuild.gradle
70 lines (57 loc) · 1.87 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
buildscript {
repositories {
mavenLocal()
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://plugins.gradle.org/m2/" }
gradlePluginPortal()
google()
}
dependencies {
classpath "com.android.tools.build:gradle:$androidBuildToolsPluginVersion"
classpath "gradle.plugin.io.netifi:gradle-flatbuffers-plugin:$flatbuffersPluginVersion"
}
dependencies {
// lib for artemis-odb weaving.
// see https://github.com/junkdog/artemis-odb/wiki/Bytecode-weaving
// classpath "net.onedaybeard.artemis:artemis-odb-gradle-plugin:$artemisOdbVersion"
// lib for artemis-odb fluid.
// classpath "net.onedaybeard.artemis:artemis-fluid-gradle-plugin:$artemisOdbVersion"
}
}
allprojects {
apply plugin: 'idea'
version = '0.0.5-SNAPSHOT'
ext.appName = 'riiablo'
repositories {
mavenLocal()
mavenCentral()
google()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
maven { url 'https://oss.sonatype.org/content/repositories/releases/' }
maven { url 'https://jitpack.io' }
}
}
configure(subprojects - project(':android')) {
apply plugin: 'java-library'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
compileJava {
options.incremental = true
}
}
// generates sources when creating IDEA project files
tasks.idea.dependsOn 'core:generateSources'
task release(type: Copy) {
doFirst {
delete "$buildDir/release"
}
dependsOn ':desktop:jar'
from project(':desktop').tasks.getByName('jar').outputs.files
dependsOn ':tools:mpq-viewer:jar'
from project(':tools:mpq-viewer').tasks.getByName('jar').outputs.files
dependsOn ':tools:map-viewer:jar'
from project(':tools:map-viewer').tasks.getByName('jar').outputs.files
into "$buildDir/release"
rename '(.*)-SNAPSHOT(.*)', '$1$2'
}