rename dir
This commit is contained in:
2
doric-android/scripts/maven.properties
Normal file
2
doric-android/scripts/maven.properties
Normal file
@@ -0,0 +1,2 @@
|
||||
git=https://github.com/doric-pub/doric
|
||||
site=https://github.com/doric-pub/doric
|
39
doric-android/scripts/upload.gradle
Normal file
39
doric-android/scripts/upload.gradle
Normal file
@@ -0,0 +1,39 @@
|
||||
apply plugin: 'maven'
|
||||
|
||||
Properties properties = new Properties()
|
||||
properties.load(project.rootProject.file('scripts/maven.properties').newDataInputStream())
|
||||
properties.load(new FileInputStream("${projectDir}/pom.properties"))
|
||||
properties.load(project.rootProject.file('local.properties').newDataInputStream())
|
||||
|
||||
apply plugin: 'maven'
|
||||
|
||||
uploadArchives {
|
||||
repositories {
|
||||
mavenDeployer {
|
||||
pom.groupId = properties.groupId
|
||||
pom.artifactId = properties.artifactId
|
||||
pom.version = rootProject.ext.Version
|
||||
|
||||
pom.project {
|
||||
description 'git rev-parse HEAD'.execute([], projectDir).text.trim()
|
||||
}
|
||||
|
||||
repository(url: properties.releasesRepository + properties.name) {
|
||||
authentication(userName: properties.user, password: properties.apiKey)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
task uploadAar {
|
||||
dependsOn clean, uploadArchives
|
||||
}
|
||||
|
||||
//task androidSourcesJar(type: Jar) {
|
||||
// classifier = "sources"
|
||||
// from android.sourceSets.main.java.sourceFiles
|
||||
//}
|
||||
//
|
||||
//artifacts {
|
||||
// archives androidSourcesJar
|
||||
//}
|
Reference in New Issue
Block a user