blob: 76601901a41437426c2e972d667cc5801dd0705e (
plain)
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
import javax.tools.ToolProvider
buildscript {
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
apply plugin: 'kotlin'
sourceCompatibility = 1.8
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
languageVersion = language_version
apiVersion = language_version
jvmTarget = "1.8"
}
}
}
dependencies {
compile project(":integration")
compile project(path: ":coreDependencies", configuration: "shadow")
compile "org.jetbrains.kotlin:kotlin-stdlib:$bundled_kotlin_compiler_version"
compile "org.jetbrains.kotlin:kotlin-reflect:$bundled_kotlin_compiler_version"
compile group: 'com.google.inject', name: 'guice', version: '3.0'
compile "org.jsoup:jsoup:1.8.3"
compile "org.jetbrains.kotlin:kotlin-compiler:$bundled_kotlin_compiler_version"
compile "org.jetbrains.kotlin:kotlin-script-runtime:$bundled_kotlin_compiler_version"
compile "org.jetbrains:markdown:$markdownVersion"
compile 'org.jetbrains.kotlinx:kotlinx-html-jvm:0.6.8'
//tools.jar
// def toolsJar = files(((URLClassLoader) ToolProvider.getSystemToolClassLoader()).getURLs().findAll { it.path.endsWith("jar") })
// compileOnly toolsJar
// testCompile toolsJar
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile group: 'org.jetbrains.kotlin', name: 'kotlin-test-junit', version: kotlin_version
testCompile "com.nhaarman:mockito-kotlin-kt1.1:1.5.0"
implementation "com.google.code.gson:gson:$gson_version"
testImplementation "org.jetbrains.kotlin:kotlin-stdlib-js:$bundled_kotlin_compiler_version"
testImplementation "org.jetbrains.kotlin:kotlin-stdlib-common:$bundled_kotlin_compiler_version"
testCompile ideaRT()
}
apply plugin: 'maven-publish'
publishing {
publications {
dokkaCore(MavenPublication) { publication ->
artifactId = 'dokka-core'
from components.java
}
}
}
bintrayPublication(project, ["dokkaCore"])
|