-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
59 lines (54 loc) · 1.68 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
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/' }
}
dependencies {
classpath 'com.guardsquare:proguard-gradle:7.3.2'
}
}
allprojects {
apply plugin: 'eclipse'
apply plugin: 'idea'
}
configure(subprojects) {
apply plugin: 'java-library'
sourceCompatibility = 17
[compileJava, compileTestJava, javadoc]*.options*.encoding = 'UTF-8'
compileJava {
options.incremental = true
}
// From https://lyze.dev/2021/04/29/libGDX-Internal-Assets-List/ ; thanks, Lyze!
compileJava.doLast {
// projectfolder/assets
def assetsFolder = new File("${project.rootDir}/assets/")
// projectfolder/assets/assets.txt
def assetsFile = new File(assetsFolder, "assets.txt")
// delete that file in case we've already created it
assetsFile.delete()
// iterate through all files inside that folder
// convert it to a relative path
// and append it to the file assets.txt
fileTree(assetsFolder).collect { assetsFolder.relativePath(it) }.each {
assetsFile.append(it + "\n")
}
}
}
subprojects {
version = '1.0.0'
ext.appName = 'DetritusScion'
repositories {
mavenCentral()
maven { url 'https://s01.oss.sonatype.org' }
mavenLocal()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots/' }
maven { url 'https://jitpack.io' }
}
}
eclipse.project.name = 'DetritusScion' + '-parent'