Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Commit

Permalink
Merge pull request #18 from blotoutio/publish_error
Browse files Browse the repository at this point in the history
Resolved jitpack publish error
  • Loading branch information
NejcZdovc authored Nov 17, 2021
2 parents 9666459 + b5ee260 commit 5571ca5
Showing 1 changed file with 1 addition and 27 deletions.
28 changes: 1 addition & 27 deletions blotoutSDK/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
plugins {
id 'com.android.library'
id 'kotlin-android'
id 'kotlin-kapt'
id 'maven-publish'
}

Expand Down Expand Up @@ -41,14 +40,8 @@ android {
allprojects{
repositories{
maven {url 'https://jitpack.io'}
jcenter()
}
}

configurations {
ktlint
}

afterEvaluate {
publishing {
publications {
Expand Down Expand Up @@ -78,7 +71,7 @@ dependencies {

implementation 'com.android.installreferrer:installreferrer:2.1'

kapt deps.androidx_room_compiler
annotationProcessor deps.androidx_room_compiler
implementation deps.androidx_room_runtime
implementation deps.androidx_room_ktx

Expand All @@ -98,24 +91,5 @@ dependencies {
testImplementation deps.mockito_android
testImplementation deps.junit
testImplementation deps.coroutine_test

ktlint "com.pinterest:ktlint:0.42.1"
}

task ktlint(type: JavaExec, group: "verification") {
description = "Check Kotlin code style."
main = "com.pinterest.ktlint.Main"
classpath = configurations.ktlint
args "src/**/*.kt"
// to generate report in checkstyle format prepend following args:
// "--reporter=plain", "--reporter=checkstyle,output=${buildDir}/ktlint.xml"
// see https://github.com/pinterest/ktlint#usage for more
}
check.dependsOn ktlint

task ktlintFormat(type: JavaExec, group: "formatting") {
description = "Fix Kotlin code style deviations."
main = "com.pinterest.ktlint.Main"
classpath = configurations.ktlint
args "-F", "src/**/*.kt"
}

0 comments on commit 5571ca5

Please sign in to comment.