-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
113 lines (94 loc) · 2.82 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
buildscript {
repositories {
mavenCentral()
maven { url 'https://s01.oss.sonatype.org' }
mavenLocal()
google()
gradlePluginPortal()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots/' }
// add jitpack repo
maven { url 'https://jitpack.io' }
}
dependencies {
classpath group: 'org.mini2Dx', name: 'butler', version: '2.1.0'
classpath "org.wisepersist:gwt-gradle-plugin:$gwtPluginVersion"
classpath "com.badlogicgames.gdx:gdx-tools:$gdxVersion"
// This follows advice from https://blog.gradle.org/log4j-vulnerability
constraints {
classpath("org.apache.logging.log4j:log4j-core") {
version {
strictly("[2.17, 3[")
prefer("2.17.0")
}
because("CVE-2021-44228, CVE-2021-45046, CVE-2021-45105: Log4j vulnerable to remote code execution and other critical security vulnerabilities")
}
}
}
}
// Store the parameters you want to pass the texturePacker here...
project.ext.texturePacker = [ "assets/input/path/", "assets/output/path/", "atlas_name" ]
// Import the texture packer
import com.badlogic.gdx.tools.texturepacker.TexturePacker
// Add a new task that packs the textures for you
task texturePacker {
doLast {
if (project.ext.has('texturePacker')) {
logger.info "Calling TexturePacker: "+texturePacker
TexturePacker.process(texturePacker[0], texturePacker[1], texturePacker[2])
}
}
}
allprojects {
apply plugin: 'eclipse'
apply plugin: 'idea'
}
configure(subprojects) {
apply plugin: 'java-library'
sourceCompatibility = 15
compileJava {
options.incremental = true
}
dependencies {
// This follows advice from https://blog.gradle.org/log4j-vulnerability
constraints {
implementation("org.apache.logging.log4j:log4j-core") {
version {
strictly("[2.17, 3[")
prefer("2.17.0")
}
because("CVE-2021-44228, CVE-2021-45046, CVE-2021-45105: Log4j vulnerable to remote code execution and other critical security vulnerabilities")
}
}
}
}
subprojects {
version = '0.0.2'
ext.appName = 'UniversalEmpire'
repositories {
mavenCentral()
maven { url 'https://s01.oss.sonatype.org' }
mavenLocal()
gradlePluginPortal()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots/' }
maven { url 'https://jitpack.io' }
}
}
project(":html") {
apply plugin: "org.mini2Dx.butler"
butler {
user = "hirshi001"
game = "universalempire"
allChannelsPostfix = "-beta"
}
task butlerPush(type: org.mini2Dx.butler.task.PushTask) {
dependsOn("dist")
binDirectory = file("${project.rootDir}/html/build/dist");
channel = "html"
doLast {
println "Pushed to https://${butler.user}.itch.io/${butler.game}"
}
}
}
eclipse.project.name = 'UniversalEmpire' + '-parent'