mirror of
https://github.com/icela/FriceDemo.git
synced 2026-10-16 21:12:46 +08:00
51 lines
1.1 KiB
Groovy
51 lines
1.1 KiB
Groovy
group 'org.frice'
|
|
version '1.0'
|
|
|
|
allprojects {
|
|
repositories {
|
|
maven { url 'https://jitpack.io' }
|
|
}
|
|
}
|
|
|
|
buildscript {
|
|
ext.kotlin_version = '1.2.0'
|
|
ext.frice_version_num = '1.8.0'
|
|
ext.frice_version = "v$frice_version_num"
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
}
|
|
}
|
|
|
|
apply plugin: 'java'
|
|
apply plugin: 'kotlin'
|
|
|
|
sourceCompatibility = 1.8
|
|
targetCompatibility = 1.8
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
sourceSets {
|
|
main.kotlin.srcDirs += "$frice_version_num"
|
|
main.java.srcDirs += "$frice_version_num"
|
|
}
|
|
|
|
dependencies {
|
|
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
|
|
compile group: 'org.jetbrains', name: 'annotations', version: '15.0'
|
|
compile "com.github.icela:FriceEngine:$frice_version"
|
|
|
|
testCompile group: 'junit', name: 'junit', version: '4.12'
|
|
testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
|
|
}
|
|
|
|
// task fatJar(type: Jar) {
|
|
// baseName = project.name + '-all'
|
|
// from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
|
|
// with jar
|
|
// }
|