aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle16
1 files changed, 6 insertions, 10 deletions
diff --git a/build.gradle b/build.gradle
index abb8f25d..35fa82c7 100644
--- a/build.gradle
+++ b/build.gradle
@@ -34,6 +34,7 @@ configure(allprojects - project(':kvision-modules')) {
}
configure(allprojects - project(':kvision-modules') - project(":kvision-modules:kvision-base")) {
+ apply plugin: 'io.gitlab.arturbosch.detekt'
apply plugin: 'com.jfrog.bintray'
apply plugin: 'maven'
apply plugin: 'maven-publish'
@@ -54,6 +55,11 @@ configure(allprojects - project(':kvision-modules') - project(":kvision-modules:
tasks.build.dependsOn(['sourceJar', 'emptyJar'])
+ detekt {
+ config = files(rootProject.projectDir.path + "/detekt.yml")
+ filters = ".*test.*,.*/resources/.*,.*/tmp/.*"
+ }
+
publishing {
publications {
mavenProject(MavenPublication) {
@@ -88,7 +94,6 @@ if (!project.gradle.startParameter.taskNames.contains("dokka")) {
apply plugin: 'kotlin'
}
apply plugin: 'org.jetbrains.kotlin.frontend'
-apply plugin: 'io.gitlab.arturbosch.detekt'
apply plugin: 'org.jetbrains.dokka'
apply plugin: 'kotlinx-serialization'
@@ -145,15 +150,6 @@ kotlinFrontend {
}
-detekt {
- version = "${detektVersion}"
- profile("main") {
- input = "$projectDir/src/main/kotlin"
- config = "$projectDir/detekt.yml"
- filters = ".*test.*,.*/resources/.*,.*/tmp/.*"
- }
-}
-
dokka {
includes = ['Module.md']
sourceDirs = files('kvision-modules/kvision-bootstrap/src/main/kotlin',