mentat/sdks/android/Mentat/buildSrc/build.gradle
Nick Alexander 6898bac83d [sdks/android] DO NOT LAND - Build libmentat_ffi.so as part of Gradle build.
This uses a very rudimentary Gradle plugin, `rust-android-gradle`,
with custom fixes and extensions.  It works pretty well for what it
is!
2018-07-19 16:07:24 -07:00

64 lines
1.3 KiB
Groovy

buildscript {
repositories {
jcenter()
google()
}
ext.kotlin_version = '1.2.41'
dependencies {
classpath 'com.android.tools.build:gradle:3.1.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
repositories {
jcenter()
google()
}
apply plugin: "java-gradle-plugin"
// apply plugin: "maven-publish"
apply plugin: "kotlin"
gradlePlugin {
plugins {
simplePlugin {
id = "com.nishtahir.rust-android"
implementationClass = "com.nishtahir.RustAndroidPlugin"
}
}
}
// group 'com.nishtahir'
// version '0.0.2'
// publishing {
// repositories {
// maven {
// url "../samples/maven-repo"
// }
// }
// publications {
// maven(MavenPublication) {
// groupId 'com.nishtahir'
// artifactId 'rust-android'
// version '0.0.2'
// from components.java
// }
// }
// }
dependencies {
compileOnly gradleApi()
implementation "com.android.tools.build:gradle:3.1.2"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}