aboutsummaryrefslogtreecommitdiff
path: root/core/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'core/build.gradle')
-rw-r--r--core/build.gradle51
1 files changed, 33 insertions, 18 deletions
diff --git a/core/build.gradle b/core/build.gradle
index 697fd726..76601901 100644
--- a/core/build.gradle
+++ b/core/build.gradle
@@ -6,19 +6,24 @@ buildscript {
}
}
-apply plugin: 'kotlin'
+allprojects {
+ apply plugin: 'kotlin'
-sourceCompatibility = 1.8
+ sourceCompatibility = 1.8
-tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
- kotlinOptions {
- languageVersion = language_version
- apiVersion = language_version
- jvmTarget = "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"
@@ -28,27 +33,37 @@ dependencies {
compile "org.jetbrains.kotlin:kotlin-compiler:$bundled_kotlin_compiler_version"
compile "org.jetbrains.kotlin:kotlin-script-runtime:$bundled_kotlin_compiler_version"
- compile "teamcity:kotlin-ide-common:$bundled_kotlin_compiler_version"
compile "org.jetbrains:markdown:$markdownVersion"
- compile intellijCoreAnalysis()
-
- compile kotlinPluginDependency()
-
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
+// def toolsJar = files(((URLClassLoader) ToolProvider.getSystemToolClassLoader()).getURLs().findAll { it.path.endsWith("jar") })
+// compileOnly toolsJar
+// testCompile toolsJar
- compile project(":integration")
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"
- testCompile ideaRT()
+
testImplementation "org.jetbrains.kotlin:kotlin-stdlib-js:$bundled_kotlin_compiler_version"
testImplementation "org.jetbrains.kotlin:kotlin-stdlib-common:$bundled_kotlin_compiler_version"
-} \ No newline at end of file
+
+ testCompile ideaRT()
+}
+
+apply plugin: 'maven-publish'
+
+publishing {
+ publications {
+ dokkaCore(MavenPublication) { publication ->
+ artifactId = 'dokka-core'
+
+ from components.java
+ }
+ }
+}
+
+bintrayPublication(project, ["dokkaCore"])