mirror of
https://github.com/Tencent/QMUI_Android.git
synced 2026-10-16 20:21:25 +08:00
62 lines
1.3 KiB
Kotlin
62 lines
1.3 KiB
Kotlin
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
plugins {
|
|
`java-gradle-plugin`
|
|
idea
|
|
kotlin("jvm") version "1.6.20"
|
|
`kotlin-dsl`
|
|
}
|
|
|
|
buildscript {
|
|
repositories {
|
|
mavenCentral()
|
|
google()
|
|
mavenLocal()
|
|
}
|
|
dependencies {
|
|
classpath("com.android.tools.build:gradle:7.1.3")
|
|
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.20")
|
|
}
|
|
}
|
|
|
|
group = "com.qmuiteam.qmui.plugin"
|
|
version = "0.0.1"
|
|
|
|
|
|
gradlePlugin {
|
|
plugins {
|
|
create("qmui-dep"){
|
|
id = "qmui-dep"
|
|
implementationClass = "com.qmuiteam.plugin.QMUIDepPlugin"
|
|
}
|
|
|
|
create("qmui-publish"){
|
|
id = "qmui-publish"
|
|
implementationClass = "com.qmuiteam.plugin.QMUIPublish"
|
|
}
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
google()
|
|
}
|
|
|
|
dependencies {
|
|
api(gradleApi())
|
|
api(gradleKotlinDsl())
|
|
api(kotlin("gradle-plugin", version = "1.6.20"))
|
|
api(kotlin("gradle-plugin-api", version = "1.6.20"))
|
|
api("com.android.tools.build:gradle-api:7.1.3")
|
|
api("com.android.tools.build:gradle:7.1.3")
|
|
}
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
}
|
|
|
|
val compileKotlin: KotlinCompile by tasks
|
|
compileKotlin.kotlinOptions {
|
|
jvmTarget = "11"
|
|
} |