-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
77 lines (67 loc) · 1.85 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
71
72
73
74
75
76
77
import com.badlogic.gdx.tools.texturepacker.TexturePacker
buildscript {
repositories {
mavenLocal()
mavenCentral()
google()
gradlePluginPortal()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}
dependencies {
classpath "com.mobidevelop.robovm:robovm-gradle-plugin:$robovmVersion"
classpath "com.android.tools.build:gradle:4.2.1"
classpath "org.wisepersist:gwt-gradle-plugin:$gwtPluginVersion"
classpath 'com.badlogicgames.gdx:gdx-tools:1.10.0'
}
}
allprojects {
apply plugin: 'eclipse'
apply plugin: 'idea'
}
configure(subprojects - project(':android')) {
apply plugin: 'java-library'
sourceCompatibility = 8.0
compileJava {
options.incremental = true
}
task packTextures {
def inputDir = "$rootDir/core/rawAssets/sprites"
def outputDir = "$rootDir/assets/images/packaged"
inputs.dir inputDir
outputs.dir outputDir
doLast {
delete(outputDir)
TexturePacker.process(inputDir, outputDir, "gigagal.pack")
}
}
task copyLevels(type: Copy){
from "$rootDir/GigaGalLevels/scenes"
into "$rootDir/assets/levels"
exclude "MainScene.dt"
}
task copyParicles(type: Copy){
from "$rootDir/core/rawAssets/particles"
exclude "*.png"
into "$rootDir/assets/particles"
}
task copyBackgroundSprites(type: Copy){
from "$rootDir/core/rawAssets/backgroundSprites"
into "$rootDir/assets/images/backgroundSprites"
}
project.tasks.compileJava.dependsOn packTextures
project.tasks.compileJava.dependsOn copyLevels
project.tasks.compileJava.dependsOn copyParicles
project.tasks.compileJava.dependsOn copyBackgroundSprites
}
subprojects {
version = '1.0.2'
ext.appName = 'GigaGal'
repositories {
mavenLocal()
mavenCentral()
gradlePluginPortal()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
maven { url 'https://jitpack.io' }
}
}
eclipse.project.name = 'GigaGal' + '-parent'