This repository has been archived by the owner on Jul 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
69 lines (61 loc) · 2.08 KB
/
build.gradle
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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.5.31'
repositories {
google()
mavenCentral()
maven {
url "https://dl.bintray.com/ferranpons/maven"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4.9.0"
classpath "org.jlleitschuh.gradle:ktlint-gradle:10.0.0"
classpath 'com.ferranpons:twitter-gradle-plugin:1.1.0'
classpath "io.github.gradle-nexus:publish-plugin:1.1.0"
classpath("io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.22.0")
}
}
plugins {
id "io.gitlab.arturbosch.detekt" version "1.14.1"
}
detekt {
failFast = true
buildUponDefaultConfig = true
input = files("$projectDir/src/main/java")
config = files("$rootDir/config/detekt.yml")
reports {
xml {
enabled = true
destination = file("$projectDir/build/reports/detekt/detekt.xml")
}
html {
enabled = true
destination = file("$projectDir/build/reports/detekt/detekt.html")
}
}
}
allprojects {
repositories {
google()
mavenCentral()
maven {
url 'https://artifacts.schibsted.io/artifactory/libs-release'
credentials {
username = project.hasProperty('artifactory_user') ? project.artifactory_user :
System.getenv()['ARTIFACTORY_USER']
password = project.hasProperty('artifactory_password') ? project.artifactory_password :
System.getenv()['ARTIFACTORY_PWD']
}
}
}
}
tasks.detekt.jvmTarget = "1.8"
apply plugin: 'io.github.gradle-nexus.publish-plugin'
apply from: "${rootDir}/scripts/publish-root.gradle"
task clean(type: Delete) {
delete rootProject.buildDir
}