11plugins {
2- id ' com.microsoft.identity.buildsystem' version ' 0.2.3 '
2+ id ' com.microsoft.identity.buildsystem' version ' 0.2.5 '
33 id ' com.android.library'
44 id ' pmd'
55 id ' checkstyle'
@@ -44,7 +44,7 @@ android {
4444// coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:$rootProject.ext.coreLibraryDesugaringVersion"
4545// }
4646// }
47-
47+ namespace " com.microsoft.identity.msal "
4848 compileOptions {
4949 // Flag to enable support for the new language APIs
5050 coreLibraryDesugaringEnabled true
@@ -71,6 +71,9 @@ android {
7171 project. version = android. defaultConfig. versionName
7272 testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
7373 }
74+ buildFeatures {
75+ buildConfig = true
76+ }
7477
7578 buildTypes {
7679 // testCoverageEnabled flag is set to true to get coverage reports for Android Tests
@@ -163,7 +166,6 @@ task javadoc(type: Javadoc) {
163166 source = android. sourceSets. main. java. srcDirs
164167 configurations. api. setCanBeResolved(true )
165168 classpath + = configurations. api
166- classpath + = project. files(android. getBootClasspath(). join(File . pathSeparator))
167169
168170 options. memberLevel = JavadocMemberLevel . PUBLIC
169171 options. addStringOption(' Xdoclint:none' , ' -quiet' )
@@ -172,17 +174,16 @@ task javadoc(type: Javadoc) {
172174 exclude ' **/R.java'
173175 destinationDir = reporting. file(" $project . buildDir /outputs/jar/javadoc/" )
174176}
175-
176177// Task to generate javadoc.jar
177178task javadocJar (type : Jar , dependsOn : javadoc) {
178179 from javadoc. destinationDir
179- classifier ' javadoc'
180+ archiveClassifier . set( ' javadoc' )
180181 destinationDirectory = reporting. file(" $project . buildDir /outputs/jar/" )
181182}
182183
183184task sourcesJar (type : Jar ) {
184185 from android. sourceSets. main. java. srcDirs
185- classifier ' sources'
186+ archiveClassifier . set( ' sources' )
186187 destinationDirectory = reporting. file(" $project . buildDir /outputs/jar/" )
187188}
188189
@@ -300,8 +301,8 @@ task pmd(type: Pmd) {
300301 source = fileTree(' src/main/java' )
301302
302303 reports {
303- xml. enabled = false
304- html. enabled = true
304+ xml. required = false
305+ html. required = true
305306 }
306307}
307308
@@ -322,7 +323,7 @@ afterEvaluate {
322323 publishing {
323324 publications {
324325 msal(MavenPublication ) {
325- from components. distRelease
326+ from components. findByName( ' distRelease' )
326327 groupId ' com.microsoft.identity.client'
327328 artifactId ' msal'
328329 // Edit the 'version' here for VSTS RC build
0 commit comments