-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
49 lines (41 loc) · 1.14 KB
/
build.gradle
File metadata and controls
49 lines (41 loc) · 1.14 KB
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
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
buildscript {
repositories {
mavenCentral()
gradlePluginPortal()
mavenLocal()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.12.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
}
}
configure(subprojects - project(':android')) {
apply plugin: 'java-library'
apply plugin: 'kotlin'
sourceCompatibility = 11
tasks.register('generateAssetList') {
inputs.dir("${project.rootDir}/assets/")
File assetsFolder = new File("${project.rootDir}/assets/")
File assetsFile = new File(assetsFolder, "assets.txt")
assetsFile.delete()
fileTree(assetsFolder).collect { assetsFolder.relativePath(it) }.sort().each {
assetsFile.append(it + "\n")
}
}
processResources.dependsOn 'generateAssetList'
compileJava {
options.incremental = true
}
compileKotlin.compilerOptions.jvmTarget.set(JvmTarget.JVM_11)
compileTestKotlin.compilerOptions.jvmTarget.set(JvmTarget.JVM_11)
}
subprojects {
version = '$projectVersion'
ext.appName = 'GUI Example'
repositories {
mavenCentral()
mavenLocal()
}
}