Repo created
This commit is contained in:
parent
e09986deae
commit
fa69fd81a1
48 changed files with 5156 additions and 0 deletions
68
lib/build.gradle
Normal file
68
lib/build.gradle
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
apply plugin: 'com.android.library'
|
||||
apply plugin: 'maven-publish'
|
||||
|
||||
group = 'com.artifex.mupdf'
|
||||
version = '1.26.11a'
|
||||
|
||||
dependencies {
|
||||
implementation 'androidx.appcompat:appcompat:1.1.+'
|
||||
if (file('../jni/build.gradle').isFile())
|
||||
api project(':jni')
|
||||
else
|
||||
api 'com.artifex.mupdf:fitz:1.26.11'
|
||||
}
|
||||
|
||||
android {
|
||||
namespace 'com.artifex.mupdf.viewer'
|
||||
compileSdkVersion 33
|
||||
defaultConfig {
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 35
|
||||
}
|
||||
publishing {
|
||||
singleVariant("release") {
|
||||
withSourcesJar()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
project.afterEvaluate {
|
||||
publishing {
|
||||
publications {
|
||||
release(MavenPublication) {
|
||||
artifactId 'viewer'
|
||||
artifact(bundleReleaseAar)
|
||||
|
||||
pom {
|
||||
name = 'viewer'
|
||||
url = 'http://www.mupdf.com'
|
||||
licenses {
|
||||
license {
|
||||
name = 'GNU Affero General Public License'
|
||||
url = 'https://www.gnu.org/licenses/agpl-3.0.html'
|
||||
}
|
||||
}
|
||||
}
|
||||
pom.withXml {
|
||||
final dependenciesNode = asNode().appendNode('dependencies')
|
||||
configurations.implementation.allDependencies.each {
|
||||
def dependencyNode = dependenciesNode.appendNode('dependency')
|
||||
dependencyNode.appendNode('groupId', it.group)
|
||||
dependencyNode.appendNode('artifactId', it.name)
|
||||
dependencyNode.appendNode('version', it.version)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
repositories {
|
||||
maven {
|
||||
name 'Local'
|
||||
if (project.hasProperty('MAVEN_REPO')) {
|
||||
url = MAVEN_REPO
|
||||
} else {
|
||||
url = "file://${System.properties['user.home']}/MAVEN"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue