Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ stages:
ENV_VSTS_MVN_ANDROIDADACCOUNTS_ACCESSTOKEN: $(mvnPAT)
inputs:
cwd: $(Build.SourcesDirectory)/broker-java-root
tasks: LinuxBrokerPackage:clean LinuxBrokerPackage:buildDebian $(linuxBrokerVersion) --build-cache --info
tasks: LinuxBrokerPackage:clean LinuxBrokerPackage:buildDeb $(linuxBrokerVersion) --build-cache --info
publishJUnitResults: false
jdkArchitecture: x86
sqAnalysisBreakBuildIfQualityGateFailed: false
Expand Down
2 changes: 1 addition & 1 deletion azure-pipelines/templates/spotbugs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ steps:
displayName: 'Run Spotbugs'
inputs:
javaHomeSelection: JDKVersion
jdkVersionOption: "1.17"
jdkVersionOption: "1.11"
jdkArchitecture: x64
cwd: ${{ parameters.cwd }}
tasks: ${{ parameters.project }}:${{ parameters.spotbugsCommand }}
Expand Down
4 changes: 2 additions & 2 deletions azure-pipelines/test-app/java-linux-test-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
displayName: Build Deb with Java Dependency
inputs:
cwd: $(Build.SourcesDirectory)/broker-java-root
tasks: java-linux-test-app:clean java-linux-test-app:buildDebian --build-cache --info
tasks: java-linux-test-app:clean java-linux-test-app:buildDeb --build-cache --info
publishJUnitResults: false
jdkArchitecture: x86
sqAnalysisBreakBuildIfQualityGateFailed: false
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
displayName: Build Rpm with Java Dependency
inputs:
cwd: $(Build.SourcesDirectory)/broker-java-root
tasks: java-linux-test-app:clean java-linux-test-app:buildRpmtestapp --build-cache --info
tasks: java-linux-test-app:clean java-linux-test-app:buildRpm --build-cache --info
publishJUnitResults: false
jdkArchitecture: x64
jdkVersionOption: "1.11"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
displayName: Build Deb with Java Dependency
inputs:
cwd: $(Build.SourcesDirectory)/broker-java-root
tasks: microsoft-identity-diagnostics:clean microsoft-identity-diagnostics:buildDebian --build-cache --info
tasks: microsoft-identity-diagnostics:clean microsoft-identity-diagnostics:buildDeb --build-cache --info
publishJUnitResults: false
jdkArchitecture: x86
sqAnalysisBreakBuildIfQualityGateFailed: false
Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
displayName: Build Rpm with Java Dependency
inputs:
cwd: $(Build.SourcesDirectory)/broker-java-root
tasks: microsoft-identity-diagnostics:clean microsoft-identity-diagnostics:buildRpmDiag --build-cache --info
tasks: microsoft-identity-diagnostics:clean microsoft-identity-diagnostics:buildRpm --build-cache --info
publishJUnitResults: false
jdkArchitecture: x86
sqAnalysisBreakBuildIfQualityGateFailed: false
Expand Down
8 changes: 2 additions & 6 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,14 @@ ariaTenantTokenTest="1e8435186fa849b28b1a402fb5074ff1-0b91a9ec-efad-440c-b92c-ac

android.useAndroidX=true
android.enableJetifier=true
android.nonTransitiveRClass=false
android.nonFinalResIds=false

# https://office.visualstudio.com/Outlook%20Mobile/_wiki/wikis/Outlook-Mobile.wiki/3780/Android-Studio-Gradle-Performance-tips-and-tricks
org.gradle.parallel=true
org.gradle.daemon=true
org.gradle.warning.mode=all
android.defaults.buildfeatures.buildconfig=true

# See https://stackoverflow.com/questions/56075455/expiring-daemon-because-jvm-heap-space-is-exhausted
# we must make sure that the total size is <7G, as that's the RAM size of VM on the build pipeline.
org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError

org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError

