• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 val kotlinVersion = "1.7.10"
2 
<lambda>null3 plugins {
4     id("org.jetbrains.kotlin.jvm") version "1.7.10"
5     id("java-gradle-plugin")
6     id("maven-publish")
7 }
8 
9 group = "com.android.ndkports"
10 version = "1.0.0-SNAPSHOT"
11 
<lambda>null12 repositories {
13     mavenCentral()
14     google()
15 }
16 
<lambda>null17 dependencies {
18     implementation(kotlin("stdlib", kotlinVersion))
19     implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.3")
20 
21     implementation("com.google.prefab:api:1.1.2")
22     implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.3")
23     implementation("org.redundent:kotlin-xml-builder:1.6.1")
24 
25     testImplementation(kotlin("test", kotlinVersion))
26     testImplementation(kotlin("test-junit", kotlinVersion))
27     testImplementation("org.junit.jupiter:junit-jupiter-api:5.7.0")
28     testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.7.0")
29 }
30 
<lambda>null31 tasks {
32     compileJava {
33         @Suppress("UnstableApiUsage")
34         options.release.set(8)
35     }
36 
37     compileKotlin {
38         kotlinOptions.jvmTarget = "1.8"
39     }
40 
41     compileTestKotlin {
42         kotlinOptions.jvmTarget = "1.8"
43     }
44 }
45 
<lambda>null46 gradlePlugin {
47     plugins {
48         create("ndkports") {
49             id = "com.android.ndkports.NdkPorts"
50             implementationClass = "com.android.ndkports.NdkPortsPlugin"
51         }
52     }
53 }
54 
<lambda>null55 publishing {
56     repositories {
57         maven {
58             url = uri("${rootProject.buildDir}/repository")
59         }
60     }
61 }
62