build: abstract out groupName

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2020-03-10 08:58:29 -06:00 committed by Harsh Shandilya
parent 6b304391b5
commit de0e431d00
4 changed files with 9 additions and 4 deletions

View File

@ -29,6 +29,8 @@ buildscript {
eddsaVersion = '0.3.0'
bintrayPluginVersion = '1.8.4'
mavenPluginVersion = '2.1'
groupName = 'com.wireguard.android'
}
dependencies {
classpath "com.android.tools.build:gradle:$agpVersion"

View File

@ -1,5 +1,8 @@
apply plugin: 'com.android.library'
version wireguardVersionName
group groupName
android {
buildToolsVersion '29.0.3'
compileSdkVersion 29

View File

@ -1,9 +1,6 @@
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'
version wireguardVersionName
group 'com.wireguard.android'
install {
repositories.mavenInstaller {
pom.project {
@ -12,7 +9,7 @@ install {
url 'https://www.wireguard.com/'
packaging 'aar'
groupId 'com.wireguard.android'
groupId groupName
artifactId 'tunnel'
version wireguardVersionName

View File

@ -1,6 +1,9 @@
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
version wireguardVersionName
group groupName
// Create a variable called keystorePropertiesFile, and initialize it to your
// keystore.properties file, in the rootProject folder.
final def keystorePropertiesFile = rootProject.file("keystore.properties")