Skip to content

Commit c4c659f

Browse files
committed
Add publish config
1 parent 74ae225 commit c4c659f

File tree

3 files changed

+95
-2
lines changed

3 files changed

+95
-2
lines changed

maven/publish.gradle

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
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+
//}

rules/build.gradle.kts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,6 @@ dependencies {
2222

2323
testImplementation(libs.junit)
2424
testImplementation(libs.bundles.lint.tests)
25-
}
25+
}
26+
27+
apply(from = "$rootDir/maven/publish.gradle")

settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ dependencyResolutionManagement {
1313
}
1414
}
1515

16-
rootProject.name = "Lint Rules"
16+
rootProject.name = "lint-rules"
1717
include(":app")
1818
include(":rules")

0 commit comments

Comments
 (0)