# This the TSL versionName...
versionName=1.5.9
Expand Down
5 changes: 2 additions & 3 deletions gradle/versions.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ ext {
compileSdkVersion = 34
buildToolsVersion = "28.0.3"


// Plugins
gradleVersion = '8.1.1'
gradleVersion = '7.4.2'
kotlinVersion = '1.7.21'
spotBugsGradlePluginVersion = '4.7.1'
jupiterApiVersion = '5.6.0'
Expand Down Expand Up @@ -47,7 +46,7 @@ ext {
uiAutomatorVersion = "2.2.0"
daggerVersion = "2.31.2"
daggerCompilerVersion = "2.31.2"
msal4jVersion = "1.20.1"
msal4jVersion = "1.10.0"
mseberaApacheHttpClientVersion = "4.5.8"
moshiVersion = "1.14.0"
moshiAdaptersVersion = "1.14.0"
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Thu Jan 30 09:54:20 PST 2025
#Mon Sep 14 13:15:58 PDT 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
4 changes: 2 additions & 2 deletions java-complete/gradle/versions.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// Variables for entire project
ext {
// SDK
minSdkVersion = 21
minSdkVersion = 16
brokerProjectMinSdkVersion = 24
automationAppMinSDKVersion = 21
targetSdkVersion = 30
compileSdkVersion = 30
buildToolsVersion = "28.0.3"

// Plugins
gradleVersion = '8.1.1'
gradleVersion = '4.2.2'
kotlinVersion = '1.7.21'
spotBugsGradlePluginVersion = '4.7.1'
jupiterApiVersion = '5.6.0'
Expand Down
2 changes: 1 addition & 1 deletion java-complete/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
19 changes: 6 additions & 13 deletions plugins/buildsystem/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,26 @@ plugins {
id 'java-gradle-plugin'
id 'org.jetbrains.kotlin.jvm'
id 'maven-publish'
id 'com.gradle.plugin-publish' version '1.3.0'
id 'com.gradle.plugin-publish' version '0.14.0'
}

group 'com.microsoft.identity'
version '0.2.5'
version '0.2.3'

tasks.withType(JavaCompile) {
sourceCompatibility = '11'
targetCompatibility = '11'
}

tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
jvmTarget = '11'
}
pluginBundle {
website = 'https://github.com/azuread'
vcsUrl = 'https://github.com/azuread/android-complete'
tags = ['build']
}

gradlePlugin {
website.set('https://github.com/azuread')
vcsUrl.set('https://github.com/azuread/android-complete')
plugins {
buildPlugin {
id = 'com.microsoft.identity.buildsystem'
implementationClass = 'com.microsoft.identity.buildsystem.BuildPlugin'
displayName = "AuthClient Android Build Plugin"
description = "Gradle plugin to encapsulate custom build tasks and configuration for AuthClient android projects."
tags.addAll('build', 'msal', 'adal', 'android')
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion plugins/buildsystem/gradle/versions.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ ext {
kotlinVersion = '1.7.21'
spotBugsGradlePluginVersion = '4.7.1'
jupiterApiVersion = '5.6.0'
gradleVersion = '8.1.1'
gradleVersion = '4.1.0'
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -185,35 +185,31 @@ object CodeCoverage {

private fun configureReport(project: Project, reportTask: JacocoReport, taskName: String) {
reportTask.reports { task ->
// // set the outputs enabled according to configs
task.html.required.set(reportExtension.html.enabled)
task.xml.required.set(reportExtension.xml.enabled)
task.csv.required.set(reportExtension.csv.enabled)
// set the outputs enabled according to configs
task.html.isEnabled = reportExtension.html.enabled
task.xml.isEnabled = reportExtension.xml.enabled
task.csv.isEnabled = reportExtension.csv.enabled

// default reports path
val defaultCommonPath = "${project.buildDir}/reports/jacoco/$taskName"
val configuredDestination = reportExtension.destination

// configure destination for html code coverage output
if (reportExtension.html.enabled) {
val path = File(if (configuredDestination.isNullOrBlank()) "$defaultCommonPath/html" else "${configuredDestination.trim()}/html")
// task.html.destination = path
task.html.outputLocation.set(path)

task.html.destination = path
}

// configure destination for xml code coverage output
if (reportExtension.xml.enabled) {
val path = File(if (configuredDestination.isNullOrBlank()) "$defaultCommonPath/${taskName}.xml" else "${configuredDestination.trim()}/${taskName}.xml")
// task.xml.destination = path
task.xml.outputLocation.set(path)

task.xml.destination = path
}

// configure destination for csv code coverage output
if (reportExtension.csv.enabled) {
val path = File(if (configuredDestination.isNullOrBlank()) "$defaultCommonPath/${taskName}.csv" else "${configuredDestination.trim()}/${taskName}.csv")
// task.csv.destination = path
task.csv.outputLocation.set(path)
task.csv.destination = path
}
}
}
Expand Down
13 changes: 7 additions & 6 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ rootProject.name = 'android_auth'
// Android DevX Projects
include ':adal'
project(':adal').projectDir = new File('adal/adal')
//

include(':msal')
project(':msal').projectDir = new File('msal/msal')

Expand All @@ -44,10 +44,10 @@ project(':brokerHost').projectDir = new File('broker/userapp')

include(":adalTestApp")
project(':adalTestApp').projectDir = new File('adal/userappwithbroker')
//

include(":msalTestApp")
project(':msalTestApp').projectDir = new File('msal/testapps/testapp')
//

include(":package-inspector")
project(':package-inspector').projectDir = new File('msal/package-inspector')

Expand All @@ -71,6 +71,7 @@ project(':brokerautomationapp').projectDir = new File('broker/brokerautomationap
//
//include(":oneauthtestapp")
//project(':oneauthtestapp').projectDir = new File('oneauth/testapps/android/oneauthtestapp/app')
//
//include(":msalcpptesthost")
//project(':msalcpptesthost').projectDir = new File('msalcpp/test/android/testhost/app')

Expand All @@ -83,7 +84,7 @@ project(':labapi').projectDir = new File('common/labapi')

include(":keyvault")
project(':keyvault').projectDir = new File('common/keyvault')
//

include(":AcaPlugin")
project(':AcaPlugin').projectDir = new File('plugins/buildsystem')

Expand All @@ -107,13 +108,13 @@ project(':AzureSample').projectDir = new File('azuresample/app')

include(":mockauthapp")
project(':mockauthapp').projectDir = new File('broker/mockbrokers/mockauthapp')
//

include(":mockcp")
project(':mockcp').projectDir = new File('broker/mockbrokers/mockcp')

include(":mockltw")
project(':mockltw').projectDir = new File('broker/mockbrokers/mockltw')
//

include(":mockbrokerapplib")
project(':mockbrokerapplib').projectDir = new File('broker/mockbrokers/mockbrokerapplib')

Expand Down
Loading