aboutsummaryrefslogtreecommitdiff
path: root/runners/maven-plugin/build.gradle
diff options
context:
space:
mode:
authorKrystianUjma <kujma@virtuslab.com>2019-05-07 12:32:14 +0200
committerKrystianUjma <kujma@virtuslab.com>2019-05-07 12:32:14 +0200
commit34b6959e68d356a66330441398febaebc5e6c7bc (patch)
tree44105be1787084aa8833a7d22d2e94cc0644c01f /runners/maven-plugin/build.gradle
parent529d8ecf02e82fa65a827f50b038c68835c3d0d4 (diff)
downloaddokka-34b6959e68d356a66330441398febaebc5e6c7bc.tar.gz
dokka-34b6959e68d356a66330441398febaebc5e6c7bc.tar.bz2
dokka-34b6959e68d356a66330441398febaebc5e6c7bc.zip
fix maven build, add multiplatform and single configuration for maven runner
Diffstat (limited to 'runners/maven-plugin/build.gradle')
-rw-r--r--runners/maven-plugin/build.gradle14
1 files changed, 7 insertions, 7 deletions
diff --git a/runners/maven-plugin/build.gradle b/runners/maven-plugin/build.gradle
index 5fd06901..76fab68d 100644
--- a/runners/maven-plugin/build.gradle
+++ b/runners/maven-plugin/build.gradle
@@ -13,8 +13,8 @@ sourceCompatibility = 1.8
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
freeCompilerArgs += "-Xjsr305=strict"
- languageVersion = language_version
- apiVersion = language_version
+ languageVersion = "1.2"
+ apiVersion = languageVersion
jvmTarget = "1.8"
}
}
@@ -52,10 +52,10 @@ task setupMaven(type: Sync) {
def mavenBuildDir = "$buildDir/maven"
-//sourceSets.main.resources {
-// srcDirs += "$mavenBuildDir/classes/java/main"
-// exclude "**/*.class"
-//}
+sourceSets.main.resources {
+ srcDirs += "$mavenBuildDir/classes/java/main"
+ exclude "**/*.class"
+}
task generatePom() {
inputs.file(new File(projectDir, "pom.tpl.xml"))
@@ -124,7 +124,7 @@ task pluginDescriptor(type: CrossPlatformExec, dependsOn: setupMaven) {
//mergeClassOutputs.dependsOn compileKotlin
//helpMojo.dependsOn mergeClassOutputs
helpMojo.dependsOn generatePom
-//sourceSets.main.java.srcDir("$buildDir/maven/generated-sources/plugin")
+sourceSets.main.java.srcDir("$buildDir/maven/generated-sources/plugin")
compileJava.dependsOn helpMojo
processResources.dependsOn pluginDescriptor