ColorRunner/build.gradle

70 lines
2.0 KiB
Groovy
Raw Normal View History

2014-08-09 22:41:29 +02:00
buildscript {
2024-07-23 16:33:12 +02:00
repositories {
mavenCentral()
maven { url 'https://s01.oss.sonatype.org' }
gradlePluginPortal()
mavenLocal()
google()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots/' }
}
dependencies {
classpath "com.android.tools.build:gradle:8.1.4"
}
2014-08-09 22:41:29 +02:00
}
allprojects {
2024-07-23 16:33:12 +02:00
apply plugin: 'eclipse'
apply plugin: 'idea'
// This allows you to "Build and run using IntelliJ IDEA", an option in IDEA's Settings.
idea {
module {
outputDir file('build/classes/java/main')
testOutputDir file('build/classes/java/test')
2014-08-09 22:41:29 +02:00
}
2024-07-23 16:33:12 +02:00
}
2014-08-09 22:41:29 +02:00
}
2024-07-23 16:33:12 +02:00
configure(subprojects - project(':android')) {
apply plugin: 'java-library'
sourceCompatibility = 11
compileJava {
options.incremental = true
}
// From https://lyze.dev/2021/04/29/libGDX-Internal-Assets-List/
// The article can be helpful when using assets.txt in your project.
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")
2014-08-09 22:41:29 +02:00
}
2024-07-23 16:33:12 +02:00
}
2014-08-09 22:41:29 +02:00
}
2017-11-25 14:25:33 +01:00
subprojects {
2024-07-23 16:33:12 +02:00
version = '1.0.0'
ext.appName = 'ColorRunner'
repositories {
mavenCentral()
maven { url 'https://s01.oss.sonatype.org' }
// You may want to remove the following line if you have errors downloading dependencies.
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' }
}
2017-11-25 14:25:33 +01:00
}
2024-07-23 16:33:12 +02:00
eclipse.project.name = 'ColorRunner' + '-parent'