1+ apply plugin : ' maven-publish'
2+ // apply plugin: 'signing'
3+ //
4+ // task sourcesJar(type: Jar) {
5+ // from sourceSets.main.java.srcDirs
6+ // archiveClassifier = 'sources'
7+ // }
8+ //
9+ // task javadoc(type: Javadoc) {
10+ // source = sourceSets.main.java.srcDirs
11+ // classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
12+ // }
13+ //
14+ // afterEvaluate {
15+ // javadoc.classpath += files(android.libraryVariants.collect { variant ->
16+ // variant.javaCompileProvider.get().classpath.files
17+ // })
18+ // }
19+ //
20+ // task javadocJar(type: Jar, dependsOn: javadoc) {
21+ // archiveClassifier = 'javadoc'
22+ // from javadoc.destinationDir
23+ // }
24+ //
25+ // artifacts {
26+ // archives javadocJar
27+ // archives sourcesJar
28+ // }
29+ //
30+ // signing {
31+ // useInMemoryPgpKeys(
32+ // rootProject.ext["signing.keyId"],
33+ // rootProject.ext["signing.key"],
34+ // rootProject.ext["signing.password"],
35+ // )
36+ // sign publishing.publications
37+ // }
38+ //
39+ // tasks.withType(Javadoc) {
40+ // options.addStringOption('Xdoclint:none', '-quiet')
41+ // options.addStringOption('encoding', 'UTF-8')
42+ // options.addStringOption('charSet', 'UTF-8')
43+ // }
44+ //
45+ File deploy = project. rootProject. file(" maven/deploy.settings" )
46+ def artifact = new Properties ()
47+ artifact. load(new FileInputStream (deploy))
48+
49+ version = artifact. version
50+ group = artifact. groupId
51+ //
52+ // afterEvaluate {
53+ // publishing {
54+ // publications {
55+ // release(MavenPublication) {
56+ // groupId artifact.groupId
57+ // artifactId artifact.id
58+ // version artifact.version
59+ // from components.release
60+ //
61+ // pom {
62+ // name = artifact.id
63+ // packaging = 'aar'
64+ // description = artifact.description
65+ // url = artifact.siteUrl
66+ //
67+ // scm {
68+ // connection = artifact.gitUrl
69+ // developerConnection = artifact.gitUrl
70+ // url = artifact.siteUrl
71+ // }
72+ //
73+ // licenses {
74+ // license {
75+ // name = 'The Apache License, Version 2.0'
76+ // url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
77+ // }
78+ // }
79+ //
80+ // developers {
81+ // developer {
82+ // id = 'Hosseini'
83+ // name = 'Davud Hosseini'
84+ // email = 'hosseinydavid@gmail.com'
85+ // }
86+ // }
87+ // }
88+ // }
89+ // }
90+ // }
91+ // }
0 commit comments