mirror of
https://github.com/HighCapable/YukiReflection.git
synced 2025-09-07 11:09:52 +08:00
Modify merge contents of build.gradle into constant definitions
This commit is contained in:
@@ -7,11 +7,14 @@ plugins {
|
||||
|
||||
android {
|
||||
namespace 'com.highcapable.yukireflection'
|
||||
compileSdk 33
|
||||
compileSdk rootProject.ext.android.compileSdk
|
||||
|
||||
defaultConfig {
|
||||
minSdk 21
|
||||
targetSdk 33
|
||||
minSdk rootProject.ext.android.minSdk
|
||||
targetSdk rootProject.ext.android.targetSdk
|
||||
|
||||
buildConfigField('String', 'API_VERSION_NAME', "\"${rootProject.ext.maven.repository.apiVersion.name}\"")
|
||||
buildConfigField('int', 'API_VERSION_CODE', "${rootProject.ext.maven.repository.apiVersion.code}")
|
||||
|
||||
consumerProguardFiles 'consumer-rules.pro'
|
||||
}
|
||||
@@ -58,8 +61,8 @@ tasks.register('androidSourcesJar', Jar) {
|
||||
from android.sourceSets.main.java.srcDirs
|
||||
}
|
||||
|
||||
group = rootProject.ext.groupId
|
||||
version = rootProject.ext.apiVersion
|
||||
group = rootProject.ext.maven.repository.groupId
|
||||
version = rootProject.ext.maven.repository.apiVersion.name
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
@@ -68,34 +71,34 @@ publishing {
|
||||
artifact "$buildDir/outputs/aar/${project.name}-release.aar"
|
||||
artifact androidSourcesJar
|
||||
pom {
|
||||
name = rootProject.ext.repoName
|
||||
description = rootProject.ext.repoDescription
|
||||
url = rootProject.ext.website
|
||||
name = rootProject.ext.maven.repository.name
|
||||
description = rootProject.ext.maven.repository.description
|
||||
url = rootProject.ext.maven.repository.website
|
||||
licenses {
|
||||
license {
|
||||
name = rootProject.ext.licenceName
|
||||
url = rootProject.ext.licenceUrl
|
||||
name = rootProject.ext.maven.repository.licence.name
|
||||
url = rootProject.ext.maven.repository.licence.url
|
||||
}
|
||||
}
|
||||
developers {
|
||||
developer {
|
||||
id = rootProject.ext.devId
|
||||
name = rootProject.ext.devUser
|
||||
email = rootProject.ext.userEmail
|
||||
id = rootProject.ext.maven.developer.id
|
||||
name = rootProject.ext.maven.developer.user
|
||||
email = rootProject.ext.maven.developer.email
|
||||
}
|
||||
}
|
||||
scm {
|
||||
connection = rootProject.ext.githubConnection
|
||||
developerConnection = rootProject.ext.githubDeveloperConnection
|
||||
url = rootProject.ext.githubUrl
|
||||
connection = rootProject.ext.maven.configurations.githubConnection
|
||||
developerConnection = rootProject.ext.maven.configurations.githubDeveloperConnection
|
||||
url = rootProject.ext.maven.configurations.githubUrl
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
repositories {
|
||||
maven {
|
||||
name = rootProject.ext.ossName
|
||||
url = rootProject.ext.ossUrl
|
||||
name = rootProject.ext.maven.configurations.ossName
|
||||
url = rootProject.ext.maven.configurations.ossUrl
|
||||
credentials {
|
||||
def configs = getMavenCredentials(projectDir)
|
||||
username = configs.username
|
||||
|
Reference in New Issue
Block a user