mirror of
https://github.com/JakeWharton/mosaic.git
synced 2025-10-26 19:44:33 +08:00
48 lines
952 B
Groovy
48 lines
952 B
Groovy
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
|
|
|
|
buildscript {
|
|
dependencies {
|
|
classpath libs.kotlin.plugin.core
|
|
}
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
}
|
|
|
|
apply plugin: 'org.jetbrains.kotlin.jvm'
|
|
apply plugin: 'java-gradle-plugin'
|
|
|
|
gradlePlugin {
|
|
plugins {
|
|
mosaicBuild {
|
|
id = 'com.jakewharton.mosaic.build'
|
|
displayName = "Mosaic Build plugin"
|
|
description = "Gradle plugin for Mosaic build things"
|
|
implementationClass = "com.jakewharton.mosaic.buildsupport.MosaicBuildPlugin"
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly(libs.kotlin.plugin.core)
|
|
implementation(libs.apache.compress)
|
|
}
|
|
|
|
kotlin {
|
|
explicitApi()
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
tasks.withType(JavaCompile).configureEach {
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
}
|
|
|
|
tasks.withType(KotlinJvmCompile).configureEach {
|
|
compilerOptions.jvmTarget = JvmTarget.JVM_11
|
|
}
|