1- buildscript {
2- repositories {
3- maven {
4- url " https://plugins.gradle.org/m2/"
5- }
6- }
7- dependencies {
8- classpath " net.ltgt.gradle:gradle-errorprone-plugin:0.0.13"
9- }
1+ plugins {
2+ id(" net.ltgt.errorprone" ) version " 0.8"
103}
11-
12- apply plugin : " net.ltgt.errorprone"
134apply plugin : ' com.android.library'
14- apply plugin : ' maven-publish'
15- apply plugin : ' ivy-publish'
16- apply plugin : ' com.jfrog.artifactory'
5+ apply from : " $rootDir /gradle/publishing_aar.gradle"
176
187version = VERSION_NAME
8+ description = ' Implementation of the Mockito Inline API for use on the Android Dalvik VM'
199
2010android {
2111 compileSdkVersion 28
@@ -41,85 +31,17 @@ android {
4131 }
4232}
4333
44- tasks. withType(JavaCompile ) {
45- options. compilerArgs + = [" -Xep:StringSplitter:OFF" ]
46- }
47-
48- task sourcesJar (type : Jar ) {
49- classifier = ' sources'
50- from android. sourceSets. main. java. srcDirs
51- }
52-
53- task javadoc (type : Javadoc ) {
54- source = android. sourceSets. main. java. srcDirs
55- classpath + = project. files(android. getBootClasspath(). join(File . pathSeparator))
56- }
57-
58- task javadocJar (type : Jar , dependsOn : javadoc) {
59- classifier = ' javadoc'
60- from javadoc. destinationDir
61- }
62-
63- publishing {
64- publications {
65- ivyLib(IvyPublication ) {
66- from new org.gradle.api.internal.java.JavaLibrary (new org.gradle.api.internal.artifacts.publish.DefaultPublishArtifact (project. getName(), ' aar' , ' aar' , null , new Date (), new File (" $buildDir /outputs/aar/${ project.getName()} -release.aar" ), assemble), project. configurations. implementation. getAllDependencies())
67- artifact sourcesJar
68- artifact javadocJar
69- }
70-
71- lib(MavenPublication ) {
72- from new org.gradle.api.internal.java.JavaLibrary (new org.gradle.api.internal.artifacts.publish.DefaultPublishArtifact (project. getName(), ' aar' , ' aar' , null , new Date (), new File (" $buildDir /outputs/aar/${ project.getName()} -release.aar" ), assemble), project. configurations. implementation. getAllDependencies())
73-
74- artifact sourcesJar
75- artifact javadocJar
76-
77- pom. withXml {
78- asNode(). children(). last() + {
79- resolveStrategy = Closure . DELEGATE_FIRST
80- description = ' Implementation of the Mockito Inline API for use on the Android Dalvik VM'
81- url ' https://github.com/linkedin/dexmaker'
82- scm {
83- url ' https://github.com/linkedin/dexmaker'
84- connection ' scm:git:git://github.com/linkedin/dexmaker.git'
85- developerConnection ' https://github.com/linkedin/dexmaker.git'
86- }
87- licenses {
88- license {
89- name ' The Apache Software License, Version 2.0'
90- url ' http://www.apache.org/licenses/LICENSE-2.0.txt'
91- distribution ' repo'
92- }
93- }
94-
95- developers {
96- developer {
97- id ' com.linkedin'
98- name ' LinkedIn Corp'
99- email ' '
100- }
101- }
102- }
103- }
104-
105- // Useful for inspecting maven artifacts in 'build/repo' after running './gradlew publish'
106- repositories {
107- maven {
108- url = " $rootProject . buildDir /repo"
109- }
110- }
111- }
112- }
113- }
114-
11534repositories {
116- jcenter()
11735 google()
36+ jcenter()
37+ }
38+
39+ tasks. withType(JavaCompile ) {
40+ options. errorprone. errorproneArgs. add(" -Xep:StringSplitter:OFF" )
11841}
11942
12043dependencies {
12144 implementation project(' :dexmaker' )
12245
12346 implementation ' org.mockito:mockito-core:2.28.2' , { exclude group : ' net.bytebuddy' }
12447}
125-
0 commit comments