-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
51 lines (46 loc) · 1.28 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
buildscript {
repositories {
mavenLocal()
maven { url "https://maven.aliyun.com/repository/public/" }
mavenCentral()
google()
gradlePluginPortal()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
}
}
allprojects {
apply plugin: 'eclipse'
apply plugin: 'idea'
}
configure(subprojects) {
apply plugin: 'java-library'
apply plugin: 'kotlin'
sourceCompatibility = 8.0
compileJava {
options.incremental = true
}
}
subprojects {
version = kotoVersion
ext.appName = 'koto'
repositories {
mavenLocal()
maven { url "https://maven.aliyun.com/repository/public/" }
mavenCentral()
gradlePluginPortal()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
maven { url 'https://jitpack.io' }
}
}
eclipse.project.name = 'koto' + '-parent'
task indexAssets() {
ConfigurableFileTree tree = fileTree(dir: 'assets', excludes: ['**/.*'])
List tmp = []
tree.forEach {
tmp.add(relativePath(it).substring(7).replace('\\', '/'))
}
file('assets/.assets.json').text = groovy.json.JsonOutput.toJson(tmp)
}