This repository has been archived by the owner on Apr 14, 2021. It is now read-only.
forked from cucumber/cucumber-android
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
92 lines (74 loc) · 2.35 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
buildscript {
ext.kotlin_version = '1.4.0'
repositories {
google()
jcenter()
mavenLocal()
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
maven { url 'https://jitpack.io' }
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.1'
classpath "com.jaredsburrows:gradle-spoon-plugin:1.5.0"
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.21.2"
classpath "com.github.marcphilipp.nexus-publish-plugin:nexus-publish-plugin:0.4.0"
classpath 'digital.wup:android-maven-publish:3.6.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'io.codearte.nexus-staging'
ext {
targetSdkVersion = 29
buildToolsVersion = '29.0.3'
minSdkVersion = '14'
snapshotRepository = "https://oss.sonatype.org/content/repositories/snapshots"
releaseRepository = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
isSnapshot = {project.version.endsWith('-SNAPSHOT')}
}
nexusStaging {
if (project.hasProperty('ossrhUsername')){
username = ossrhUsername
password = ossrhPassword
}
}
allprojects {
repositories {
mavenLocal()
google()
jcenter()
maven {
url snapshotRepository
}
maven {
url releaseRepository
}
}
version = "4.8.4"
ext.cucumber_javaVersion = '4.8.1'
group = 'io.cucumber'
}
task closeAndReleaseRepositoryIfRelease(group: 'release',dependsOn: isSnapshot()?null:['closeAndReleaseRepository'])
subprojects { subproject ->
ext.addAndroidConfig ={
android {
compileSdkVersion rootProject.ext.targetSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
lintOptions {
abortOnError false
}
testOptions {
unitTests {
includeAndroidResources = true
}
}
}
}
}