2019-01-12 16:04:56 +07:00
|
|
|
buildscript {
|
2020-11-17 14:14:33 +07:00
|
|
|
repositories {
|
|
|
|
mavenLocal()
|
|
|
|
mavenCentral()
|
|
|
|
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
|
|
|
|
maven { url "https://plugins.gradle.org/m2/" }
|
2021-05-29 05:33:30 +07:00
|
|
|
gradlePluginPortal()
|
2020-11-17 14:14:33 +07:00
|
|
|
google()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2020-11-22 08:20:11 +07:00
|
|
|
classpath "com.android.tools.build:gradle:$androidBuildToolsPluginVersion"
|
2020-11-22 08:24:00 +07:00
|
|
|
classpath "gradle.plugin.io.netifi:gradle-flatbuffers-plugin:$flatbuffersPluginVersion"
|
2020-11-17 14:14:33 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
// lib for artemis-odb weaving.
|
|
|
|
// see https://github.com/junkdog/artemis-odb/wiki/Bytecode-weaving
|
2020-11-21 06:44:52 +07:00
|
|
|
classpath "net.onedaybeard.artemis:artemis-odb-gradle-plugin:$artemisOdbVersion"
|
2020-11-17 14:14:33 +07:00
|
|
|
|
|
|
|
// lib for artemis-odb fluid.
|
2020-11-21 06:44:52 +07:00
|
|
|
// classpath "net.onedaybeard.artemis:artemis-fluid-gradle-plugin:$artemisOdbVersion"
|
2020-11-17 14:14:33 +07:00
|
|
|
}
|
2019-01-12 16:04:56 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
allprojects {
|
2020-11-18 11:24:15 +07:00
|
|
|
apply plugin: 'idea'
|
2020-11-17 14:14:33 +07:00
|
|
|
|
2021-05-29 05:47:34 +07:00
|
|
|
version = '0.0.5-SNAPSHOT'
|
2020-11-21 13:15:57 +07:00
|
|
|
ext.appName = 'riiablo'
|
2020-11-17 14:14:33 +07:00
|
|
|
|
|
|
|
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'
|
2021-12-01 07:32:30 +07:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
2020-11-21 13:46:08 +07:00
|
|
|
compileJava {
|
|
|
|
options.incremental = true
|
|
|
|
}
|
2019-03-21 15:41:50 +07:00
|
|
|
}
|
2020-12-05 16:04:56 +07:00
|
|
|
|
2021-11-27 03:56:43 +07:00
|
|
|
// generates sources when creating IDEA project files
|
|
|
|
tasks.idea.dependsOn 'core:generateSources'
|
|
|
|
|
2020-12-05 16:04:56 +07:00
|
|
|
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'
|
|
|
|
}
|