riiablo/build.gradle

71 lines
1.9 KiB
Groovy
Raw Permalink Normal View History

2019-01-12 16:04:56 +07:00
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"
}
2019-01-12 16:04:56 +07:00
}
allprojects {
apply plugin: 'idea'
2021-05-29 05:47:34 +07:00
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
2020-11-21 13:46:08 +07:00
compileJava {
options.incremental = true
}
2019-03-21 15:41:50 +07:00
}
// 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'
}