File: build.gradle

package info (click to toggle)
kotlin 1.3.31%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 109,524 kB
  • sloc: java: 454,753; xml: 18,599; javascript: 10,452; sh: 513; python: 97; makefile: 54; ansic: 4
file content (48 lines) | stat: -rw-r--r-- 1,604 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48

plugins {
    id("org.jetbrains.kotlin.jvm")
    id("jps-compatible")
}

description = "Kotlin Build Common"

dependencies {
    compileOnly(project(":core:util.runtime"))
    compileOnly(project(":compiler:util"))
    compileOnly(project(":compiler:cli-common"))
    compileOnly(project(":compiler:frontend.java"))
    compileOnly(project(":js:js.serializer"))
    compileOnly(project(":js:js.frontend"))
    compileOnly(IntellijDependenciesKt.customIntellijCoreDep(project)) { IntellijDependenciesKt.customIncludeJars(it,["intellij-core"],null) }
    compileOnly(IntellijDependenciesKt.getIntellijDep(project,"intellij")) { IntellijDependenciesKt.customIncludeJars(it,["asm-all", "trove4j", "util"], rootProject) }
    compileOnly(project(":kotlin-reflect-api"))

    testCompileOnly(project(":compiler:cli-common"))
    //testCompile(DependenciesKt.customProjectTests(it,":compiler:tests-common"))
    testCompile(DependenciesKt.customCommonDep(project,"junit:junit"))
    testCompile(DependenciesKt.customProtobufFull(project))
    testCompile(DependenciesKt.customKotlinStdlib(project,null))
    testCompileOnly(IntellijDependenciesKt.getIntellijDep(project,"intellij")) { IntellijDependenciesKt.customIncludeJars(it,["openapi"],null) }

    testRuntime(project(":kotlin-reflect"))
}

sourceSets {
    "main" {
    	java.srcDirs("src")
		resources.srcDir("resources")
	}
    "test" {
        java.srcDirs("test", "tests")
    }
}

//publish()

ArtifactsKt.customRuntimeJar(project){}
//sourcesJar()
//javadocJar()

ArtifactsKt.customTestsJar(project){}

TasksKt.customProjectTest(project,"test"){}