-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
60 lines (49 loc) · 1.32 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
buildscript {
repositories {
google()
jcenter()
maven { url "https://plugins.gradle.org/m2/" }
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.2'
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.11.0"
classpath "gradle.plugin.com.github.gradle-git-version-calculator:gradle-git-version-calculator:1.0.0"
classpath 'digital.wup:android-maven-publish:3.6.2'
}
}
plugins {
id 'io.codearte.nexus-staging' version '0.11.0'
id 'nu.studer.credentials' version '1.0.4'
}
ext {
publish_user = project.hasProperty('publish_user') ? project.getProperty('publish_user') : credentials.publish_user
publish_pass = project.hasProperty('publish_pass') ? project.getProperty('publish_pass') : credentials.publish_pass
}
static def generateBaseName(artifact_id) {
return "paseto-" + artifact_id
}
nexusStaging {
username = publish_user
password = publish_pass
}
allprojects {
apply plugin: 'com.github.gradle-git-version-calculator'
gitVersionCalculator {
prefix = 'release@'
withSnapshot = true
}
repositories {
mavenLocal()
google()
jcenter()
maven {
url "https://dl.bintray.com/terl/lazysodium-maven"
}
}
group = "net.aholbrook.paseto.android"
version = gitVersionCalculator.calculateVersion()
}
task clean(type: Delete) {
delete rootProject.buildDir
}